[issue7361] importlib not checking bytecode length

2010-02-03 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I can't reproduce the failure as running test_multiprocessing and then test_importlib does not show any left over stuff in the interpreter what would lead to importlib being used for __import__. But as the IndexError part is a valid issue I am

[issue7829] dis module documentation gives no indication of the dangers of bytecode inspection

2010-02-03 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- priority: - low stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7829 ___ ___

[issue2874] Remove use of the stat module in the stdlib

2010-02-03 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: OK, this ain't ever going to happen, so I am just going to close this issue. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2874

[issue7838] Undocumented subprocess functions on Windows

2010-02-03 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I agree. Docstrings never hurt. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7838 ___ ___

[issue7844] Add -3 warning for absolute imports.

2010-02-03 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: It would be good to have a -3 warning for any use of import in 2.7 whose semantics change in 3.x, as a result of the absolute imports PEP (PEP 328). -- components: Interpreter Core messages: 98781 nosy: mark.dickinson severity:

[issue5677] Serious interpreter crash and/or arbitrary memory leak using .read() on writable file

2010-02-03 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The new patch takes over the logic from fileio.c. Tested on Linux, Windows x86/x64 and OpenSolaris. -- Added file: http://bugs.python.org/file16115/add-readable-writable.patch ___ Python

[issue7845] complex.__lt__ should return NotImplemented instead of raising TypeError

2010-02-03 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: Currently in py3k, order comparisons for complex numbers raise a TypeError. This was necessary in Python 2.x in order to make a complex - complex comparison raise an exception. In 3.x, it's no longer necessary, since if both sides of a

[issue7845] complex.__lt__ should return NotImplemented instead of raising TypeError

2010-02-03 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7845 ___ ___ Python-bugs-list

[issue7844] Add -3 warning for absolute imports.

2010-02-03 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7844 ___ ___ Python-bugs-list mailing

[issue5211] Fix complex type to avoid coercion in 2.7.

2010-02-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Yes, I'd certainly be interested in reviewing a patch. Though the current behaviour is at most a minor wart, and since it's gone in Python 3.x the motivation to fix it isn't huge. :) Where as I think gumtree wants the xcomplex case to

