[issue10614] ZipFile and CP932 encoding

2011-01-21 Thread STINNER Victor
STINNER Victor added the comment: In #10972, I propose to add an option for the filename encoding to UTF-8. But I would like to force UTF-8 to create a ZIP file, it doesn't concern the decompression of a ZIP file. Proposal of a specification to fix both issues at the same time. "default_enc

[issue10922] Unexpected exception when calling function_proxy.__class__.__call__(function_proxy)

2011-01-21 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.5, Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue10909] thread hang, possibly related to print

2011-01-21 Thread Scott M
Scott M added the comment: It hasn't failed yet when run "straight". Here's the issue, though. I'm going to be introducing Python as the scripting language of choice, to a bunch of people who are less than fluent in programming. Because debugging is not an obvious concept to them, they are g

[issue10961] Pydoc touchups in new browser for 3.2

2011-01-21 Thread Ron Adam
Ron Adam added the comment: George, My apologies to you for the late corrections. And thanks for doing this. Eric, I replied to your comments on Rietveld. Thanks for taking a look. I'll wait until you have a chance to reply and test it, then upload a new patch with any needed changes. Ron

[issue10925] Document pure Python version of integer-to-float correctly-rounded conversion

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I see there is already something similar for true division. I find +q_max, shift_max = 1 << sig_bits, sys.float_info.max_exp - sig_bits easier to read as two lines +q_max = 1 << sig_bits +shift_max = sys.float_info.max_exp - sig_bits Not having pre

[issue10957] Python FAQ grammar error

2011-01-21 Thread Rafe Kettler
Rafe Kettler added the comment: >for a faster compile Compile isn't a noun; the most grammatically correct sentences would be "for faster compilation." -- nosy: +rafe.kettler ___ Python tracker __

[issue10949] logging.RotatingFileHandler not robust enough

2011-01-21 Thread Vinay Sajip
Vinay Sajip added the comment: Fix checked into py3k, release27-maint, release31-maint (r88139). The 2.6 branch is closed for changes other than security fixes. -- assignee: -> vinay.sajip resolution: -> fixed status: open -> closed ___ Python tra

[issue10973] 'ñ' not working with IDLE 3.2rc1 - OSX 10.6.6

2011-01-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: As this clearly seems to be a Tk bug, I suggest to close this report as "won't fix - 3rd party". -- nosy: +loewis ___ Python tracker ___

[issue10943] abitype: Need better support to port C extension modules to the stable C API

2011-01-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: Notice that a boilerplate module is already available: xxlimited.c. -- ___ Python tracker ___ ___

[issue10909] thread hang, possibly related to print

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: FWIW, I downloaded, edited for 3.2, and ran. 45 minutes later, with counter in box near 16000, and output sequence looking about the same as initially, I killed with Task Manager (also on winxp). You might try same on your system. -- Added file: http:

[issue10977] Concrete object C API needs abstract path for subclasses of builtin types

2011-01-21 Thread Raymond Hettinger
New submission from Raymond Hettinger : Currently, the concrete object C API bypasses any methods defined on subclasses of builtin types. It has long been accepted that subclasses of builtin types need to override many methods rather than just a few because the type itself was implemented w

[issue10973] 'ñ' not working with IDLE 3.2rc1 - OSX 10.6.6

2011-01-21 Thread Nestor Aguilera
Nestor Aguilera added the comment: On 21 Jan 2011, at 20:39, Martin v. Löwis wrote: > Martin v. Löwis added the comment: > > As this clearly seems to be a Tk bug, I suggest to close this report as > "won't fix - 3rd party". I see your point. The problem is that IDLE is somewhat included wit

[issue10957] Python FAQ grammar error

2011-01-21 Thread Jerry Seutter
Jerry Seutter added the comment: I agree with what Rafe said. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue10973] 'ñ' not working with IDLE 3.2rc1 - OSX 10.6.6

2011-01-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I see your point. The problem is that IDLE is somewhat included with > Python (so in a sense it is not "3rd party"), and seems like a good > tool for learning Python: my concern is similar to that in message > 126276 . Unfor

[issue10978] Add optional argument to Semaphore.release for releasing multiple threads

2011-01-21 Thread Raymond Hettinger
New submission from Raymond Hettinger : Call sem.release(5) would have the same effect as: with lock: for i in range(5): sem.release() The use case is when a single semaphore is holding up multiple threads and needs to release them all. According to "The Little Book of Semaphores

[issue10957] Python developer FAQ grammar error

2011-01-21 Thread Jerry Seutter
Changes by Jerry Seutter : -- title: Python FAQ grammar error -> Python developer FAQ grammar error ___ Python tracker ___ ___ Python-

[issue10973] 'ñ' not working with IDLE 3.2rc1 - OSX 10.6.6

2011-01-21 Thread Nestor Aguilera
Nestor Aguilera added the comment: On 21 Jan 2011, at 21:12, Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > >> I see your point. The problem is that IDLE is somewhat included with >> Python (so in a sense it is not "3rd party"), and seems like a good >> tool for learning Pyt

[issue10957] Python developer FAQ grammar error

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: In general, the website is separate from Python code and documentation and website issues should be sent to webmas...@python.org, not here, as code/doc committers cannot change web pages. However, this particular page (dev/faq) has being pulled into the (hg)

