[issue10440] support RUSAGE_THREAD as a constant in the resource module

2010-11-16 Thread Robert Collins
New submission from Robert Collins : RUSAGE_THREAD (since Linux 2.6.26) Return resource usage statistics for the calling thread. This is very handy for multi threaded apps in determining runtime in a thread, page faults from the thread etc. -- messages: 121336 nosy: rbcol

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like I misunderstood what PyUnicode_As{En,De}codedObject() and PyUnicode_As{En,De}codedUnicode() functions are designed to do. Attaching a corrected patch, issue10435a.diff. -- Added file: http://bugs.python.org/file19622/issue10435a.di

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-16 Thread Ned Deily
Ned Deily added the comment: (Argh! Just to be very clear, those ./configure commands are all one line, including the MACOSX_DEPLOYMENT_TARGET as an argument to the configure script.) -- ___ Python tracker ___

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-16 Thread Ned Deily
Ned Deily added the comment: The problem Stephen is seeing with the buildbot machine is ABI-dependent; the behavior of getgroups(2) changed in 10.6. You can demonstrate this all on a 10.6 system. Open a terminal session and verify the process's groups: $ id -G 20 40200 401 204 100 98 80 61

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > I agree and will handle this in #10435 because codecs.h s/#10435/#10439/ -- ___ Python tracker ___ ___

[issue10439] PyCodec C API is not documented in reST

