[issue11617] Sporadic failure in test_httpservers

2011-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset fa20590d4694 by Antoine Pitrou in branch '3.2': Try to strengthen test_httpservers (issue #11617) http://hg.python.org/cpython/rev/fa20590d4694 New changeset 34db881edb4d by Antoine Pitrou in branch 'default': Try to strengthen test_httpservers (is

[issue9523] Improve dbm modules

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: I think the patch will not be suitable for 3.1 and 3.2, so there should be a doc patch to mention the limitations of the dbm API (keys() returning a list and all that). -- ___ Python tracker

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: The patches look good, thank you. Do you have a command, script or test that would print the values, to make sure they’re right? -- assignee: tarek -> eric.araujo keywords: +buildbot, needs review -easy, patch nosy: -alexis versions: +Python 3.3 __

[issue3080] Full unicode import system

2011-03-20 Thread STINNER Victor
STINNER Victor added the comment: Ok. Python 3.3 does now support non-ASCII characters in module paths and names on Windows, but only characters encodable to the ANSI code page. To support the full Unicode range, we should remove all calls to PyUnicode_EncodeFSDefault() on Windows: a) pars

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2011-03-20 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +easy, patch -buildbot, needs review nosy: +alexis stage: -> commit review ___ Python tracker ___ __

[issue3080] Full unicode import system

2011-03-20 Thread STINNER Victor
STINNER Victor added the comment: > c) _PyImport_LoadDynamicModule() encodes the filename for > _PyImport_GetDynLoadFunc(). The prototype should be changed, > but only on Windows, to accept a filename as a Unicode string. Hum, the difficult part is to use Unicode in _PyImport_GetDynLoadFunc() f

[issue11421] Subversion keywords missing on 2.5 checkout

2011-03-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: If someone can propose a patch that has zero effect on a subversion checkout or export but fixes the issue with a hg checkout, I'd be fine adding it. OTOH, I fail to see why this issue needs fixing. -- ___ Python

[issue11619] On Windows, don't encode filenames in the import machinery

2011-03-20 Thread STINNER Victor
New submission from STINNER Victor : With #3080, Python 3.3 does now manipulate module paths and names as Unicode in the import machinery. But in 3 remaining places, it does encode filenames (to the ANSI code page): a) _PyImport_LoadDynamicModule() It should pass directly the PyObject* (inst

[issue3080] Full unicode import system

2011-03-20 Thread STINNER Victor
STINNER Victor added the comment: Ok, I think that the most important part is now implemented in Python 3.3: use Unicode for module names and paths in the import machinery. Remaing parts are specific to Windows, and so I opened a new issue: #11619. Let's close this 3 years old issue. ---

[issue11287] Add context manager support to dbm modules

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: Reviewed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10828] Python 3 doesn't support non-ASCII module names with a locale encoding different than UTF-8

2011-03-20 Thread STINNER Victor
STINNER Victor added the comment: I closed #3080: Python 3.3 is now able to handle non-ASCII characters in module names and paths. But it is only able to handle non-ASCII characters encodable to the ANSI code page. To support all characters, I opened the issue #11619 (see also #10785). -

[issue5800] make wsgiref.headers.Headers accept empty constructor

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: I think the doc should say something like “default value is an empty list”, for maximum clarity. -- versions: +Python 3.3 -Python 3.2 ___ Python tracker _

[issue9100] test_sysconfig fails (test_user_similar)

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: Would you like to turn your diagnostic into a patch? -- versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ __

[issue11591] "python -S" should be robust against e.g. "from site import addsitedir"

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: I think this requires a note in NEWS but also in Doc/library/site.rst. Carl, would you like to make a new changeset with that edition in your repo? (It will also provide a test for the Create Patch button after.) -- ___

[issue11342] ResourceWarning: unclosed file <_io.TextIOWrapper

2011-03-20 Thread Nadeem Vawda
Nadeem Vawda added the comment: The first ResourceWarning looks like the test_cgi leak from issue10512, which was fixed in changeset ae186b3b2c55. -- nosy: +nvawda status: pending -> open ___ Python tracker _

[issue9750] sqlite3 iterdump fails on column with reserved name

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: > I have very limited time to use on this. This is a perfectly reasonable stance, and we’re grateful for the work you’re doing. When you say that you don’t have time, someone else will take up the patch and update it to address reviews, and you will get credited

[issue11620] winsound.PlaySound() with SND_MEMORY should accept bytes instead of strings

2011-03-20 Thread Tom Felker
New submission from Tom Felker : PlaySound supposedly lets you play a .WAV file whose contents are stored in a string, by passing the string and flags including winsound.SND_MEMORY. I'm trying to use BytesIO object and the wave module to make a file in-memory, and pass this to winsound. It's

[issue9309] Add environment variable complementing command line option -no-user-cfg

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: I’m not sure this is a distutils or virtualenv bug. I will defer to Tarek’s decision. -- ___ Python tracker ___ _

[issue9084] vimrc: use matchall() instead of ":match" to allow multiple matches

2011-03-20 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: brett.cannon -> benjamin.peterson dependencies: +Usefulness of the Misc/Vim/ files? keywords: +gsoc -patch nosy: +benjamin.peterson, eric.araujo ___ Python tracker _

