[issue5110] Printing Unicode chars from the interpreter in a non-UTF8 terminal raises an error (Py3)

2009-04-04 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: What I'm proposing is not to change the default error handler to 'backslashreplace', but just the behavior of sys.displayhook. -- ___ Python tracker rep...@bugs.python.org

[issue5442] [3.1alpha1] test_importlib fails on Mac OSX 10.5.6

2009-04-04 Thread Ismail Donmez
Ismail Donmez ism...@namtrac.org added the comment: Sure thing, I am waiting for alpha2. Regards. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5442 ___

[issue3851] IDLE: Pressing Home on Windows places cursor before instead of after. Solution offered.

2009-04-04 Thread Kurt B. Kaiser
Kurt B. Kaiser k...@shore.net added the comment: This wasn't backported to 2.5 as it's trivial and life is short. I have a clean install of 3.0.1 from the msi installer, running on an eeePC 1000HA, XP Home, tk 8.5. If I type a string at the prompt in the IDLE shell and hit the home key, the

[issue5678] typo in future_builtins documentation

2009-04-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks. Fixed in r71123. -- nosy: +r.david.murray priority: - low resolution: - fixed stage: - committed/rejected status: open - closed type: - behavior versions: -Python 3.0, Python 3.1

[issue3851] IDLE: Pressing Home on Windows places cursor before instead of after. Solution offered.

2009-04-04 Thread Kurt B. Kaiser
Kurt B. Kaiser k...@shore.net added the comment: Weeble found the problem: it's the numlock key interacting with a bug. I can reproduce it when I latch numlock. http://bugs.python.org/msg80478 -- nosy: +weeble resolution: works for me - accepted status: pending - open

[issue4676] python3 closes + home keys

2009-04-04 Thread Kurt B. Kaiser
Kurt B. Kaiser k...@shore.net added the comment: Thanks for the research on the home key toggle. Let's take that to issue3851, it seems it's different from the rest of this issue. -- nosy: +kbk superseder: - IDLE: Pressing Home on Windows places cursor before instead of after.

[issue5674] distutils fails to find Linux libs (lib.....so.n)

2009-04-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Are you sure it isn't your Fedora installation that has the problem? My understanding is that the linker name (the libxxx.so name) should exist and be a symbolic link to the most recent soname (libxxx.N). So I think distutils is doing

[issue459007] Document sys.path on Windows

2009-04-04 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- keywords: +easy versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue459007 ___

[issue1529142] Allowing multiple instances of IDLE with sub-processes

2009-04-04 Thread Kurt B. Kaiser
Kurt B. Kaiser k...@shore.net added the comment: r71126. Thanks to everyone for all the work on this! Note: I still need to patch the Windows install to bind .py files to a different command string. The -e option now only opens an editor window, but I need to remove the -n option. --

[issue1757831] Allow opening just an editor window

2009-04-04 Thread Kurt B. Kaiser
Kurt B. Kaiser k...@shore.net added the comment: r71126 -e only opens edit window, not shell -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1757831

[issue5257] test_zipfle and test_distutils write in the test directories

2009-04-04 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: done in distutils, will open a specific issue for zip. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5257 ___

[issue5684] test_zipfile writes in its test directory

2009-04-04 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: test_zipfile writes in its test directory, which can be a problem if this directory is read-only in some installations. -- messages: 85382 nosy: tarek priority: low severity: normal status: open title: test_zipfile writes in its

[issue2953] _zip_directory_cache untested and undocumented

2009-04-04 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- priority: - normal versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2953 ___

[issue4015] [patch] make installed scripts executable on windows

2009-04-04 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- priority: - normal type: - feature request versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4015

[issue5616] Distutils 2to3 support doesn't have the doctest_only flag.

2009-04-04 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5616 ___ ___ Python-bugs-list

[issue5302] Allow package_data globs match directories

2009-04-04 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: After some discussion at Pycon, I was convinced that MANIFEST.in should be removed. I'll send a mail about this in Distutils-SIG and if there's a consensus, I'll deprecate it and also add glob pattern for package_data. -- priority:

[issue5685] use tarinfo module in distutils

2009-04-04 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: Currently, Distutils makes a system call to tar files, using the tar command. Let's use Python's tarinfo module, so we don't rely on the tar program anymore. -- assignee: tarek components: Distutils messages: 85384 nosy: tarek

[issue5682] Move io-in-c modules into a subdirectory of Modules/

2009-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: You should commit. If there is a problem with other Windows build files, it will certainly be noticed and fixed by a true Windows developer. -- ___ Python tracker rep...@bugs.python.org

