[issue7728] test_timeout should use "find_unused_port" helper

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

[issue1005895] curses for win32

2010-02-03 Thread anatoly techtonik
anatoly techtonik added the comment: Can this be considered a duplicate of issue 2889? -- versions: +Python 2.7 -Python 2.6 ___ Python tracker ___

[issue1225769] Proposal to implement comment rows in csv module

2010-02-03 Thread Andrew McNamara
Andrew McNamara 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 is field^M #3" What this s

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

2010-02-03 Thread Blair
Blair 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 message, Daniel Dini

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

2010-02-03 Thread Meador Inge
Meador Inge 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) +++ Objects/complexobject.c (working

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

2010-02-03 Thread Matthew Barnett
Matthew Barnett 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 ___ P

[issue1225769] Proposal to implement comment rows in csv module

2010-02-03 Thread Andrew McNamara
Andrew McNamara 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 documentation). While the attached patch

[issue1225769] Proposal to implement comment rows in csv module

2010-02-03 Thread Senthil Kumaran
Senthil Kumaran 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 too recommend closin

[issue6715] xz compressor support

2010-02-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: We all agree that lzma/xz is important, what is needed is a patch. -- ___ Python tracker ___ ___ Pyt

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

2010-02-03 Thread Christoph Gohlke
Christoph Gohlke 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

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

2010-02-03 Thread Florent Xicluna
Florent Xicluna 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 _

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

2010-02-03 Thread Tom Aratyn
New submission from Tom Aratyn : 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 different from most ha

[issue7849] Improve "test_support.check_warnings()"

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

[issue7849] Improve "test_support.check_warnings()"

2010-02-03 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file16118/issue7849_check_warnings.diff ___ Python tracker ___ ___ Python-bug

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

2010-02-03 Thread Ronald Oussoren
New submission from Ronald Oussoren : 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 break. There are two reas

[issue7849] Improve "test_support.check_warnings()"

2010-02-03 Thread Florent Xicluna
Florent Xicluna 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. --

[issue7849] Improve "test_support.check_warnings()"

2010-02-03 Thread Brett Cannon
Brett Cannon 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 filter catch not

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

2010-02-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2010-02-03 Thread Blair
Blair 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 operations between an xf

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

2010-02-03 Thread Florent Xicluna
Changes by Florent Xicluna : -- dependencies: +Improve "test_support.check_warnings()" ___ Python tracker ___ ___ Python-bugs-list mail

[issue7849] Improve "test_support.check_warnings()"

2010-02-03 Thread Florent Xicluna
Florent Xicluna 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 __

[issue7849] Improve "test_support.check_warnings()"

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

[issue7849] Improve "test_support.check_warnings()"

2010-02-03 Thread Florent Xicluna
New submission from Florent Xicluna : 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 *check* if the filter

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

2010-02-03 Thread Martin v . Löwis
Martin v. Löwis 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 ___ __

[issue6715] xz compressor support

2010-02-03 Thread Arkadiusz Miskiewicz Arkadiusz Miskiewicz
Arkadiusz MiskiewiczArkadiusz Miskiewicz 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 coreutils/coreut

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

2010-02-03 Thread Albertas Agejevas
New submission from Albertas Agejevas : 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): ...return se

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

2010-02-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Barry A. Warsaw wrote: > > New submission from Barry A. Warsaw : > > 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 ei

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

2010-02-03 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> loewis nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2010-02-03 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : 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 indicate in that

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

2010-02-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue3920] OpenBSD 4.4 still doesn't support _XOPEN_SOURCE

2010-02-03 Thread Stefan Krah
Stefan Krah 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 the patch. -- nosy

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

2010-02-03 Thread Brian Curtin
Brian Curtin 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 ___ Python tracker

[issue7838] Undocumented subprocess functions on Windows

2010-02-03 Thread Brian Curtin
Brian Curtin 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 the tests to be s

[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. : -- nosy: +fdrake ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue7846] Fnmatch cache is never cleared during usage

2010-02-03 Thread Brian Curtin
Changes by Brian Curtin : -- 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 __

[issue7846] Fnmatch cache is never cleared during usage

2010-02-03 Thread Andrew Clegg
New submission from Andrew Clegg : 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 globs - this cause

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

2010-02-03 Thread Mark Dickinson
Mark Dickinson 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 -- priority: release

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

2010-02-03 Thread Mark Dickinson
Mark Dickinson 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 behave as > the xfloa

[issue7844] Add -3 warning for absolute imports.

2010-02-03 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2010-02-03 Thread Mark Dickinson
Changes by Mark Dickinson : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2010-02-03 Thread Mark Dickinson
New submission from Mark Dickinson : 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 comparison return

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

2010-02-03 Thread Stefan Krah
Stefan Krah 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 tracker

[issue7844] Add -3 warning for absolute imports.

2010-02-03 Thread Mark Dickinson
New submission from Mark Dickinson : 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: normal status: open ti

[issue7838] Undocumented subprocess functions on Windows

2010-02-03 Thread Georg Brandl
Georg Brandl added the comment: I agree. Docstrings never hurt. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2010-02-03 Thread Brett Cannon
Brett Cannon 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 ___

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

2010-02-03 Thread Brett Cannon
Changes by Brett Cannon : -- priority: -> low stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue7361] importlib not checking bytecode length

2010-02-03 Thread Brett Cannon
Brett Cannon 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 renaming the issu