2010-11-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Nov 16, 2010 at 7:19 PM, Marc-Andre Lemburg wrote: .. >> * Decoding converts a bytes object encoded using a particular >> character set encoding to a string object. >> """ >> http://docs.python.org/dev/library/codecs.html?highlight=codecs#codecs.

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > On Tue, Nov 16, 2010 at 5:54 PM, Marc-Andre Lemburg > wrote: >> >> Marc-Andre Lemburg added the comment: >> >> Please note that PyCodec_Encode()/PyCodec_Decode() will return wha

[issue10439] PyCodec C API is not documented in reST

2010-11-16 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Python Codec Registry and support functions are well documented in codecs.h header file. It should be easy to convert that to reST. -- assignee: d...@python components: Documentation keywords: easy messages: 121329 nosy: belopolsky, d...@pytho

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Attached patch documents all previously undocumented unicode C API functions. Note that for the PyUnicode_As{En,De}codedObject() and PyUnicode_As{En,De}DecodedUnicode() functions I attempted to capture what they are supposed to do rather than what the

[issue9173] logger statement not guarded in shutil._make_tarball

2010-11-16 Thread v_peter
v_peter added the comment: Added a test to the patch -- nosy: +v_peter Added file: http://bugs.python.org/file19620/shutil_logger_with_test.py27.patch ___ Python tracker ___

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Nov 16, 2010 at 5:54 PM, Marc-Andre Lemburg wrote: > > Marc-Andre Lemburg added the comment: > > Please note that PyCodec_Encode()/PyCodec_Decode() will return whatever the > codec returns for these operations. > > The codec system is not limite

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Please note that PyCodec_Encode()/PyCodec_Decode() will return whatever the codec returns for these operations. The codec system is not limited to converting between Unicode and bytes only. A typical example is a same-type codec such as rot13 that only tr

[issue10438] list an example for calling static methods from WITHIN classes

2010-11-16 Thread Ian
Ian added the comment: Disregard my previous comment; calling self.f() does not work from a static method. I stand by my previous suggestion, but I'll clarify it like this: "Note: you must also use the C.f() syntax when calling from a static method within the C class" -- __

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: PyUnicode_AsDecodedObject() and PyUnicode_AsDecodedUnicode() appear to be broken as well: both start with a PyUnicode_Check(unicode) and then pass unicode to PyCodec_Decode() which expects bytes. -- ___ Pytho

[issue10438] list an example for calling static methods from WITHIN classes

2010-11-16 Thread Ian
Ian added the comment: Am I to understand that self.f() is a valid way to call a static method? Can you see how that would run counter to intuition for someone who is familiar with other languages? Given that, I would make the following (more precise) change: < It can be called either on th

[issue10430] _sha.sha().digest() method is endian-sensitive. and hexdigest()

2010-11-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +haypo, lemburg, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Nov 16, 2010 at 10:38 AM, M.-A. Lemburg wrote: > Alexander Belopolsky wrote: .. >> I also have a similar question about C API.  Here, in absence of >> __all__, the answer should be clear: all symbols in public header >> files should start with eit

[issue10438] list an example for calling static methods from WITHIN classes

2010-11-16 Thread R. David Murray
R. David Murray added the comment: Only because you don't *have* self. Which is why I said "imprecise" and not "incorrect" :) -- ___ Python tracker ___ ___

[issue10438] list an example for calling static methods from WITHIN classes

2010-11-16 Thread Georg Brandl
Georg Brandl added the comment: > However, what you wrote is imprecise and confused me when I first read > it (I thought you meant that self.f() didn't work!). Well, it doesn't work in the specific case he mentioned of calling from another static method :) --

[issue6745] (curses) addstr() takes str in Python 3

2010-11-16 Thread Łukasz Langa
Łukasz Langa added the comment: We'll try to solve this for 3.2. -- assignee: -> lukasz.langa nosy: +lukasz.langa priority: normal -> high versions: +Python 3.2 -Python 3.1 ___ Python tracker _

[issue10438] list an example for calling static methods from WITHIN classes

2010-11-16 Thread Georg Brandl
Georg Brandl added the comment: I tend to agree with David. Especially since calling base class methods also uses the explicit class name. -- nosy: +georg.brandl ___ Python tracker __

[issue10438] list an example for calling static methods from WITHIN classes

2010-11-16 Thread R. David Murray
R. David Murray added the comment: Woops, I see you did suggest a wording. However, what you wrote is imprecise and confused me when I first read it (I thought you meant that self.f() didn't work!). -- ___ Python tracker

[issue10438] list an example for calling static methods from WITHIN classes

2010-11-16 Thread R. David Murray
R. David Murray added the comment: IMO this follows logically from Python's self-consistent rules. I'm not convinced that the amount of extra verbiage required to detail this particular case would make the docs clearer, but you are welcome to suggest a wording for us to consider. --

[issue10438] list an example for calling static methods from WITHIN classes

2010-11-16 Thread Ian
New submission from Ian : Concerning this section of the docs: http://docs.python.org/library/functions.html#staticmethod There is no example for calling a static method from another static method within the same class. As I discovered later, it's simple: C.f() -- from inside the class or outs

[issue2901] "error: can't allocate region" from mmap() when receiving big chunk of data

2010-11-16 Thread Stephen Hansen
Stephen Hansen added the comment: I can try to do some testing to reproduce w/ 2.7: 2.5 was IIRC 32-bit on leopard by default though, so should I force a non-64-bit build to test this? I'm not entirely sure if that'll change things, but want to make sure. I can test with both 2.5 and 2.7 on l

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-16 Thread Stephen Hansen
Stephen Hansen added the comment: On 11/16/10 5:44 AM, Ronald Oussoren wrote: > Ronald Oussoren added the comment: > Please explain how the failure can be reproduced. I have. But to do so more directly: 1. Launch Terminal.app; leave the window console open. 2. Run: id -G 3. Run: python 4. Typ

[issue10437] ThreadPoolExecutor should accept max_workers=None

2010-11-16 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : ProcessPoolExecutor allows the max_workers parameter to the constructor to be omitted or None, in which case it will set the max_workers based on the number of CPUs. It would be nice if ThreadPoolExecutor's constructor worked the same way; having the sam

[issue10394] subprocess Popen deadlock

2010-11-16 Thread Christoph Mathys
Christoph Mathys added the comment: Yes, it's the correct file. Sorry, I'm making quite a mess in my description about program: The "attached program" is deadlock.py. Program One and Two are python scripts executed using "python -c", the code is inside deadlock.py. I installed python 2.7 (2.7

[issue2901] "error: can't allocate region" from mmap() when receiving big chunk of data

2010-11-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: This still needs to be verified that there is a problem with a *current* release. That means 2.7.1 (rc just out) or 3.2 (a4 just out). If this would be considered a security issue (I do not know) then 'current' includes 2.5.5, 2.6.6, and 3.1.3 (rc or final).

[issue10436] tarfile.extractfile in "r|" stream mode fails with filenames or members from getmembers()

2010-11-16 Thread David Nesting
New submission from David Nesting : When opening a tarfile with mode "r|" (streaming mode), extractfile("filename") and extractfile(mytarfile.getmembers()[0]) raise "tarfile.StreamError: seeking backwards is not allowed". extractfile(mytarfile.next()) succeeds. A more complete test case: ""

[issue2901] "error: can't allocate region" from mmap() when receiving big chunk of data

2010-11-16 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +ixokai ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue2901] "error: can't allocate region" from mmap() when receiving big chunk of data

2010-11-16 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I'm not sure whether it's related but on psutil we have a similar error message by using Python 2.6.1 64-bit: http://code.google.com/p/psutil/issues/detail?id=135 -- nosy: +giampaolo.rodola status: pending -> open __

[issue10429] bug in test_imaplib

2010-11-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: This was a real bug in IMAP.starttls() actually. Fixed in r86485. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker _

[issue10318] "make altinstall" installs many files with incorrect shebangs

2010-11-16 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue10433] Document unique behavior of 'getgroups' on OSX

2010-11-16 Thread R. David Murray
Changes by R. David Murray : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue2799] Remove _PyUnicode_AsString(), rework _PyUnicode_AsStringAndSize(), add PyUnicode_AsChar()

2010-11-16 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- components: +Interpreter Core stage: -> needs patch versions: +Python 3.3 -Python 3.0, Python 3.1 ___ Python tracker ___

[issue9076] Add C-API documentation for PyUnicode_AsDecodedObject/Unicode and PyUnicode_AsEncodedObject/Unicode

2010-11-16 Thread Georg Brandl
Georg Brandl added the comment: Documenting Unicode C APIs is now tracked in #10435. -- nosy: +georg.brandl resolution: -> out of date status: open -> closed superseder: -> Document unicode C-API in reST ___ Python tracker

[issue10434] Document the rules for "public names"

2010-11-16 Thread Ron Adam
Ron Adam added the comment: You may also want to update help topics. help("PRIVATENAMES"). Identifiers (Names) *** An identifier occurring as an atom is a name. See section *Identifiers and keywords* for lexical definition and section *Naming and binding* for documentation of

[issue8649] Py_UNICODE_* functions are undocumented

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: There are more undocumented functions in unicode.h. It makes sense to fix all of them in one patch. Closing this as superseded by #10435. -- nosy: +belopolsky resolution: -> duplicate status: open -> closed superseder: -> Document unicode C-A

[issue10433] Document unique behavior of 'getgroups' on OSX

2010-11-16 Thread R. David Murray
Changes by R. David Murray : -- nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : The following C-APIs are only documented in comments inside unicode.h: PyUnicode_GetMax PyUnicode_Resize PyUnicode_InternImmortal PyUnicode_FromOrdinal PyUnicode_GetDefaultEncoding PyUnicode_AsDecodedObject PyUnicode_AsDecodedUnicode PyUnicode_AsEncoded

[issue10413] Comments in unicode.h are out of date

2010-11-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > Committed to 3.1 branch in revision 86481. Thanks. -- ___ Python tracker __

[issue10413] Comments in unicode.h are out of date

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed to 3.1 branch in revision 86481. -- status: pending -> closed type: -> behavior versions: +Python 3.1 ___ Python tracker ___ _

[issue10434] Document the rules for "public names"

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Michael Foord suggested adding the following to developer documentation such as PEP 8. [1] I am not sure PEP 8 is the right place for it. In my opinion, PEP 8 is mostly about stylistic choices that don't have a major impact on the users. In other word

[issue10413] Comments in unicode.h are out of date

2010-11-16 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue10413] Comments in unicode.h are out of date

2010-11-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > Committed in revision 86478. Should this go in 3.1? This is a comments-only > change, so it is fairly safe and merging may help future maintenance. On the > other hand, it is

[issue10433] Document unique behavior of 'getgroups' on OSX

2010-11-16 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> d...@python components: +Documentation, Macintosh nosy: +d...@python versions: +Python 3.2 ___ Python tracker ___ _

[issue10433] Document unique behavior of 'getgroups' on OSX

2010-11-16 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10434] Document the rules for "public names"

2010-11-16 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : As discussed in "Breaking undocumented API" thread [1] on python-dev, a definition of "public names" is buried deep in the language reference manual: """ The public names defined by a module are determined by checking the module’s namespace for a vari