[issue5110] Printing Unicode chars from the interpreter in a non-UTF8 terminal raises an error (Py3)

2009-04-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: -haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5110 ___ ___

[issue5686] Float formatting with no type code produces incorrect output for exponential notation

2009-04-04 Thread Eric Smith
New submission from Eric Smith e...@trueblade.com: If no format specifier is supplied to a float, it's supposed to work like 'g', but with at least one digit after the decimal. This works for non-exponential notation: format(1., '') '1.0' format(1., 'g') '1' But for exponential notation, it

[issue5686] Float formatting with no type code produces incorrect output for exponential notation

2009-04-04 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5686 ___ ___ Python-bugs-list mailing

[issue5686] Float formatting with no type code produces incorrect output for exponential notation

2009-04-04 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: The documentation doesn't agree with the PEP. The docs at http://docs.python.org/library/string.html#formatstrings just say '' is the same as 'g'. It does not draw a distinction between exponential and fixed output. The PEP has the at least one

[issue5645] test_memoryio fails for py3k on windows

2009-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It looks like there is a disagreement between c-io and py-io as to what the newline parameter in StringIO means. I think the c-io version makes more sense (but I'm biased, since I wrote it), while the py-io results are quite difficult to

[issue5645] test_memoryio fails for py3k on windows

2009-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Can you test with the following patch? -- keywords: +patch Added file: http://bugs.python.org/file13610/memio.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5645

[issue5645] test_memoryio fails for py3k on windows

2009-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Buildbots should be green for the release. -- priority: - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5645 ___

[issue5645] test_memoryio fails for py3k on windows

2009-04-04 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - patch review type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5645 ___ ___

[issue5686] Float formatting with no type code produces incorrect output for exponential notation

2009-04-04 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I don't really see this as a bug in the behaviour. I'd always understood the purpose of the at least one digit after the decimal to be to make it possible to visually distinguish floats and integers, in the same way that repr and str

[issue5687] Docstring typo in _io

2009-04-04 Thread Brian Quinlan
Changes by Brian Quinlan br...@sweetapp.com: -- components: Extension Modules files: docstring.diff keywords: patch nosy: bquinlan severity: normal status: open title: Docstring typo in _io versions: Python 3.1 Added file: http://bugs.python.org/file13611/docstring.diff

[issue5634] cPickle error in case of recursion limit

2009-04-04 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Yes, that's true. It should be more generally helpful in there. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5634

[issue5642] multiprocessing.Pool.map() docs slightly misleading

2009-04-04 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r71149. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5642 ___

[issue5601] webbrowser doesn't just open browsers

2009-04-04 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Updated docs in r71150. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5601 ___

[issue5645] test_memoryio fails for py3k on windows

2009-04-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I confirmed the patch works. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5645 ___

[issue5645] test_memoryio fails for py3k on windows

2009-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r71151, thanks! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5645 ___

[issue3845] memory access before short string when checking suffix

2009-04-04 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: fixed for 2.7, 2.6, 3.1 -- assignee: - doko resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3845

[issue4375] inspect.getsource doesn't work with PYTHONPATH and source compiled from a different dir

2009-04-04 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Easily done. :) -- nosy: +georg.brandl resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4375

[issue2578] additional unittest type equality methods

2009-04-04 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I'd like to add assertIs and assertNotIs. We have these at work and I would find them useful whilst writing tests for another set of changes to unittest I'm currently working on! -- ___

[issue2578] additional unittest type equality methods

2009-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le samedi 04 avril 2009 à 15:06 +, Michael Foord a écrit : Michael Foord mich...@voidspace.org.uk added the comment: I'd like to add assertIs and assertNotIs. Let's call it AssertIsNot (we type x is not None, not x not is None).

[issue2578] additional unittest type equality methods

2009-04-04 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I would *mmuch* prefer assertIsNot but it is not symmetrical with the other asserts. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2578

[issue5688] inability to ignore multiline warnings -- request to add re.DOTALL to re.compile

