Getting started with Python: The ultimate list with Tips, Tools and Resources

2013-03-13 Thread Manish
Getting started with Python: The ultimate list with Tips, Tools and Resources http://lurnq.com/lesson/Getting-started-with-Python-Tips-Tools-and-Resources/ Here is a lesson which includes a great set of resources including Books, MOOCs, Video Tutorials, Interactive tutorials, exercises which can

A reply for rusi (FSR)

2013-03-13 Thread jmfauth
As a reply to rusi's comment: http://groups.google.com/group/comp.lang.python/browse_thread/thread/a7689b158fdca29e# From string creation to the itertools usage. A medley. Some timings. Important: The real/absolute values of these experiments are not important. I do not care and I'm not

Re: A reply for rusi (FSR)

2013-03-13 Thread rusi
On Mar 13, 2:36 pm, jmfauth wxjmfa...@gmail.com wrote: As a reply to rusi's comment:http://groups.google.com/group/comp.lang.python/browse_thread/thread/... From string creation to the itertools usage. A medley. Some timings. Important: The real/absolute values of these experiments are not

String performance regression from python 3.2 to 3.3

2013-03-13 Thread rusi
On Mar 13, 3:07 pm, rusi rustompm...@gmail.com wrote: On Mar 13, 2:36 pm, jmfauth wxjmfa...@gmail.com wrote: As a reply to rusi's comment:http://groups.google.com/group/comp.lang.python/browse_thread/thread/... From string creation to the itertools usage. A medley. Some timings.

Re: A reply for rusi (FSR)

2013-03-13 Thread Chris Angelico
n Wed, Mar 13, 2013 at 8:36 PM, jmfauth wxjmfa...@gmail.com wrote: #~ py323 py330 #~ test 1: 0.0153577374128190.019290216142579 ... #~ test 35: 0.0998101303960320.249129715085319 But these numbers are utterly useless on

Re: Finding the Min for positive and negative in python 3.3 list

2013-03-13 Thread Wolfgang Maier
Steven D'Aprano steve+comp.lang.python at pearwood.info writes: On Tue, 12 Mar 2013 17:03:08 +, Norah Jones wrote: For example: a=[-15,-30,-10,1,3,5] I want to find a negative and a positive minimum. example: negative print(min(a)) = -30 positive print(min(a)) = 1

Re: Matplotlib Slider Widget and changing colorbar threshold

2013-03-13 Thread matt . newville
On Tuesday, March 12, 2013 9:06:20 AM UTC-5, kevin@gmail.com wrote: I am currently trying to work on a program that will allow the user to display their dataset in the form of a colormap and through the use of sliders, it will also allow the user to adjust the threshold of the colormap

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread Chris Angelico
On Wed, Mar 13, 2013 at 9:11 PM, rusi rustompm...@gmail.com wrote: Uhhh.. Making the subject line useful for all readers I should have read this one before replying in the other thread. jmf, I'd like to see evidence that there has been a performance regression compared against a wide build of

Re: Finding the Min for positive and negative in python 3.3 list

2013-03-13 Thread Oscar Benjamin
On 13 March 2013 10:43, Wolfgang Maier wolfgang.ma...@biologie.uni-freiburg.de wrote: thinking again about the question, then the min() solutions suggested so far certainly do the job and they are easy to understand. However, if you need to run the function repeatedly on larger lists, using

Re: Finding the Min for positive and negative in python 3.3 list

2013-03-13 Thread Wolfgang Maier
Oscar Benjamin oscar.j.benjamin at gmail.com writes: Sort cannot be O(log(n)) and it cannot be faster than a standard O(n) minimum finding algorithm. No valid sorting algorithm can have even a best case performance that is better than O(n). This is because it takes O(n) just to verify that

Re: Finding the Min for positive and negative in python 3.3 list

2013-03-13 Thread Chris Angelico
On Wed, Mar 13, 2013 at 10:23 PM, Oscar Benjamin oscar.j.benja...@gmail.com wrote: On 13 March 2013 10:43, Wolfgang Maier wolfgang.ma...@biologie.uni-freiburg.de wrote: thinking again about the question, then the min() solutions suggested so far certainly do the job and they are easy to