[issue10413] Comments in unicode.h are out of date

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in revision 86478. Should this go in 3.1? This is a comments-only change, so it is fairly safe and merging may help future maintenance. On the other hand, it is very unlikely that the header file will need to be changed in maintenance relea

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-16 Thread R. David Murray
R. David Murray added the comment: And it's entirely possible (even likely) that what Stephen is seeing here is a platform bug in OSX's quirky implementation of group management. -- ___ Python tracker

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-16 Thread STINNER Victor
STINNER Victor added the comment: In Python 3, sys.stderr uses the 'backslashreplace' error handler. With C locale, sys.stderr uses the ASCII encoding and so the é unicode character is printed as \xe9. In Python 2, sys.stderr.errors is strict by default. It works if you specify the error han

[issue10433] Document unique behavior of 'getgroups' on OSX

2010-11-16 Thread R. David Murray
New submission from R. David Murray : Per issue 7900, os.getgroups on OSX does not behave the same way as on any other unix platform. This seems worthy of a documentation note, since anyone trying to write portable code could get bit by this. I don't really understand the relationship on OSX

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-16 Thread R. David Murray
R. David Murray added the comment: Having just reread this issue more carefully, my understanding is that Ronald had elected to make the results returned from os.getgroups match that returned by "system tools" (by which I understood him to mean the 'id' command). Since Ronald reports he sees

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: Please explain how the failure can be reproduced. I've done some testing on my machine using Apple's copy of python 2.6.1 (on OSX 10.6), which has the same getgroups implementation as the current heads of the active branches. >>> os.getgroups() [20, 402,

[issue8792] Support Apache extensions to XML-RPC in xmlrpclib

2010-11-16 Thread Adam Bielański
Adam Bielański added the comment: To make example provided by Amaury complete I'll add that in order to support both ways you also need to replace xmlrpclib.dumps() with code from attached file. Changes to original xmlrpclib.dumps() function are outlined with comments. In short - it adds nam

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-16 Thread Michael Foord
Changes by Michael Foord : -- nosy: -michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-16 Thread R. David Murray
R. David Murray added the comment: I agree with Stephen. The test in question is *not a valid test* on OSX. Therefore on OSX it should be skipped. If you can think of a way to test the actual behavior of getgroups on OSX, that's even better. --

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-16 Thread Éric Araujo
Éric Araujo added the comment: Johannes, can you paste the output of the locale command? -- ___ Python tracker ___ ___ Python-bugs-li

[issue8792] Support Apache extensions to XML-RPC in xmlrpclib

2010-11-16 Thread Éric Araujo
Éric Araujo added the comment: An addition: It was reported in #10425 that None values are incorrectly serialized as , instead of just , or maybe <{namespace prefix for extensions defined by Apache}:nil/>. -- nosy: +Adam.Bielański, eric.araujo, orsenthil _

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-16 Thread Éric Araujo
Éric Araujo added the comment: There's no need to apologize, we welcome contributions like your report and are open to discuss patches :) -- ___ Python tracker ___

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-16 Thread Éric Araujo
Changes by Éric Araujo : -- superseder: -> Support Apache extensions to XML-RPC in xmlrpclib ___ Python tracker ___ ___ Python-bugs-l

[issue10134] test_email failures on Windows: end of line issue?

2010-11-16 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10070] 2to3 wishes for already-2to3'ed files

