[issue3488] Provide compress/uncompress functions on the gzip module

2008-08-03 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: Added test case in test_gzip.py. Attaching svn diff of the same. Added file: http://bugs.python.org/file11052/test_gzip_svn_diff.patch ___ Python tracker <[EMAIL PROTECTED]>

[issue3492] Zlib compress/decompress functions returning bytearray

2008-08-03 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: Ok. I added two tests for checking the type of the returned object for zlib.compress and zlib.decompress in test_zlib.py in the py3k branch. Btw, my code uses assertEqual(type(...), bytes). Is this the proper way of type checking in py3k ? I

[issue3488] Provide compress/uncompress functions on the gzip module

2008-08-03 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: Uploading the svn diff. Added file: http://bugs.python.org/file11050/gzip_svn_diff.patch ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3492] Zlib compress/decompress functions returning bytearray

2008-08-03 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: Uploading svn diff for zlibmodule.c. Btw, how do I add unit tests for a fix ? You want me to create a simple test file and upload it here, or is there a standard procedure for this ? Please advise. Added file: http://bugs.python.org/file11049

[issue3487] sre "bytecode" verifier

2008-08-03 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: +1 I'd like to see this make it in. -- nosy: +gregory.p.smith ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue2277] MozillaCookieJar does not support Firefox3 cookie files

2008-08-03 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: Thanks. I've looked over your code. The logic looks good, however I'd like to propose a better design and that this not be included in 2.6. Instead of putting this functionality in the MozCookieJar class, it should be its own new Firefox3

[issue2113] Bad interaction between signal and subprocess

2008-08-03 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: fixed in release25-maint r65475. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3210] subprocess.Popen does not release process handles if process cannot be started

2008-08-03 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: I tried closing -all- of the handles listed here (the std ones used as input to _get_handles and the pipe read/write ones returned) on an OSError during CreateProcess but the problem still occurs for me using the test code in msg68787.

[issue2222] Memory leak in os.rename?

2008-08-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue3228] mailbox.mbox creates files with execute bit set

2008-08-03 Thread A.M. Kuchling
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: There's another use of os.open in the module in the MH class's __setitem__ that doesn't provide a mode, but I think this occurrence is harmless; it's truncating a file that always exists, so the existing mode is preserved. Here's the little te

[issue3385] cPickle to pickle conversion in py3k missing methods

2008-08-03 Thread Alexandre Vassalotti
Alexandre Vassalotti <[EMAIL PROTECTED]> added the comment: I got a preliminary patch that adds the dispatch dictionary. However, the patch leaks and it doesn't expose the save_reduce() method (which is needed by ForkingPickler). -- keywords: +patch Added file: http://bugs.python.org/fil

[issue3228] mailbox.mbox creates files with execute bit set

2008-08-03 Thread A.M. Kuchling
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Committed to trunk in rev. 65472, along with two corresponding tests. -- nosy: +akuchling ___ Python tracker <[EMAIL PROTECTED]> __

[issue1606] Doc: subprocess wait() may lead to dead lock

2008-08-03 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: See the documentation update in trunk r65469. It adds warnings about both common pipe related pitfalls discussed in this bug. -- resolution: accepted -> fixed status: open -> closed ___ Python t

[issue1471] ioctl request argument broken on 64-bit OpenBSD or OS X

2008-08-03 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: committed to release25-maint as r65466. if testing on 64bit openbsd or similar reveals that this is not fixed, please reopen the bug. -- status: open -> closed ___ Python tracker <[EMAIL PROTECT

[issue3120] subprocess module truncates handles on AMD64

2008-08-03 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: fixed in release25-maint r65461. already merged into py3k from trunk. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> __

[issue3463] make life.py use more rendering characters

2008-08-03 Thread mvngu
mvngu <[EMAIL PROTECTED]> added the comment: Thank you Terry. I highly appreciate your comments. ___ Python tracker <[EMAIL PROTECTED]> ___ ___ P

[issue1857] subprocess.Popen.poll/__del__ API breakage

2008-08-03 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: Fixed in trunk r65459. release25-maint r65460. -- resolution: -> accepted status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> __

[issue3492] Zlib compress/decompress functions returning bytearray

2008-08-03 Thread Alexandre Vassalotti
Alexandre Vassalotti <[EMAIL PROTECTED]> added the comment: Could you submit unified diff--i.e., with 'diff -u' or 'svn diff'? Also, could you add tests for this fix? -- nosy: +alexandre.vassalotti ___ Python tracker <[EMAIL PROTECTED]>

[issue3497] a bug in the interpreter?

2008-08-03 Thread Tim Peters
Tim Peters <[EMAIL PROTECTED]> added the comment: Vadim, to see how memory addresses change, simply add something like print "id", id(self) to Sequence.__init__. On Windows (Vista, Python 2.5.1), I see different addresses printed each time the program is run. Then, as Martin said, the def

[issue2744] Fix test_cProfile

2008-08-03 Thread Alexandre Vassalotti
Alexandre Vassalotti <[EMAIL PROTECTED]> added the comment: Not anymore! :-) ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mail

[issue3497] a bug in the interpreter?

2008-08-03 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: I think we have enough evidence now to close this bug as invalid. :) -- nosy: +georg.brandl resolution: -> invalid status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue3497] a bug in the interpreter?