[issue11342] ResourceWarning: unclosed file <_io.TextIOWrapper

2011-03-20 Thread Nadeem Vawda
Nadeem Vawda added the comment: Sorry about accidentally changing the issue status to "open". It seems that I don't have the requisite privileges to change it back to "pending"... -- ___ Python tracker __

[issue9084] vimrc: use matchall() instead of ":match" to allow multiple matches

2011-03-20 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: benjamin.peterson -> brett.cannon keywords: +patch -gsoc, needs review nosy: -benjamin.peterson ___ Python tracker ___ _

[issue11342] ResourceWarning: unclosed file <_io.TextIOWrapper

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: Any message will automatically change pending to open, don’t worry. -- resolution: -> works for me status: open -> pending ___ Python tracker ___

[issue5474] distutils produces invalid RPM packages of prerelease python packages

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: With the new Mercurial repositories and adapted workflow, patches should apply to a clone of the 3.1 branch. If you could also remove outdated or superseded patches from this issue (or give their names if you can’t remove them), it would help reviewing. Thanks

[issue7311] Bug on regexp of HTMLParser

2011-03-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 3.1, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker ___ ___ Pyt

[issue10828] Python 3 doesn't support non-ASCII module names with a locale encoding different than UTF-8

2011-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: As Victor noted, this issue is essentially a duplicate of #3080 (and others) and now #11619 and needs no independent action apart from the latter. Since the discussion with ingemar seems finished, I am now closing. -- resolution: -> duplicate status:

[issue11210] PyErr_SetFromWindowsErrWithFilenameObject() doesn't exist: remove it from pyerrors.h

2011-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset c0829c4e19cf by Victor Stinner in branch 'default': Closes #11210: Remove PyErr_SetFromWindowsErrWithFilenameObject() of pyerrors.h http://hg.python.org/cpython/rev/c0829c4e19cf -- nosy: +python-dev resolution: -> fixed stage: -> committe

[issue11619] On Windows, don't encode filenames in the import machinery

2011-03-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10864] time.strftime("%Y"): limitation of 4 digits on OpenIndiana (Solaris)

2011-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset d56eb817b181 by Victor Stinner in branch '3.2': Issue #10864 has been fixed: remove the workaround http://hg.python.org/cpython/rev/d56eb817b181 -- nosy: +python-dev ___ Python tracker

[issue9306] distutils: raise informative error message when cmd_class is None

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: I’m inclined to reject the bug: http://docs.python.org/distutils/apiref#distutils.core.setup clearly says that the argument should be a dictionary. The code in pyreadline should set it to an empty dict instead of None. While it can be argued that providing cle

[issue11188] test_time error on AIX

2011-03-20 Thread STINNER Victor
STINNER Victor added the comment: strftime_aix.patch is a little bit too strict: it looks like strftime() supports large year values (year > ). We may only raise an error if the year is smaller than 1. -- ___ Python tracker

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

2011-03-20 Thread Nadeem Vawda
Nadeem Vawda added the comment: Here is an updated patch, incorporating the feedback from your review. The new patch no longer checks for errors in bz2CompressEnd()/bz2DecompressEnd() in the dealloc functions for BZ2Compressor/BZ2Decompressor. I found that calling PyErr_WriteUnraisable() result

[issue11235] Source files with date modifed in 2106 cause OverflowError

2011-03-20 Thread STINNER Victor
STINNER Victor added the comment: By the way, a simpler fix would be just to not fail if the .pyc file cannot be created (but emit a warning / write an error to stderr). -- ___ Python tracker

[issue9302] distutils.core.Extension: list parameters documented as strings

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the catch. Are there no similar problems in the rest of the distutils doc, or did you search in one file only? -- assignee: docs@python -> eric.araujo components: +Distutils, Distutils2 nosy: +alexis, eric.araujo stage: -> patch review title:

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

2011-03-20 Thread Nadeem Vawda
Nadeem Vawda added the comment: Corresponding patch for the module docs. -- Added file: http://bugs.python.org/file21315/bz2-v4-doc.diff ___ Python tracker ___ __

[issue9181] Solaris extension building does not work with 64 bit python

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: Charles, can you still reproduce your bug now that #9437 has been fixed? -- ___ Python tracker ___ ___

[issue8730] Spurious test failure in distutils

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: Ronald, can you tell what would be the check to put in skipIf? -- versions: +Python 3.3 ___ Python tracker ___

[issue11230] "Full unicode import system" not in 3.2

2011-03-20 Thread STINNER Victor
STINNER Victor added the comment: >> Victor asked "Which web page should updated/fixed?" > Answer: The Python 3.2 download page. Sorry, but I don't see which page tells that Python 3.2 has a full Unicode support for import. In http://www.python.org/download/releases/3.2/, I can read "countles

[issue10883] urllib: socket is not closed explicitly

2011-03-20 Thread Nadeem Vawda
Nadeem Vawda added the comment: > I saw the partial fix suggested by the patch, but for some reason I > did not see ResourceWarning being shutup. Do you mean that you aren't getting ResourceWarnings in the first place? Or that you are getting warnings, and the partial fix isn't getting rid of a