2010-11-16 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2010-11-16 Thread Eugene Kapun
Changes by Eugene Kapun : Added file: http://bugs.python.org/file19618/test-functools.py ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2010-11-16 Thread Eugene Kapun
Changes by Eugene Kapun : Added file: http://bugs.python.org/file19617/test-ctypes.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2010-11-16 Thread Eugene Kapun
Eugene Kapun added the comment: Actually, this can't be fixed without modifying C API methods PyArg_ParseTuple and PyArg_ParseTupleAndKeywords, because it's possible to make an object deallocated before PyArg_ParseTuple returns, so Py_INCREF immediately after parsing would be already too late

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-16 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-16 Thread Adam Bielański
Adam Bielański added the comment: It is. It might go. Didn't notice issue8792 before, thanks for pointing it out. Whole ex:nil issue is discussed there, so this issue might be closed. -- ___ Python tracker __

[issue10432] concurrent.futures.as_completed() spins waiting for futures to complete

2010-11-16 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> bquinlan nosy: +bquinlan stage: -> patch review versions: -Python 3.3 ___ Python tracker ___ _

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Tue, Nov 16, 2010 at 11:32:03AM +, Adam Bielański wrote: > just accept ex:nil as well as nil and not try to analyze namespaces at all. But even that seems specific to Java/ Apache Extension. If it is, then it might go in as part of issue8792.