Re: Finding the Min for positive and negative in python 3.3 list

2013-03-13 Thread Chris Angelico
On Wed, Mar 13, 2013 at 10:34 PM, Wolfgang Maier wolfgang.ma...@biologie.uni-freiburg.de wrote: Oscar Benjamin oscar.j.benjamin at gmail.com writes: Sort cannot be O(log(n)) and it cannot be faster than a standard O(n) minimum finding algorithm. No valid sorting algorithm can have even a

Re: Finding the Min for positive and negative in python 3.3 list

2013-03-13 Thread Peter Otten
Wolfgang Maier wrote: Oscar Benjamin oscar.j.benjamin at gmail.com writes: Sort cannot be O(log(n)) and it cannot be faster than a standard O(n) minimum finding algorithm. No valid sorting algorithm can have even a best case performance that is better than O(n). This is because it takes

Top Bible scholar leaves Christianity

2013-03-13 Thread BV BV
Top Bible scholar leaves Christianity This is a short interview with a renowned Bible scholar who talks about why he left Christianity. http://www.youtube.com/v/aYSDTXYmdvs?rel=0 thank you -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding the Min for positive and negative in python 3.3 list

2013-03-13 Thread Steven D'Aprano
On Wed, 13 Mar 2013 11:23:22 +, Oscar Benjamin wrote: On 13 March 2013 10:43, Wolfgang Maier wolfgang.ma...@biologie.uni-freiburg.de wrote: thinking again about the question, then the min() solutions suggested so far certainly do the job and they are easy to understand. However, if you

Re: Finding the Min for positive and negative in python 3.3 list

2013-03-13 Thread Wolfgang Maier
Chris Angelico rosuav at gmail.com writes: Sort cannot be O(log(n)) and it cannot be faster than a standard O(n) minimum finding algorithm. No valid sorting algorithm can have even a best case performance that is better than O(n). This is because it takes O(n) just to verify that a list

Re: Finding the Min for positive and negative in python 3.3 list

2013-03-13 Thread Mark Lawrence
On 13/03/2013 14:12, Steven D'Aprano wrote: On Wed, 13 Mar 2013 11:23:22 +, Oscar Benjamin wrote: On 13 March 2013 10:43, Wolfgang Maier wolfgang.ma...@biologie.uni-freiburg.de wrote: thinking again about the question, then the min() solutions suggested so far certainly do the job and

how to get the coordonnée of a line from his Id in canvas python??

2013-03-13 Thread olsr . kamal
how to get the coordonnée of a line from his Id in canvas python?? -- http://mail.python.org/mailman/listinfo/python-list

how to get the coordonnée of a line from his Id in canvas python??

2013-03-13 Thread olsr . kamal
how to get the coordonnée of a line from his Id in canvas python?? -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get the coordonnée of a line from his Id in canvas python??

2013-03-13 Thread Mark Lawrence
On 13/03/2013 15:06, olsr.ka...@gmail.com wrote: how to get the coordonnée of a line from his Id in canvas python?? Write some code after you've referred to the response you got when you posted the same question on 9th March. Please don't post to the mailing list and the gmane group as

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread rusi
On Mar 13, 3:59 pm, Chris Angelico ros...@gmail.com wrote: On Wed, Mar 13, 2013 at 9:11 PM, rusi rustompm...@gmail.com wrote: Uhhh.. Making the subject line useful for all readers I should have read this one before replying in the other thread. jmf, I'd like to see evidence that there has

IOError:[Errno 27] File too large

2013-03-13 Thread ch . valderanis
Hi, Relatively newcomer here. The following code fails with the above error: python version used 2.6.2 under linux filestring='somestring' for files in glob.glob('*'): f2=open(files.replace('.xml','.sub'),'w') f2.write(filestring+files) f2.close() The glob commands