2009-04-04 Thread Matthias Klose
New submission from Matthias Klose d...@debian.org: [forwarded from http://bugs.debian.org/519454] As of now, warnings.py provides only re.I flag to re.compile on warnings.py:160. Recent python-numpy issues way too many warnings, I was trying to filter them out using warnings.filterwarnings,

[issue5142] pdb feature request: Ability to skip standard lib modules and other selected packages/modules

2009-04-04 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - georg.brandl nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5142 ___

[issue5687] Docstring typo in _io

2009-04-04 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - georg.brandl nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5687 ___

[issue5689] please support lzma compression as an extension and in the tarfile module

2009-04-04 Thread Matthias Klose
New submission from Matthias Klose d...@debian.org: GNU tar now supports lzma compression as a compression method. Please consider adding lzma support to the tarfile module (either by using the external lzma program or by adding a lzma extension to the standard library). lzma extension at

[issue5689] please support lzma compression as an extension and in the tarfile module

2009-04-04 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- priority: - normal versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5689 ___

[issue5679] cleanUp stack for unittest

2009-04-04 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Patch attached. No docs, if it is agreed I can apply I'll write docs. After a long discussion we arrived at some semblance of consensus on the Testing In Python mailing list that this was a good thing (tm). Only one -1 (thought that

[issue2578] additional unittest type equality methods

2009-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I would *mmuch* prefer assertIsNot but it is not symmetrical with the other asserts. Well, apparently assertIsNotNone() has been added, so it would be good to be symmetrical with that :) -- ___

[issue2578] additional unittest type equality methods

2009-04-04 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I found while merging this to Py3k that dicts can't be used in assertSameElements because they are unorderable in py3k. -- ___ Python tracker rep...@bugs.python.org

[issue5470] MSI installer misses zipdir.zip file in Lib\test

2009-04-04 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I don't think I'm going to let this block today's release. Martin, I assume you can just apply the patch locally when you are building the installers? -- nosy: +benjamin.peterson ___ Python

[issue5690] test_types fails under Windows

2009-04-04 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Compiled with VS 2008 Express: test test_types failed -- Traceback (most recent call last): File Z:\py3k\__svn__\lib\test\test_types.py, line 343, in test_int__format__ test(1234, ',', '1,234') File

[issue5410] msvcrt bytes cleanup

2009-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There seems to be a problem with ungetwch(): s = msvcrt.getwch() # Here I type the Euro sign (€) ascii(s) '\\u20ac' msvcrt.ungetwch(s) u = msvcrt.getwch() ascii(u) '\\xac' -- nosy: +pitrou type: - behavior

[issue5691] test_collections fails under Windows

2009-04-04 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This is under Windows XP with VS 2008 Express: test test_collections failed -- Traceback (most recent call last): File Z:\py3k\__svn__\lib\test\test_collections.py, line 714, in test_equalit y self.assertNotEqual(od1, od2) #

[issue5391] mmap: read_byte/write_byte and object type

2009-04-04 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r71174. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5391

[issue5679] cleanUp stack for unittest

2009-04-04 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I'm agnostic on before / after tearDown, so happy to make that change. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5679 ___

[issue5690] test_types fails under Windows

2009-04-04 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5690 ___ ___ Python-bugs-list

[issue5692] test_zipfile fails under Windows

2009-04-04 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Under Windows XP with VS 2008 Express: test test_zipfile failed -- Traceback (most recent call last): File Z:\py3k\__svn__\lib\test\test_zipfile.py, line 334, in testExtract self.assertEqual(writtenfile, correctfile) AssertionError:

[issue5691] test_collections fails under Windows

2009-04-04 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r71176. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5691

[issue2578] additional unittest type equality methods

2009-04-04 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Patch with assertIs and assertIsNot. Docs but nothing in NEWS as already covered. Ok to apply? -- Added file: http://bugs.python.org/file13613/unittest-assertis.diff ___ Python tracker

[issue5691] test_collections fails under Windows

2009-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed in r71176. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5691 ___ ___

[issue5690] test_types fails under Windows

2009-04-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I got SEGV on test_types on VC6, but after clean build, it seems SEGV was gone. Maybe build problem? -- nosy: +ocean-city ___ Python tracker rep...@bugs.python.org

[issue5672] Implement a way to change the python process name

2009-04-04 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: If somebody would provide a patch that adds prctl to the posix module, that would be fine with me - we have a long tradition of exposing all available system calls if somebody wants them. As for Windows: no, there is no equivalent of prctl.

[issue5690] test_types fails under Windows

2009-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Actually, it works in debug mode, but not in release mode. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5690 ___

[issue5674] distutils fails to find Linux libs (lib.....so.n)

2009-04-04 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I agree with David. The .so name must exist; if it doesn't, your installation does indeed lack the necessary prerequisite. Closing as invalid. -- nosy: +loewis resolution: - invalid status: open - closed

[issue2578] additional unittest type equality methods

2009-04-04 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Patch for Py3k with fallback for comparing unsortable sequences in assertSameElements. Removed the expected failure and added another test case to confirm that this patch works for unsortable sequences that are the same (no fail) and

[issue5690] test_types fails in non-debug mopde