[issue5977] distutils build_ext.get_outputs returns wrong result

2011-03-20 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Distutils2 nosy: +alexis, eric.araujo stage: -> patch review title: distutils build_ext.get_outputs returns wrong result (patch) -> distutils build_ext.get_outputs returns wrong result type: crash -> behavior versions: +3rd party, Python 3.2, Py

[issue11599] Useless error message when distutils fails compiling

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: It appears a choice has been made to print only the first argument in the error messages; attached patch changes that, please test. -- components: +Distutils2 keywords: +patch nosy: +alexis versions: +3rd party Added file: http://bugs.python.org/file21316

[issue11599] Useless error message when distutils fails compiling

2011-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It appears a choice has been made to print only the first argument in > the error messages; attached patch changes that, please test. Well, I don't have the failing setup at hand anymore, but the patch looks reasonable to me. Thank you! -- _

[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

2011-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset b15f60f9e256 by Victor Stinner in branch '3.1': Issue #5537: Fix time2isoz() and time2netscape() functions of httplib.cookiejar http://hg.python.org/cpython/rev/b15f60f9e256 -- nosy: +python-dev ___ Pyth

[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

2011-03-20 Thread STINNER Victor
STINNER Victor added the comment: > While it is unlikely that a purely numeric format such as "%Y-%m-%d > %H:%M:%S" will be locale dependent, it is possible that some pre-C99 > systems would format dates using exotic digits is some locales. Ok, I rewrote my patch to avoid strftime(). It should

[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

2011-03-20 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue6501] Fatal error on startup with invalid PYTHONIOENCODING

2011-03-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue11371] Localization of error messages in getopt

2011-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset d3e46930ffe9 by Éric Araujo in branch 'default': Mark getopt error messages as localizable (fixes #11371). http://hg.python.org/cpython/rev/d3e46930ffe9 -- nosy: +python-dev ___ Python tracker

[issue3080] Full unicode import system

2011-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset ee4e780a6b7a by Éric Araujo in branch 'default': Fix a typo (see #3080) http://hg.python.org/cpython/rev/ee4e780a6b7a -- ___ Python tracker ___

[issue8651] "s#" and friends can silently truncate buffer length

2011-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset d9633064458c by Victor Stinner in branch '3.1': Issue #8651: PyArg_Parse*() functions raise an OverflowError if the file http://hg.python.org/cpython/rev/d9633064458c -- nosy: +python-dev ___ Python trac

[issue11371] Localization of error messages in getopt

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: Done, thanks! -- resolution: accepted -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue8651] "s#" and friends can silently truncate buffer length

2011-03-20 Thread STINNER Victor
STINNER Victor added the comment: Ok, I backported the fix to 3.1. Reopen the issue if you would like a port to 2.7 (I am too lazy to do it). -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue8420] Objects/setobject.c contains unsafe code

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: I was able to reproduce the crash in 2.7 and fix it with the patch. I only had to remove a cast to long to make the patch apply. I also changed tabs to spaces in two lines. Please review and assign back to me for commit. :) -- assignee: eric.araujo ->

[issue8650] zlibmodule.c isn't 64-bit clean

2011-03-20 Thread STINNER Victor
STINNER Victor added the comment: > This only addresses the compress() and decompress() functions, > but e.g. crc32() and adler32() are also touched by this issue. crc32() and adler32() were fixed by #10276. PyZlib_objcompress() and PyZlib_objdecompress() should be fixed. -- ___

[issue3080] Full unicode import system

2011-03-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: As I see Victor has dropped OS/2 support from Python/import.c Perhaps file Python/dynload_os2.c should be removed also. Not sure about other dynload_* files. -- ___ Python tracker

[issue9584] Allow curly brace expansion

2011-03-20 Thread Mathieu Bridon
Mathieu Bridon added the comment: > "I removed the unused import (mostly as a simple test of mercurial, it's my > first commit there)." Does it mean that Python development is not being done in SVN, as the documentations state it? My patches have all been based on the SVN py3k branch, please

[issue10617] Collections ABCs can’t be linked to

2011-03-20 Thread Ezio Melotti
Ezio Melotti added the comment: Here's a patch that adds the list of classes with a minimal description before the table. I grouped a few classes to save some space. Container, Hashable, Sized, Callable could be grouped too. I also added links to the methods and to glossary terms (the `set` te

[issue11060] distutils2 sdist does not complain about version that is not PEP 386 compliant

2011-03-20 Thread yeswanth
Changes by yeswanth : Removed file: http://bugs.python.org/file21008/help.txt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue11060] distutils2 sdist does not complain about version that is not PEP 386 compliant

2011-03-20 Thread yeswanth
yeswanth added the comment: Added some test cases for it . -- keywords: +patch Added file: http://bugs.python.org/file21319/patch1.diff ___ Python tracker ___ __

[issue10617] Collections ABCs can’t be linked to

2011-03-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: This looks fine, but it may be better to put the tables first and details second. -- ___ Python tracker ___ ___

<    1   2