Re: IOError:[Errno 27] File too large

2013-03-13 Thread Steven D'Aprano
On Wed, 13 Mar 2013 09:53:17 -0700, ch.valderanis wrote: Hi, Relatively newcomer here. The following code fails with the above error: python version used 2.6.2 under linux Which part of the code fails? Please copy and paste the entire traceback, starting with the line Traceback (most

Re: Store a variable permanently

2013-03-13 Thread Steven D'Aprano
On Tue, 12 Mar 2013 12:54:11 +0100, Jean-Michel Pichavant wrote: import pickle a = 758 pickle.dump(a, open('test.pickle', 'w')) !cat test.pickle I758 . What is that? It's not Python code, !cat test.pickle gives a syntax error. It's a IPython shell session, !cat test.pickle

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread Thomas 'PointedEars' Lahn
Chris Angelico wrote: On Wed, Mar 13, 2013 at 9:11 PM, rusi rustompm...@gmail.com wrote: Uhhh.. Making the subject line useful for all readers I should have read this one before replying in the other thread. jmf, I'd like to see evidence that there has been a performance regression

ANN: eGenix pyOpenSSL Distribution 0.13.1.1.0.1.5

2013-03-13 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com pyOpenSSL Distribution Version 0.13.1.1.0.1.5 An easy-to-install and easy-to-use distribution of the pyOpenSSL Python interface

Re: Store a variable permanently

2013-03-13 Thread Jean-Michel Pichavant
- Original Message - On Tue, 12 Mar 2013 12:54:11 +0100, Jean-Michel Pichavant wrote: import pickle a = 758 pickle.dump(a, open('test.pickle', 'w')) !cat test.pickle I758 . What is that? It's not Python code, !cat test.pickle gives a syntax error. It's

What's the easiest Python datagrid GUI (preferably with easy database hooks as well)?

2013-03-13 Thread tinnews
I want to write a fairly trivial database driven application, it will basically present a few columns from a database, allow the user to add and/or edit rows, recalculate the values in one column and write the data back to the database. I want to show the data and allow editing of the data in a

Re: What's the easiest Python datagrid GUI (preferably with easy database hooks as well)?

2013-03-13 Thread Walter Hurry
On Wed, 13 Mar 2013 18:40:07 +, tinnews wrote: I want to write a fairly trivial database driven application, it will basically present a few columns from a database, allow the user to add and/or edit rows, recalculate the values in one column and write the data back to the database. I

Re: What's the easiest Python datagrid GUI (preferably with easy database hooks as well)?

2013-03-13 Thread Ian Kelly
On Wed, Mar 13, 2013 at 12:40 PM, tinn...@isbd.co.uk wrote: I want to write a fairly trivial database driven application, it will basically present a few columns from a database, allow the user to add and/or edit rows, recalculate the values in one column and write the data back to the

Re: What's the easiest Python datagrid GUI (preferably with easy database hooks as well)?

2013-03-13 Thread tinnews
Walter Hurry walterhu...@lavabit.com wrote: On Wed, 13 Mar 2013 18:40:07 +, tinnews wrote: I want to write a fairly trivial database driven application, it will basically present a few columns from a database, allow the user to add and/or edit rows, recalculate the values in one

Concepts and Applications of Finite Element Analysis (4th Ed., Cook, Malkus, Plesha Witt)

2013-03-13 Thread kalvinmanual
I have solutions manuals to all problems and exercises in these textbooks. To get one in an electronic format contact me at: kalvinmanual(at)gmail(dot)com and let me know its title, author and edition. Please this service is NOT free. SOLUTIONS MANUAL TO A First Course in Differential Equations

Re: IOError:[Errno 27] File too large

2013-03-13 Thread ch . valderanis
Dear Steven, Thank you very much both for your answer and of course your comments. They are taken into account. I found out that when I touch FILENAME.sub in the command line, I get the same error. So I guess it isn't a problem with the language but rather deeper. I will solve this first

Jim Hodges, 6StringStu, Six String Stu, James Stuart Hodges 1405

2013-03-13 Thread Trailer Trash Suzie
1405 577 SW Dexter Cir, Apt 201 1442 SW Haygood Loop, Apt 101 Lake City, FL 32025 (386) 438-8968 Local PD: (386) 752-4344 From: 6StringStu hawkinn...@nccray.net Newsgroups: alt.social-security-disability Date: Fri, 2 Apr 2010 01:02:30 -0500 Of the three felonies on my record, 1: Violation of

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread Chris Angelico
On Thu, Mar 14, 2013 at 3:49 AM, rusi rustompm...@gmail.com wrote: On Mar 13, 3:59 pm, Chris Angelico ros...@gmail.com wrote: On Wed, Mar 13, 2013 at 9:11 PM, rusi rustompm...@gmail.com wrote: Uhhh.. Making the subject line useful for all readers I should have read this one before replying

Sphinx highlighting

2013-03-13 Thread Charles Hixson
What controls the yellow highlight bar that Sphinx sometimes puts in the documentation? E.g.: .. py:function:: basic_parseStrTest () generates bold-face text, where .. py:function:: basicParseStrTest () generates text with a yellow bar highlight. I actually rather like the yellow bar highlight,

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread Chris Angelico
On Thu, Mar 14, 2013 at 4:42 AM, Thomas 'PointedEars' Lahn pointede...@web.de wrote: Chris Angelico wrote: On Wed, Mar 13, 2013 at 9:11 PM, rusi rustompm...@gmail.com wrote: Uhhh.. Making the subject line useful for all readers I should have read this one before replying in the other

Re: Store a variable permanently

2013-03-13 Thread Chris Angelico
On Thu, Mar 14, 2013 at 4:37 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Tue, 12 Mar 2013 12:54:11 +0100, Jean-Michel Pichavant wrote: import pickle a = 758 pickle.dump(a, open('test.pickle', 'w')) !cat test.pickle I758 . What is that? It's not Python code,

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread MRAB
On 13/03/2013 23:43, Chris Angelico wrote: On Thu, Mar 14, 2013 at 3:49 AM, rusi rustompm...@gmail.com wrote: On Mar 13, 3:59 pm, Chris Angelico ros...@gmail.com wrote: On Wed, Mar 13, 2013 at 9:11 PM, rusi rustompm...@gmail.com wrote: Uhhh.. Making the subject line useful for all readers I

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread Chris Angelico
On Thu, Mar 14, 2013 at 11:52 AM, MRAB pyt...@mrabarnett.plus.com wrote: On 13/03/2013 23:43, Chris Angelico wrote: On Thu, Mar 14, 2013 at 3:49 AM, rusi rustompm...@gmail.com wrote: On Mar 13, 3:59 pm, Chris Angelico ros...@gmail.com wrote: On Wed, Mar 13, 2013 at 9:11 PM, rusi

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread MRAB
On 14/03/2013 00:55, Chris Angelico wrote: On Thu, Mar 14, 2013 at 11:52 AM, MRAB pyt...@mrabarnett.plus.com wrote: On 13/03/2013 23:43, Chris Angelico wrote: On Thu, Mar 14, 2013 at 3:49 AM, rusi rustompm...@gmail.com wrote: On Mar 13, 3:59 pm, Chris Angelico ros...@gmail.com wrote: On

Re: QT Inspired web development framework for python

2013-03-13 Thread timothy crosley
I've added special hooks into the framework to make integration with Django projects fairly seemless, these are detailed under the django quick start guide: http://www.webbot.ws/QuickStartGuide I hope this addresses some of the questions that have come up here, Thanks! Timothy --

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread Terry Reedy
On 3/13/2013 7:43 PM, Chris Angelico wrote: On Thu, Mar 14, 2013 at 3:49 AM, rusi rustompm...@gmail.com wrote: This assumes that there are only three choices: - narrow build that is buggy (surrogate pairs for astral characters) - wide build that is 4-fold space inefficient for wide variety of

Re: IOError:[Errno 27] File too large

2013-03-13 Thread Steven D'Aprano
On Wed, 13 Mar 2013 15:35:19 -0700, ch.valderanis wrote: Traceback (most recent call last): File createsubmitfiles.py, line 12, in module newfile=open(newname,'w') IOError: [Errno 27] File too large: 'FILENAME.sub;' I have changed the actual filename reported by the traceback.

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread Steven D'Aprano
On Thu, 14 Mar 2013 02:01:35 +, MRAB wrote: On 14/03/2013 00:55, Chris Angelico wrote: On Thu, Mar 14, 2013 at 11:52 AM, MRAB pyt...@mrabarnett.plus.com wrote: On 13/03/2013 23:43, Chris Angelico wrote: On Thu, Mar 14, 2013 at 3:49 AM, rusi rustompm...@gmail.com wrote: On Mar 13, 3:59

[issue17232] Improve -O docs

2013-03-13 Thread Nick Coghlan
Nick Coghlan added the comment: On Tue, Mar 12, 2013 at 1:18 PM, Antoine Pitrou rep...@bugs.python.org wrote: Antoine Pitrou added the comment: Also, in 3.2 and higher I'm not sure there's a point in mentioning pyc/pyo files; they're all shelved in __pycache__ now. It still makes a

[issue14468] Update cloning guidelines in devguide

2013-03-13 Thread Ezio Melotti
Ezio Melotti added the comment: The attached patch adds 3 new FAQs: * How do I solve merge conflicts? * How do I make a null merge? * I got abort: push creates new remote heads! while pushing, what do I do? It also replaces the overly generic How do I find out which revisions need merging?.

[issue17404] ValueError: can't have unbuffered text I/O for io.open(1, 'wt', 0)

2013-03-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: - it won't work for reading: TextIOWrapper calls the read1() method, which is only defined by BufferedIO objects. Since 3.3 TextIOWrapper works with raw IO objects (issue12591). Yes. And I just noticed that the _io module (the C version) will also buffer

[issue17404] ValueError: can't have unbuffered text I/O for io.open(1, 'wt', 0)

2013-03-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: - it won't work for reading: TextIOWrapper calls the read1() method, which is only defined by BufferedIO objects. Since 3.3 TextIOWrapper works with raw IO objects (issue12591). It won't be technically unbuffered, though. -- title: ValueError:

[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk

2013-03-13 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- keywords: +patch Added file: http://bugs.python.org/file29395/issue16612-alternative-dsl.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16612

[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk

2013-03-13 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Added file: http://bugs.python.org/file29396/preprocess ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16612 ___

[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk

2013-03-13 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Added file: http://bugs.python.org/file29397/printsemant ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16612 ___

[issue17375] Add docstrings to methods in the threading module

2013-03-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: You didn't specify the contributor in the commit. I'm the contributor. Also, you've only committed this to 2.7; why? I committed to 2.7 because the 2.7 docs were the source. When I get the time, I will build a 3.x version of the update. --

[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk

2013-03-13 Thread Stefan Krah
Stefan Krah added the comment: Larry has requested privately that I send the counter proposal PEP and additional information, so here it is: I've send the PEP draft to Nick. The patch that I uploaded contains DSL examples, an ml-yacc grammar and token specifications. Two prototype tools are

[issue17366] os.chdir win32

2013-03-13 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: My expectation was that a platform os.chdir would parse the string for these characters and do something intelligent with them i.e a legal path from any of the systems (mac, linux or windows) passed in as a string to os.chdir would be converted to

[issue17380] initproc return value is unclear

2013-03-13 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Note that all these cases are compatible with tp_init returns 0 on success and -1 on error. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17380

[issue17310] Ctypes callbacks shows problem on Windows Python (64bit)

2013-03-13 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Is _pack_ = 1 correct? Did you compile your C library with /Zp1 or similar? Also check that ctypes.sizeof(callback_t) matches the one given by the C compiler. -- ___ Python tracker rep...@bugs.python.org

[issue12768] docstrings for the threading module

2013-03-13 Thread Eli Bendersky
Eli Bendersky added the comment: See also #17375 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12768 ___ ___ Python-bugs-list mailing list

[issue17375] Add docstrings to methods in the threading module

2013-03-13 Thread Eli Bendersky
Eli Bendersky added the comment: On Wed, Mar 13, 2013 at 2:52 AM, Raymond Hettinger rep...@bugs.python.orgwrote: Raymond Hettinger added the comment: You didn't specify the contributor in the commit. I'm the contributor. Oh, I see. I thought it's taken from one of the two existing

[issue17408] second python execution fails when embedding

2013-03-13 Thread Vlad
New submission from Vlad: This issue is for Python3.3 and doesn't exist in Python3.2 Detailed description with source code can be found here: http://stackoverflow.com/questions/15387035/second-python-execution-fails -- components: None messages: 184081 nosy: theDarkBrainer priority:

[issue17408] second python execution fails when embedding

2013-03-13 Thread Ned Deily
Ned Deily added the comment: Please add the detailed description of the problem and any test files to the issue here. Information stored off-site is not searchable within the issue tracker and may not be permanently available. -- nosy: +ned.deily

[issue17408] second python execution fails when embedding

2013-03-13 Thread Vlad
Vlad added the comment: I'm trying to embed the python 3.3 engine for an app that need to run custom scripts in python. Since the scripts might be completely different, and sometimes user provided, I am trying to make each execution isolated and there is not need to preserve any data between

[issue17405] Add _Py_memset_s() to securely clear memory

2013-03-13 Thread Christian Heimes
Christian Heimes added the comment: Here is a patch that implements _Py_memset_s() according to C11 with a fallback to memset_s(). My linker fu seems to be weak. I had to use _Py_memset_s() in random.c otherwise the function is removed from the static Python binary. I double-checked with

[issue17408] second python execution fails when embedding

2013-03-13 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Reproduced on Linux. The reason is in Objects/typeobject.c: import_copyreg() has a static cache of the copyreg module. When the interpreter stops, the module is filled with None... but gets reused in the next instance. Resetting this mod_copyreg

[issue17409] resource.setrlimit doesn't respect -1

2013-03-13 Thread Paul Price
New submission from Paul Price: The docs for resource.setrlimit (http://docs.python.org/2.7/library/resource.html#resource.setrlimit) state: The limits argument must be a tuple (soft, hard) of two integers describing the new limits. A value of -1 can be used to specify the maximum possible

[issue15244] Support for opening files with FILE_SHARE_DELETE on Windows

2013-03-13 Thread Piotr Dobrogost
Piotr Dobrogost added the comment: Having the same semantics on both Unix and Windows with regard to validity of file handle after a file was deleted would be a very nice to have. How could we progress this? I'm adding Martin and Antoine to cc list. -- nosy: +loewis, pitrou

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2013-03-13 Thread Piotr Dobrogost
Piotr Dobrogost added the comment: @sbt Thanks for info. Also you mentioned looking at c:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/crt/src/open.c What version of Visual Studio/SDK this file is available in? Also I'd like to point out that this problem came up at Stack Overflow in

[issue15244] Support for opening files with FILE_SHARE_DELETE on Windows

2013-03-13 Thread Piotr Dobrogost
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net: -- nosy: +dabrahams, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15244 ___

[issue15244] Support for opening files with FILE_SHARE_DELETE on Windows

2013-03-13 Thread Richard Oudkerk
Richard Oudkerk added the comment: Actually, it is not quite the same semantics as Unix. After you delete the the file you cannot create a file of the same name or delete the directory which contains it until the handle has been closed. However, one can work around that by moving the file

[issue17222] py_compile.compile() explicitly sets st_mode for written files

2013-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 55806d234653 by Brett Cannon in branch 'default': Issue #17222: Document that py_compile now uses importlib for its file http://hg.python.org/cpython/rev/55806d234653 -- nosy: +python-dev ___ Python

[issue17222] py_compile.compile() explicitly sets st_mode for written files

2013-03-13 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17222 ___

[issue16136] Removal of VMS support

2013-03-13 Thread Sandeep Mathew
Sandeep Mathew added the comment: Sorry for late response. I got delayed , I am working on it . Regards Sandeep Mathew 2013/3/9 Jesús Cea Avión rep...@bugs.python.org: Jesús Cea Avión added the comment: Ping... -- ___ Python tracker

[issue17044] Implement PEP 422: Simple class initialisation hook

2013-03-13 Thread Daniel Urban
Daniel Urban added the comment: I've looked into implementing the changes in the new version of the PEP. It seems, that currently type.__new__ copies the dict returned by __prepare__ (http://hg.python.org/cpython/file/55806d234653/Objects/typeobject.c#l2058). I think this means that some of

[issue17409] resource.setrlimit doesn't respect -1

2013-03-13 Thread R. David Murray
R. David Murray added the comment: Since it says maximum possible limit, I think -1 is the maximum system limit, not the maximum value a particular process is allowed to use. If that is true the error message is presumably accurate. And if that's true it needs to be clarified in the

[issue17117] Update importlib.util.module_for_loader/set_loader to set when __loader__ = None

2013-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7647aae9481c by Brett Cannon in branch 'default': Issue #17117: Have both import itself and importlib.util.set_loader() http://hg.python.org/cpython/rev/7647aae9481c -- nosy: +python-dev ___ Python

[issue17176] Document imp.NullImporter is NOT used anymore by import

2013-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8e390e4784b0 by Brett Cannon in branch 'default': Issue #17176: Document that imp.NullImporter is no longer inserted http://hg.python.org/cpython/rev/8e390e4784b0 New changeset e470370b4701 by Brett Cannon in branch '3.3': Issue #17176: Document

[issue17410] Generator-based HTMLParser

2013-03-13 Thread flying sheep
New submission from flying sheep: hi, i have an idea on how to make an internal change to html.parser.HTMLParser, which would expose a token generator interface. after that, we would be able to do e.g. list(HTMLParser().tokenize(data)) or even parser = HTMLParser() for chunk in

[issue17099] Raise ValueError when __loader__ not defined for importlib.find_loader()

2013-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset cee04627bdd0 by Brett Cannon in branch 'default': Issue #17099: Have importlib.find_loader() raise ValueError when http://hg.python.org/cpython/rev/cee04627bdd0 -- nosy: +python-dev ___ Python tracker

[issue17410] Generator-based HTMLParser

2013-03-13 Thread flying sheep
Changes by flying sheep flying-sh...@web.de: -- components: +XML type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17410 ___ ___

[issue17099] Raise ValueError when __loader__ not defined for importlib.find_loader()

2013-03-13 Thread Brett Cannon
Brett Cannon added the comment: I decided not to backport since it shifts what exception is raised. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17099

[issue17176] Document imp.NullImporter is NOT used anymore by import

2013-03-13 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17176 ___

[issue17117] Update importlib.util.module_for_loader/set_loader to set when __loader__ = None

2013-03-13 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch, Gökcen! Added you the Misc/ACKS. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17117 ___

[issue17410] Generator-based HTMLParser

2013-03-13 Thread Ezio Melotti
Ezio Melotti added the comment: If you have a patch you can post it, however new features are allowed only in Python 3.4, and they must be backward compatible (run python -m test test_htmlparser to check that). -- components: +Library (Lib) -XML nosy: +ezio.melotti versions: +Python

[issue17410] Generator-based HTMLParser

2013-03-13 Thread R. David Murray
R. David Murray added the comment: I think that in order to maintain backward compatibility the existing parse_ names should continue to have the same signature, but they could be re-implemented in terms of new versions that return the token. That way if an application overrides the methods

[issue17411] Build failures with non-NDEBUG, non-Py_DEBUG builds.

2013-03-13 Thread Thomas Wouters
New submission from Thomas Wouters: Similar to http://bugs.python.org/issue14509, Python 3.3 conflates Py_DEBUG and non-NDEBUG builds, creating build failures when building with 'CFLAGS=-UNDEBUG ./configure --without-pydebug'. (assert statements are only compiled out when NDEBUG is set, not

[issue17410] Generator-based HTMLParser

2013-03-13 Thread karl
karl added the comment: flying sheep: do you plan to make it easier to use the HTML5 algorithm? http://www.w3.org/TR/html5/syntax.html#parsing -- nosy: +karlcow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17410

[issue17410] Generator-based HTMLParser

2013-03-13 Thread Ezio Melotti
Ezio Melotti added the comment: HTMLParser already parsers HTML5 producing the correct result in most of the cases. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17410 ___

[issue17410] Generator-based HTMLParser

2013-03-13 Thread karl
karl added the comment: Ezio: I'm talking about HTML5 Parsing algorithm, not about about parsing html* documents. :) The only python parser I know who is closer of the HTML5 parser algorithm is https://code.google.com/p/html5lib/ -- ___ Python

[issue17410] Generator-based HTMLParser

2013-03-13 Thread Ezio Melotti
Ezio Melotti added the comment: Well, I'm not sure what's the point of implementing that specific algorithm if the end result is the same. HTMLParser implementation also has the advantage of being much simpler, and probably faster too. If for some reason you want that specific algorithm you

[issue17410] Generator-based HTMLParser

2013-03-13 Thread flying sheep
flying sheep added the comment: no, i didn’t change anything that didn’t have to be changed to expose the tokens. i kept the changes as minimal as possible. and the tests pass! i attached the patch. --- aside thoughts: i had to change _markupbase.py, too, but i wonder why it’s even a

[issue17410] Generator-based HTMLParser

2013-03-13 Thread flying sheep
flying sheep added the comment: whoops, left my editor modeline in. i knew that was going to happen. -- Added file: http://bugs.python.org/file29402/htmltokenizer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17410

[issue17405] Add _Py_memset_s() to securely clear memory

2013-03-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Right now I don't really see the point of this. The randomized hash is not cryptographically secure, so this sounds like premature securization to me. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue1584] Mac OS X: building with X11 Tkinter

2013-03-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1584 ___ ___

[issue17307] HTTP PUT request Example

2013-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4edde40afee6 by Senthil Kumaran in branch '2.7': #17307 - Example of HTTP PUT Request using httplib http://hg.python.org/cpython/rev/4edde40afee6 New changeset d4ab6556ff97 by Senthil Kumaran in branch '3.2': #17307 - Example of HTTP PUT Request

[issue17307] HTTP PUT request Example

2013-03-13 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the review, Karl. Made the doc changes in all codelines. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue17410] Generator-based HTMLParser

2013-03-13 Thread flying sheep
Changes by flying sheep flying-sh...@web.de: Removed file: http://bugs.python.org/file29401/htmltokenizer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17410 ___

[issue12684] profile does not dump stats on exception like cProfile does

2013-03-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +giampaolo.rodola versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12684 ___

[issue16611] multiple problems with Cookie.py

2013-03-13 Thread Ezio Melotti
Ezio Melotti added the comment: Even though #3073 has been fixed, I still see the same failures when I run the attached test_cookie.py. -- nosy: +ezio.melotti, r.david.murray stage: - needs patch type: - behavior ___ Python tracker

[issue1285086] urllib.quote is too slow

2013-03-13 Thread Senthil Kumaran
Senthil Kumaran added the comment: Serhiy - Is there any technical issue that is holding up this patch? (I dont see any). If nothing is holding up and you are busy, I shall go ahead with committing this one. /cc flox -- ___ Python tracker

[issue16611] multiple problems with Cookie.py

2013-03-13 Thread John Dennis
John Dennis added the comment: That's because #3073 never addressed the core problems, so yes I would expect you would see failures. The point of the attached test is to illustrate the deficiencies in Cookie.py, so apparently it's doing it's job :-) FWIW, we wrote a new cookie library to get

  1   2   >