2009-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, actually it also happens under Linux in non-debug mode. -- title: test_types fails under Windows - test_types fails in non-debug mopde ___ Python tracker rep...@bugs.python.org

[issue5690] test_types fails in non-debug mode

2009-04-04 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- title: test_types fails in non-debug mopde - test_types fails in non-debug mode ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5690 ___

[issue5689] please support lzma compression as an extension and in the tarfile module

2009-04-04 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: As for an lzma module - I would prefer one that isn't LGPL'ed. Instead, it should link against a system-provide lzma library (which then might or might not licensed under lpgl). I would probably exclude the lzma module from Windows, as

[issue5470] MSI installer misses zipdir.zip file in Lib\test

2009-04-04 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Tim, thanks for the patch. Applied in r71179, r71180, r71181 and r71182. Hope it still goes into the tag. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org

[issue5410] msvcrt bytes cleanup

2009-04-04 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I think this can wait until the first beta. -- nosy: +benjamin.peterson priority: release blocker - deferred blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5410

[issue5692] test_zipfile fails under Windows

2009-04-04 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Let's worry about this after the alpha. -- nosy: +benjamin.peterson priority: release blocker - deferred blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5692

[issue5690] test_types fails in non-debug mode

2009-04-04 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- assignee: - eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5690 ___ ___ Python-bugs-list

[issue5690] test_types fails in non-debug mode

2009-04-04 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Problem was a debug #ifdef in the wrong place. Sorry for not testing in non-debug mode. Fixed in r71184. -- priority: release blocker - normal resolution: - fixed stage: needs patch - committed/rejected status: open - closed

[issue5682] Move io-in-c modules into a subdirectory of Modules/

2009-04-04 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Committed in r71185. Thanks Antoine for the review! -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5682

[issue5692] test_zipfile fails under Windows

2009-04-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: This happens when running test from root directory. Following patch can workaround this, but this code is there because it is needed, isn't it? (Related to #4710?) Index: Lib/zipfile.py

[issue2578] additional unittest type equality methods

2009-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Seeing how a change in assertNotEqual unveiled a bug in OrderedDict, would it be desireable for each of assertEqual and assertNotEqual to test both the '!=' and '==' operators? -- ___ Python tracker

[issue5679] cleanUp stack for unittest

2009-04-04 Thread Robert Collins
Robert Collins robe...@robertcollins.net added the comment: It should run after tearDown so that teardown can do actions that may require cleanup; because the cleanups run in LIFO you can acquire resources in setUp and have cleanups clean them up, -- nosy: +rbcollins

[issue5670] Speed up pickling of dicts in cPickle

2009-04-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Sorry, I was wrong. I think I noticed that the case size==1 was handled differently, and incorrectly inferred the same for size==0. (btw, the patch for trunk was not updated) -- ___ Python

[issue5679] cleanUp stack for unittest

2009-04-04 Thread Robert Collins
Robert Collins robe...@robertcollins.net added the comment: Actually let me phrase that differently. standard practice for setUp is super.setUp() my_setup_code() and tearDown is my_teardown_code() super.tearDown() because of the LIFO need. If you imagine that clean ups are being done in the

[issue5693] TestSuite.__iter__ is not hookable.

2009-04-04 Thread Robert Collins
New submission from Robert Collins robe...@robertcollins.net: Currently if you alter the way TestSuite iterates one must always implement countTestCases, run, debug etc. The attached patch would make this simpler. If this looks ok I'll write up a test for it. -- components: Library

[issue5693] TestSuite.__iter__ is not hookable.

2009-04-04 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: +1 it's a minor change. -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5693 ___

[issue5679] cleanUp stack for unittest

2009-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: teardown Why should they? It's only an implementation choice, and not a wise one I would say (precisely because people are used to the fact that the standard tearDown() method does nothing, and doesn't need to be called). I explained my proposal

[issue5693] TestSuite.__iter__ is not hookable.

2009-04-04 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: This looks correct. Just while your at it, you can fix the if statement in the debug() method by putting the body on another line. -- nosy: +benjamin.peterson ___ Python tracker

[issue5679] cleanUp stack for unittest

2009-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Sorry, roundup screwed the quoting. I was responding to the following sentence: “If you imagine that clean ups are being done in the base class teardown”. -- ___ Python tracker rep...@bugs.python.org

[issue5672] Implement a way to change the python process name

2009-04-04 Thread Marcelo Fernández
Marcelo Fernández fernandez...@yahoo.com.ar added the comment: Fine, I'll try to make a patch based on the procname project in Google Code. Here are some more links with more approaches to solve this issue (while I learn how to make a patch :-) )