[issue1553375] Add traceback.print_full_exception()

2010-11-16 Thread Nick Coghlan
Nick Coghlan added the comment: Note that my suggestion was to move the if statement out of the loop as-is: you would still be pulling the traceback to display from the caught exception rather than displaying the stack from the current point of execution. If you want the bottom most point to

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-16 Thread Adam Bielański
Adam Bielański added the comment: Ok, I apologize for being to hasty. Below you can find my answers: 1. SlowParser used in xmlrpclib doesn't deal with namespaces in any reasonable way. If there's a namespace prefix for tag, it's not separated from tag name, but passed as part of tag name. But

[issue10432] concurrent.futures.as_completed() spins waiting for futures to complete

2010-11-16 Thread Scott Dial
New submission from Scott Dial : The code in as_completed() waits on a FIRST_COMPLETED event, which means that after the first future completes, it will no longer wait at all. The proposed patch adds a _AsCompletedWaiter and uses a lock to swap out the finished list and reset the event. This

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-16 Thread Michael Foord
Michael Foord added the comment: The issue is with a non-ascii character in a *Unicode* docstring. Python has to encode the string to write it to the terminal; the encode is implicit and so fails. The problem doesn't happen with Python 3 unless you run on an ascii terminal. -- assign

[issue10431] Failed issue tracker submission

2010-11-16 Thread admin
New submission from admin : You are not a registered user. Unknown address: Order Real Pfizer -- files: unnamed messages: 121278 nosy: admin priority: normal severity: normal status: open title: Failed issue tracker submission Added file: http://bugs.python.org/file19614/unnamed _

[issue10431] Failed issue tracker submission

2010-11-16 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file19614/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10431] Failed issue tracker submission

2010-11-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- Removed message: http://bugs.python.org/msg121278 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue10431] Failed issue tracker submission

2010-11-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ P

[issue7325] tempfile.mkdtemp() does not return absolute pathname when relative dir is specified

2010-11-16 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: -Python 2.6, Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-li

[issue10070] 2to3 wishes for already-2to3'ed files

2010-11-16 Thread Éric Araujo
Éric Araujo added the comment: > That's fair enough. :) Do you want to close this feature request then? -- ___ Python tracker ___ __

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-16 Thread Éric Araujo
Éric Araujo added the comment: I have read and closed too fast, Johannes still has the bug on OS X. Can someone turn his example script into a patch adding a unit test? -- resolution: out of date -> stage: committed/rejected -> unit test needed status: closed -> open ___

[issue8458] buildbot: test_cmd_line failure on Tiger: [Errno 9] Bad file descriptor

2010-11-16 Thread Ned Deily
Ned Deily added the comment: With 3.2a4, OS X 10.4 Tiger buildbot failures reported: == ERROR: test_run_code (test.test_cmd_line.CmdLineTest) -- Traceback (mo

[issue10403] Use "member" consistently

2010-11-16 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- stage: -> needs patch type: -> behavior versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___

[issue10403] Use "member" consistently

2010-11-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: It is 'attributes' instead of term 'members'. The term 'method' when it denotes methods can be left as such. -- assignee: d...@python -> orsenthil nosy: +orsenthil ___ Python tracker

[issue10399] AST Optimization: inlining of function calls

2010-11-16 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10394] subprocess Popen deadlock

2010-11-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: Did you attach the correct files? You mention about two programs in the description, but you have attached only one file 'deadlock.py'. Also, it does not fail on Python 2.7.1. Please try it on the latest codeline from release27-maint too. -- nosy: +or

[issue1028088] Cookies without values are silently ignored (by design?)

2010-11-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: Revisiting this issue. - Cookie: should contain name=value pairs - Set-Cookie: header can contain a single word like 'secure' The current design is along the same lines only. In the original comment, the request had asked to document the behavior of Cookie c

[issue9253] argparse: optional subparsers

2010-11-16 Thread Steven Bethard
Steven Bethard added the comment: I think the proposed API looks fine and should be backwards compatible since add_subparsers will currently throw an exception with a default= argument. In case someone feels like writing a patch, you'll want to look at _SubParsersAction.__init__, which will n