[issue7788] segfault when deleting from a list using slice with very big `step' value

2010-02-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This patch is producing warnings about signed - unsigned comparisons on the Windows buildbots; these should be fixed. See: http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%202.6/builds/781/steps/compile/logs/warnings --

[issue7846] Fnmatch cache is never cleared during usage

2010-02-03 Thread Andrew Clegg
New submission from Andrew Clegg a...@pml.ac.uk: The fnmatch module has a cache of translation between glob patterns and compiled regular expressions. However this cache is never emptied; only added to. I am writing a python program which as part of its execution checks millions of unique

[issue7846] Fnmatch cache is never cleared during usage

2010-02-03 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- keywords: +needs review priority: - normal stage: - test needed type: - behavior versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker rep...@bugs.python.org

[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2010-02-03 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6877 ___ ___ Python-bugs-list mailing

[issue7838] Undocumented subprocess functions on Windows

2010-02-03 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Here's a patch which keeps docstrings, and explicitly qualifies the Windows specific functions from _subprocess rather than using import * (which causes a couple of lines just over 79 chars). Now the functions are more hidden than before. Ran

[issue6716] Windows install error when choosing to compile .py files

2010-02-03 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I just saw this today while installing the 3.1.1 final MSI on a Server 2003 box. -- components: +Windows nosy: +brian.curtin priority: - high stage: - needs patch type: compile error - behavior ___

[issue3920] OpenBSD 4.4 still doesn't support _XOPEN_SOURCE

2010-02-03 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I tested bsd3.diff on OpenBSD-4.4/py3k and it works fine. ncurses doesn't build and I get a libssl assertion failure in test_ftplib, but without the patch I can't build py3k at all. This is a significant improvement, so +1 for applying

[issue7845] complex.__lt__ should return NotImplemented instead of raising TypeError

2010-02-03 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: +1 -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7845 ___

[issue7847] Remove 'python -U' or document it

2010-02-03 Thread Barry A. Warsaw
New submission from Barry A. Warsaw ba...@python.org: Python 2.x supports a -U flag which has the effect largely the same as 'from __future__ import unicode_literals'. However -U is undocumented anywhere except import.c. We should either remove -U support from Python 2.7 or document it (and

[issue7847] Remove 'python -U' or document it

2010-02-03 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - loewis nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7847 ___ ___

[issue7847] Remove 'python -U' or document it

2010-02-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Barry A. Warsaw wrote: New submission from Barry A. Warsaw ba...@python.org: Python 2.x supports a -U flag which has the effect largely the same as 'from __future__ import unicode_literals'. However -U is undocumented anywhere

[issue7848] copy.copy corrupts objects that return false value from __getstate__

2010-02-03 Thread Albertas Agejevas
New submission from Albertas Agejevas a...@pov.lt: When copy.copy is used on an object whose __getstate__ returns 0, it can produce a corrupt copy of an object: import copy class Foo(object): ... def __init__(self): ...self.value = 0 ... def __getstate__(self): ...

[issue6715] xz compressor support

2010-02-03 Thread Arkadiusz Miskiewicz Arkadiusz Miskiewicz
Arkadiusz MiskiewiczArkadiusz Miskiewicz ar...@maven.pl added the comment: About why xz is important. gnu.org, tug.org started publishing sources in xz format, quick grep: autoconf/autoconf.spec:Source0: http://ftp.gnu.org/gnu/autoconf/%{name}-%{version}.tar.xz

[issue7847] Remove 'python -U' or document it

2010-02-03 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I fail to see the point. This bug was fixed in Python 3. Why risk breaking something in the last 2.x release? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7847

[issue7849] Improve test_support.check_warnings()

2010-02-03 Thread Florent Xicluna
New submission from Florent Xicluna la...@yahoo.fr: Currently this context manager is used in 3 different situations: - to silence standard warnings - to record warnings in a list, in order to verify them - to silence py3k warnings But it does not accept any parameter, and it does not

[issue7849] Improve test_support.check_warnings()

2010-02-03 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: -- keywords: +patch Added file: http://bugs.python.org/file16118/issue7849_check_warnings.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7849

[issue7849] Improve test_support.check_warnings()

2010-02-03 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: Patch for the context managers. Patch to fix the stdlib. -- Added file: http://bugs.python.org/file16119/issue7849_lib_fixes.diff ___ Python tracker rep...@bugs.python.org

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-03 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: -- dependencies: +Improve test_support.check_warnings() ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7092 ___

[issue5211] Fix complex type to avoid coercion in 2.7.

2010-02-03 Thread Blair
Blair bidih...@gmail.com added the comment: I also agree that this bug was never more than a small wart. However, I'm now curious. If Python 3 does not support coercion, I think that it will not be possible to write something like my xfloat class, derived from float (i.e., some binary

[issue7845] complex.__lt__ should return NotImplemented instead of raising TypeError

2010-02-03 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7845 ___ ___ Python-bugs-list

[issue7849] Improve test_support.check_warnings()

2010-02-03 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: In other words you want a way to limit what the context manager catches and records while allowing all other warnings to propagate. That seems fine. I didn't do much of a code review, but there is a grammatical error in the docstring: change a

[issue7849] Improve test_support.check_warnings()

2010-02-03 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: Actually this patch enhances check_warnings() in other ways too: - it verifies if the warning is effectively raised - it deals with py3k warnings separately It could be used instead of warnings.filterwarnings() with some benefits. --

[issue7850] platform.system() should be macosx instead of Darwin on OSX

2010-02-03 Thread Ronald Oussoren
New submission from Ronald Oussoren ronaldousso...@mac.com: The output of platform.system() should IMO be macosx on OSX to ensure that platform.platform() is consistent with distutils.util.get_platform(). The same is true for sys.platform, although it is unclear how much code that would

[issue7849] Improve test_support.check_warnings()

2010-02-03 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: Removed file: http://bugs.python.org/file16118/issue7849_check_warnings.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7849 ___

[issue7849] Improve test_support.check_warnings()

2010-02-03 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: Fixed. Tested with different options: -Wd, -3 -- Added file: http://bugs.python.org/file16120/issue7849_check_warnings_v2.diff ___ Python tracker rep...@bugs.python.org

[issue7851] WatchedFileHandler needs to be references as handlers.WatchedFileHandler in conf files

2010-02-03 Thread Tom Aratyn
New submission from Tom Aratyn themystic...@gmail.com: The documentation on using logging configuration files (http://docs.python.org/library/logging.html#configuring-logging) doesn't mention that the WatchedFileHandler needs to be referenced as handlers.WatchedFileHandler. This behavior is

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-03 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: The enhancement proposed on #7849 should be considered before reviewing the last 2 patches. If #7849 is accepted, these patches will need update. -- ___ Python tracker rep...@bugs.python.org

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2010-02-03 Thread Christoph Gohlke
Christoph Gohlke cgoh...@uci.edu added the comment: I thought one conclusion of the discussion on issue4120 was that any executable, which embeds Python and imports MSVCR9 dependent extensions, must now provide the manifest for the MSVCR9 runtimes, either embedded or as a separate file. See

[issue6715] xz compressor support

2010-02-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: We all agree that lzma/xz is important, what is needed is a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___

[issue1225769] Proposal to implement comment rows in csv module

2010-02-03 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Here is another -1 for this proposed feature. Having a comments in the csv fields and providing a way to deal will complicate matters more than required. Different suggestions of how to accomplish it has been suggested here. As others, I

[issue1225769] Proposal to implement comment rows in csv module

2010-02-03 Thread Andrew McNamara
Andrew McNamara andr...@object-craft.com.au added the comment: Okay, while I am sympathetic to the points raised by the people asking for this enhancement, I'm persuaded to reject it by the arguments that the potential benefit is outweighed by the increase in complexity (code and

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-02-03 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: issue2636-20100204.zip is a new version of the regex module. I've added splititer and added a build for Python 3.1. -- versions: +Python 3.1 Added file: http://bugs.python.org/file16122/issue2636-20100204.zip

[issue5211] Fix complex type to avoid coercion in 2.7.

2010-02-03 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Mark Yes, that was what I was proposing. As you pointed out in issue 3734, the patch is basically: === --- Objects/complexobject.c (revision 77909) +++

[issue5211] Fix complex type to avoid coercion in 2.7.

2010-02-03 Thread Blair
Blair bidih...@gmail.com added the comment: OK. I have gone back to the beginning to refresh my memory and I see a possible point of misunderstanding. I am not sure that we are really talking about the problem that prompted my initial report (msg72169, issue 3734). Immediately following my

[issue1225769] Proposal to implement comment rows in csv module

2010-02-03 Thread Andrew McNamara
Andrew McNamara andr...@object-craft.com.au added the comment: Note that there is one case that cannot easily be addressed via pre-processing: where the comment character coincidently appears at the start of a line within a multi-line quoted field. For example: # This is a comment 1, 2, This

[issue1005895] curses for win32

2010-02-03 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Can this be considered a duplicate of issue 2889? -- versions: +Python 2.7 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1005895

[issue7728] test_timeout should use find_unused_port helper

2010-02-03 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: http://www.python.org/dev/buildbot/all/builders/AMD64%20Ubuntu%20trunk/builds/387 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7728 ___