[issue1079] decode_header does not follow RFC 2047

2009-04-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Tony, I don't think I agree with your reading of the RFC. IMO, your inversion of test_rfc2047_without_whitespace is not correct. '=' is not a 'special' in RFC[2]822 terms, so the atom does not end at the apparent end of the encoded word.

[issue2578] additional unittest type equality methods

2009-04-04 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: No, because the rich comparison docs explicitly state that the interpreter makes no assumptions about the relationship between != and == (or, more precisely, __eq__ and __ne__). There are no implied relationships among the comparison operators.

[issue5679] cleanUp stack for unittest

2009-04-04 Thread Robert Collins
Robert Collins robe...@robertcollins.net added the comment: On Sat, 2009-04-04 at 22:09 +, Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: teardown Why should they? It's only an implementation choice, and not a wise one I would say (precisely because people are

[issue5679] cleanUp stack for unittest

2009-04-04 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Antoine, Robert suggests calling it after tearDown so that tearDown can also perform actions that need clean up. Not a common use case but at least a use case. What do you mean by: so that test cases can also use it to initialize

[issue5679] cleanUp stack for unittest

2009-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: def setUp(self): dirname = mkdtemp() self.addCleanup(shutils.rmtree, dirname, ignore_errors=True) db = make_db(dirname) self.addCleanup(db.tearDown) Sure, but that's an example of doing something which is

[issue5679] cleanUp stack for unittest

2009-04-04 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: The main use case for addCleanup is resource allocation in tests. Why does this require clean ups to be executed before tearDown? -- ___ Python tracker rep...@bugs.python.org

[issue5679] cleanUp stack for unittest

2009-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The main use case for addCleanup is resource allocation in tests. Why does this require clean ups to be executed before tearDown? If your cleanup relies on something which has been set up during setUp and will be dropped during tearDown (a

[issue1079] decode_header does not follow RFC 2047

2009-04-04 Thread Tony Nelson
Tony Nelson tony_nel...@users.sourceforge.net added the comment: The email package does not follow the RFCs in anything to do with header parsing or decoding. This is a known deficiency. So no, I am not thinking of atoms at all -- and neither is email.header.decode_header()! :-( Until

[issue4136] merge json library with latest simplejson 2.0.x

2009-04-04 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- priority: deferred blocker - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4136 ___

[issue5410] msvcrt bytes cleanup

2009-04-04 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- priority: deferred blocker - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5410 ___

[issue5692] test_zipfile fails under Windows

2009-04-04 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- priority: deferred blocker - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5692 ___

[issue5695] test_logging fails when run twice in a row

2009-04-04 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This happens e.g. when searching for refleaks (the -R option to regrtest). ./python -m test.regrtest test_logging test_logging Could not find '/home/antoine/py3k/debug/Lib/test' in sys.path to remove it test_logging test_logging test

[issue3851] IDLE: Pressing Home on Windows places cursor before instead of after. Solution offered.

2009-04-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Bingo. I can also switch behaviors with Numlock (which I routinely have engaged). Neither of us was crazy ;-) Thank you 'weeble'. -- ___ Python tracker rep...@bugs.python.org

[issue5410] msvcrt bytes cleanup

2009-04-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: There seems to be a problem with ungetwch() I tested Visual C++ Express 2008 and it looks like _ungetwch() only keep 8 lower bits (like _ungetwch(x 255)). But it's a bug in Microsoft library, not in Python code (I added some

[issue5687] Docstring typo in _io

2009-04-04 Thread Benjamin Peterson
New submission from Benjamin Peterson benja...@python.org: Thanks! Fixed in r71205. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5687

[issue1600182] Tix ComboBox entry is blank when not editable

2009-04-04 Thread Tim Wegener
Tim Wegener twege...@fastmail.fm added the comment: I encountered this bug at my previous place of employment. I've since moved on, so I don't have access to the code/setup where this originally occurred. I tried to setup a test case to reproduce this, but was thwarted by another bug, probably

[issue5596] memory leaks in 3.1

2009-04-04 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: I have the following tests leaking on my Linux build of py3k: test_structmembers leaked [102, 102, 102] references, sum=306 test_structmembers leaked [102, 102, 102] references, sum=306 test_structmembers leaked [102, 102, 102, 102]

[issue5596] memory leaks in 3.1

2009-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Strange, I don't see any leaks in test_structmembers here. test_structmembers beginning 9 repetitions 123456789 . 1 test OK. [89785 refs] This is with r71202 on a 64-bit build. -- ___ Python

  1   2   >