2008-08-03 Thread vadim suvorov
vadim suvorov <[EMAIL PROTECTED]> added the comment: Tim, Martin, thank you very much. I think now it is not an issue, and the record can be closed. Thank you very much again, and please accept my apology. 2 Guilherme Polo: I ran it many times. The results in WinXP (with constant script) are v

[issue3497] a bug in the interpreter?

2008-08-03 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > I am still very much confused, how change in print statement changes > order in which items are removed from a set. I presumed it to be > undefined but deterministic (similar to dict()): while I cannot tell > which order it is going to be,

[issue3497] a bug in the interpreter?

2008-08-03 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: Just run it a couple of times and you will hit the problem in both "failing" and "running" examples you added. -- nosy: +gpolo ___ Python tracker <[EMAIL PROTECTED]>

[issue3497] a bug in the interpreter?

2008-08-03 Thread vadim suvorov
vadim suvorov <[EMAIL PROTECTED]> added the comment: Thank you very much, Tim. I am still very much confused, how change in print statement changes order in which items are removed from a set. I presumed it to be undefined but deterministic (similar to dict()): while I cannot tell which order i

[issue3497] a bug in the interpreter?

2008-08-03 Thread Tim Peters
Tim Peters <[EMAIL PROTECTED]> added the comment: I doubt this is a bug in Python. It's more likely an error (one or more ;-)) in the logic of the script, triggered by the inherently unpredictable order of set iteration. Some evidence: I added a `.counter` member to the Sequence class, and cha

[issue3497] a bug in the interpreter?

2008-08-03 Thread Martin v. Löwis
Changes by Martin v. Löwis <[EMAIL PROTECTED]>: -- nosy: +loewis ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing

[issue3497] a bug in the interpreter?

2008-08-03 Thread vadim suvorov
Changes by vadim suvorov <[EMAIL PROTECTED]>: -- versions: +Python 2.4 ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list m

[issue3497] a bug in the interpreter?

2008-08-03 Thread vadim suvorov
vadim suvorov <[EMAIL PROTECTED]> added the comment: tested Python 2.4.4 on WinXP SP3. It required minor modifications of the code (removing conditional expressions), but the effect stayed. ___ Python tracker <[EMAIL PROTECTED]>

[issue3492] Zlib compress/decompress functions returning bytearray

2008-08-03 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: Hi, I have a patch ready for this to be applied to zlibmodule.c. The patch is attached. I have tested it and it is working fine. -- keywords: +patch Added file: http://bugs.python.org/file11047/zlibmodule.patch __

[issue3497] a bug in the interpreter?

2008-08-03 Thread vadim suvorov
Changes by vadim suvorov <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11046/nonogramsolver09.py ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3497] a bug in the interpreter?

2008-08-03 Thread vadim suvorov
New submission from vadim suvorov <[EMAIL PROTECTED]>: The result of the attached script execution is extremely unstable. The change in the print statement in line 146 from 'print "1"' to 'print 1' (string literal to numerical) changes the result of execution to the correct (presumably) one. The

[issue3488] Provide compress/uncompress functions on the gzip module

2008-08-03 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: I have uploaded the actual patch file which can be applied against the gzip.py module. I did not modify the _test() function since it is written for testing file compression. I can modify test_gzip.py if this patch is accepted. -- key

[issue3475] _elementtree.c import can fail silently

2008-08-03 Thread Fredrik Lundh
Fredrik Lundh <[EMAIL PROTECTED]> added the comment: This is fixed in the ET 1.3-compatible codebase. Since it's too late to add ET 1.3 to 2.6, I guess it's time to make a new 1.2 bugfix release for 2.6. ___ Python tracker <[EMAIL PROTECTED]>

[issue3496] distutils fails with mingw binutils 2.18.50.20080109

2008-08-03 Thread Antoine Pitrou
Changes by Antoine Pitrou <[EMAIL PROTECTED]>: -- priority: -> critical versions: +Python 2.6, Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3496] distutils fails with mingw binutils 2.18.50.20080109

2008-08-03 Thread Paul Moore
New submission from Paul Moore <[EMAIL PROTECTED]>: The latest version of Mingw binutils, 2.18.50.20080109, uses a 4-part version number which distutils does not like (StrictVersion only allows for 3 parts). The attached patch fixes this, simply by using LooseVersion (the version number has alre

[issue3228] mailbox.mbox creates files with execute bit set

2008-08-03 Thread Niels Gustäbel
Niels Gustäbel <[EMAIL PROTECTED]> added the comment: Of course you are right... Added file: http://bugs.python.org/file11042/mailbox-fix-w-tests-v2.diff ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3228] mailbox.mbox creates files with execute bit set

2008-08-03 Thread Jakub Wilk
Jakub Wilk <[EMAIL PROTECTED]> added the comment: For consistency with other methods, test_folder_file_permissions() should set umask to 0. ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3228] mailbox.mbox creates files with execute bit set

2008-08-03 Thread Niels Gustäbel
Niels Gustäbel <[EMAIL PROTECTED]> added the comment: I've added tests for all mailbox formats and the maildirfolder marker, so I think all aspects of the fix are covered. The permissions of temporary files and lock files are not checked, but they are basically all using the _create_carefully() f

[issue3495] site module doc typo

2008-08-03 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Thanks, fixed in r65430. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___