[issue5863] bz2.BZ2File should accept other file-like objects.

2011-01-21 Thread Nadeem Vawda
Nadeem Vawda added the comment: I have been working on a patch for this issue. I've implemented everything except for readline(), readlines() and the iterator protocol. In the existing implementation, the reading methods seem to interact weirdly - iternext() uses a readahead buffer, while non

[issue10968] threading.Timer should be a class so that it can be derived

2011-01-21 Thread R. David Murray
R. David Murray added the comment: See also issue 5831. That should probably be closed as a dup of this since this has an explanation. -- nosy: +r.david.murray ___ Python tracker

[issue10954] No warning for csv.writer API change

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Failing when passed a bytesIO object seems reasonable. I question the bit about newlines though. The doc does not specify that newlines='' is needed on output. While is says it is needed for input, why? Why is a mix of '\n', '\r\n', and '\r' better than always

[issue10954] No warning for csv.writer API change

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Changing csv api is a feature request that could only happen in 3.3. -- nosy: +skip.montanaro type: behavior -> feature request versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker

[issue10970] "string".encode('base64') is not the same as base64.b64encode("string")

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Questions should generally be asked on python-list or its mirrors. The docs do not say that the result should be exactly, byte-for-byte, the same. base64 module refers to RFC 3548. Both our doc and the RFC describe variations. The base64 codec does 'Mime base

[issue10954] No warning for csv.writer API change

2011-01-21 Thread R. David Murray
R. David Murray added the comment: Newline='' is indeed needed. It preserves the newlines so that the csv module can correctly parse them according to the weird csv quoting roles. And for output, the fact that it isn't documented there is a an issue that was only noticed recently. -

[issue10957] Python developer FAQ grammar error

2011-01-21 Thread Brett Cannon
Brett Cannon added the comment: That entire portion of the FAQ has been removed as it was redundant compared to other parts of the devguide. Closing as out of date. -- resolution: -> out of date status: open -> closed ___ Python tracker

[issue10970] "string".encode('base64') is not the same as base64.b64encode("string")

2011-01-21 Thread Mahmoud Abdelkader
Mahmoud Abdelkader added the comment: Thanks for the clarification Terry. This is indeed not a bug. For reference, the pieces of code I pasted line-wrapped after the 76th character, which was my main source of confusion. After reading RFC3548, I am now informed that the behavior of string.enc

[issue10967] move regrtest over to using more unittest infrastructure

2011-01-21 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +gsoc nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10909] thread hang, possibly related to print

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I ran the 2.7 file (on 2.7) and after several minutes, threadA stopped printing, but no error message. Antoine, could improvement from 2.7 to 3.2 have anything to new with the new implementation of the Global Interpreter Lock? Scott, if you can do your proje

[issue10979] setUpClass exception causes explosion with "-b"

2011-01-21 Thread Brandon Craig Rhodes
New submission from Brandon Craig Rhodes : Normally, unittest cleanly reports an exception in a setUpClass method. But if I place the attached test in a directory by itself and then run "python -m unittest discover -b" from inside of the same directory, then instead of being shown the setUpCla

[issue4216] subprocess.Popen hangs at communicate() when child exits

2011-01-21 Thread Ross Lagerwall
Ross Lagerwall added the comment: Yes I think subprocess is working correctly. Since this feature request is 2 years old now without any interest, I think it should be closed. If the functionality is needed, it can always be programmed by the user when needed. -- nosy: +rosslagerwall

[issue10979] setUpClass exception causes explosion with "-b"

2011-01-21 Thread R. David Murray
Changes by R. David Murray : -- nosy: +michael.foord type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10967] move regrtest over to using more unittest infrastructure

2011-01-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Wouldn't the time be better spent factoring the test suite or improving coverage? I'm not sure how simply rearranging the tests makes us better-off. -- nosy: +rhettinger ___ Python tracker

[issue10911] cgi: add more tests

2011-01-21 Thread Pierre Quentel
Pierre Quentel added the comment: Hi, I have written more tests, but also propose changes to cgi.py : - rewrite the parse_qs() and parse_multipart() functions so that they use FieldStorage methods instead of duplicating them - add a function set_stdout_encoding(encoding), using the IOMix clas

[issue10974] IDLE 3.2 not loading on double-click in Finder, OSX 10.6

2011-01-21 Thread Ned Deily
Ned Deily added the comment: >From the traceback, IDLE is crashing on a decode error when trying to process >the list of recently used files which is used to populate its recent files >menu. That list of files is saved in ~/.idlerc/recent-file.lst so an easy >workaround is to delete the file

[issue10974] IDLE 3.2 not loading on double-click in Finder, OSX 10.6

2011-01-21 Thread Ned Deily
Ned Deily added the comment: >From the traceback, IDLE is crashing on a decode error when trying to process >the list of recently used files which is used to populate its recent files >menu. That list of files is saved in ~/.idlerc/recent-file.lst so an easy >workaround is to delete the file

[issue10974] IDLE 3.2 not loading on double-click in Finder, OSX 10.6

2011-01-21 Thread Ned Deily
Changes by Ned Deily : -- Removed message: http://bugs.python.org/msg126820 ___ Python tracker ___ ___ Python-bugs-list mailing list U

<    1   2