[issue16344] Traceback Internationalization Proposal

2012-10-31 Thread R. David Murray
R. David Murray added the comment: It seems to me that if as Terry suggests both the English and the translation are output then most of Ezio's concerns would be addressed. Maybe we could even start a new trend in error message internationalization :) An important question that needs to be ad

[issue16344] Traceback Internationalization Proposal

2012-10-31 Thread Georg Brandl
Georg Brandl added the comment: How do you propose to output both versions? It will make tracebacks twice as long. -- ___ Python tracker ___ ___

[issue16345] dict.fromkeys() assumes 'self' is empty

2012-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset a965eac352ec by Benjamin Peterson in branch '3.2': only fast-path fromkeys() when the constructor returns a empty dict (closes #16345) http://hg.python.org/cpython/rev/a965eac352ec New changeset b68da8f2ed95 by Benjamin Peterson in branch '3.3': me

[issue16344] Traceback Internationalization Proposal

2012-10-31 Thread Ezio Melotti
Ezio Melotti added the comment: If only the error gets translated it might look more or less like: Traceback (most recent call last): File "form.py", line 78, in f = Form("factura.csv") File "form.py", line 12, in __init__ for linea in open(infile).readlines(): IOError: [Errno 2] No

[issue16344] Traceback Internationalization Proposal

2012-10-31 Thread R. David Murray
R. David Murray added the comment: I didn't look at the patch...I assumed we were only talking about the message. There seems little point in translating any other part of the traceback, other than maybe the boilerplate between traceback sections. My thought was that the translation text for

[issue16344] Traceback Internationalization Proposal

2012-10-31 Thread R. David Murray
R. David Murray added the comment: Ezio: ah. I guess I don't read the Description column of attachments, only the filename :) -- ___ Python tracker ___

[issue15795] Zipfile.extractall does not preserve file permissions

2012-10-31 Thread Aaron Train
Aaron Train added the comment: Thanks for the patch. Is this going to be resolved soon? -- nosy: +Aaron.Train ___ Python tracker ___ _

[issue16348] Decimal.remainder_near documentation incorrect.

2012-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1122f5bfc957 by Mark Dickinson in branch '2.7': Issue #16348: Fix incorrect documentation for Decimal.remainder_near. http://hg.python.org/cpython/rev/1122f5bfc957 New changeset 8570943ad5a2 by Mark Dickinson in branch '3.2': Issue #16348: Fix incor

[issue16348] Decimal.remainder_near documentation incorrect.

2012-10-31 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for reviewing, Andrew. -- assignee: docs@python -> mark.dickinson resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue15795] Zipfile.extractall does not preserve file permissions

2012-10-31 Thread R. David Murray
R. David Murray added the comment: OK, so this is an enhancement to specifically allow preservation of "unsafe" permissions? Adding the nosy list from issue 3394. -- nosy: +cbrannon, pitrou, swarren type: behavior -> enhancement versions: -Python 2.7 _

[issue16367] io.FileIO.readall() is not 64-bit safe on Windows

2012-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks ok to me. Perhaps we could add a bigmem test for that (in test_fileio)? -- ___ Python tracker ___

[issue16344] Traceback Internationalization Proposal

2012-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: What Ezio suggested, plus maybe the error name -- but people must learn those to write exception statements, and a translation of the exceptions section of the lib manual is really needed to understand them. The boilerplate lines "Traceback (most recent call l

[issue14900] cProfile does not take its result headers as sort arguments

2012-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset f263a84871de by Andrew Svetlov in branch '2.7': Issue #14900: document added sort keys for profile stats. http://hg.python.org/cpython/rev/f263a84871de New changeset 52d6974fa05b by Andrew Svetlov in branch '3.2': Issue #14900: document added sort k

[issue14900] cProfile does not take its result headers as sort arguments

2012-10-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. For future improvements please open new issue. Thanks. -- components: +Documentation resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> enhancement versions: +Python 3.3, Python 3.4 __

[issue16344] Traceback Internationalization Proposal

2012-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: An additional reason to keep English error messages always is that they are not just printed. They are part of the args tuple attribute of exception objects. Code that processes exception messages could break if the English version is replaced. Doctests are on

[issue16377] Fix bisect unittest

2012-10-31 Thread Yury Selivanov
New submission from Yury Selivanov: TestInsort.test_vsBuiltinSort is a bit broken, as it doesn't test insorting `list` objects. Patch attached. -- files: test_bisect.patch keywords: patch messages: 174365 nosy: christian.heimes, georg.brandl, rhettinger, yselivanov priority: normal sev

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-31 Thread Mark Dickinson
Mark Dickinson added the comment: Is this also an issue for Python 3.x? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue16377] Fix bisect unittest

2012-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 838e2b19489e by Andrew Svetlov in branch '3.2': Issue #16377: Fix bisect unittest. http://hg.python.org/cpython/rev/838e2b19489e New changeset f3dd84feeb58 by Andrew Svetlov in branch '3.3': Merge issue #16377: Fix bisect unittest. http://hg.python.

[issue16377] Fix bisect unittest

2012-10-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks, Yury. -- components: +Library (Lib) nosy: +asvetlov resolution: -> fixed status: open -> closed type: -> enhancement versions: +Python 3.2, Python 3.4 ___ Python tracker

[issue16377] Fix bisect unittest

2012-10-31 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue16377] Fix bisect unittest

2012-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8296b686c6de by Mark Dickinson in branch '2.7': Issue #16377: fix missed test due to incorrect indentation in test_bisect. Thanks Yury Selivanov. http://hg.python.org/cpython/rev/8296b686c6de -- ___ Pyt

[issue16377] Fix bisect unittest

2012-10-31 Thread Mark Dickinson
Mark Dickinson added the comment: (also in 2.7 :-) -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue16377] Fix bisect unittest

2012-10-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks, Mark. I've missed it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue13659] Add a help() viewer for IDLE's Shell.

2012-10-31 Thread Roger Serwy
Roger Serwy added the comment: The attached patch ("issue13659.patch") adds a configuration option for selecting the output of help() as being in the shell or in the pager. It is an enhancement against 3.4. Another possibility involves adding a checkable menu item under "Options" or "Help" to

[issue15478] UnicodeDecodeError on OSError on Windows with undecodable (bytes) filename

2012-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 13ebaa36d87d by Victor Stinner in branch 'default': Issue #15478: Use path_error() in more posix functions, especially in Windows http://hg.python.org/cpython/rev/13ebaa36d87d New changeset 9f696742dbda by Victor Stinner in branch 'default': Issue #

[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-10-31 Thread Mark Dickinson
Mark Dickinson added the comment: Looking back at the discussion, I think I got this bit wrong: "the round function is needed, and used, in Objects/floatobject.c (that is, if PY_NO_SHORT_FLOAT_REPR is *not* defined;" In fact, the round function is used if PY_NO_SHORT_FLOAT_REPR *is* defined, a

[issue15478] UnicodeDecodeError on OSError on Windows with undecodable (bytes) filename

2012-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6903f5214e99 by Victor Stinner in branch 'default': Issue #15478: Use source filename in OSError, not destination filename http://hg.python.org/cpython/rev/6903f5214e99 -- ___ Python tracker

[issue8743] set() operators don't work with collections.Set instances

2012-10-31 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue14894] distutils.LooseVersion fails to compare number and a word

2012-10-31 Thread Dwayne Litzenberger
Dwayne Litzenberger added the comment: As far as a real-world example is concerned, if you're using git-describe to generate your version numbers, you can pretty easily end up with something like "ab25c6fe95ee92fac3187dcd90e0560ccacb084a". -- nosy: +DLitz _

[issue15478] UnicodeDecodeError on OSError on Windows with undecodable (bytes) filename

2012-10-31 Thread STINNER Victor
STINNER Victor added the comment: All issues should now be fixed. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue15478] UnicodeDecodeError on OSError on Windows with undecodable (bytes) filename

2012-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset b3434c1ae503 by Victor Stinner in branch 'default': Issue #15441, #15478: Reenable test_nonascii_abspath() on Windows http://hg.python.org/cpython/rev/b3434c1ae503 -- ___ Python tracker

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset b3434c1ae503 by Victor Stinner in branch 'default': Issue #15441, #15478: Reenable test_nonascii_abspath() on Windows http://hg.python.org/cpython/rev/b3434c1ae503 -- ___ Python tracker

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-10-31 Thread STINNER Victor
STINNER Victor added the comment: > If a file name was invalid byte character, > os.chdir() raises UnicodeDecodeError() instead of WindowsError. I believe this case is not handled correctly in Python 3.4 (version under development) thanks to my work on issue #15478. Thanks for the report Atsuo

[issue16335] Integer overflow in unicode-escape decoder

2012-10-31 Thread STINNER Victor
STINNER Victor added the comment: I have 12 GB of RAM. Let's test. $ ./python Python 3.4.0a0 (default:8573a86c11b5+, Oct 31 2012, 22:17:00) [GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux >>> x=(b'\\N{WHITE SMILING FACE' + b'x' * 2**32 + b'}') >>> len(x) 4294967318 >>> y=x.decode('unicode-esca

[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-10-31 Thread Mark Dickinson
Mark Dickinson added the comment: Reopening because I think I may have an easy solution. Is there anyone who can reproduce the problem who could test the attached patch (against 2.7) to see if it solves the issue? -- assignee: -> mark.dickinson resolution: out of date -> status: clo

[issue16335] Integer overflow in unicode-escape decoder

2012-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > MemoryError It's because you need >4GB for source bytes + at least >8GB (>12GB on Windows) for temporary UCS2 string. -- ___ Python tracker __

[issue16374] ConfigParser: Passing a semicolon as a value

2012-10-31 Thread Michael Grünewald
Michael Grünewald added the comment: Cannot reproduce that with Ubuntu 12.04. Python 2.7 returned ";" under both Windows 7 and Ubuntu 12.04. Can you verify that there was no space before the semicolon? Otherwise the semicolon gets treated as the beginning of an inline comment. -- nosy

[issue16374] ConfigParser: Passing a semicolon as a value

2012-10-31 Thread Berker Peksag
Berker Peksag added the comment: > Cannot reproduce that with Ubuntu 12.04. +1. Attached a reproducer. -- nosy: +berker.peksag Added file: http://bugs.python.org/file27819/reproducer.py ___ Python tracker ___

[issue16366] _handleError not very informative

2012-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset d7b868cdd9bb by Vinay Sajip in branch 'default': Closes #16366: Improve diagnostics from handleError(). Thanks to Antoine Pitrou for the suggestion. http://hg.python.org/cpython/rev/d7b868cdd9bb -- nosy: +python-dev resolution: -> fixed st

[issue10189] SyntaxError: no binding for nonlocal doesn't contain a useful traceback

2012-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset fbfaef0a9c00 by Benjamin Peterson in branch 'default': point errors related to nonlocals and globals to the statement declaring them (closes #10189) http://hg.python.org/cpython/rev/fbfaef0a9c00 -- nosy: +python-dev resolution: -> fixed st

[issue16378] venv.EnvBuilder docstring inconsistencies

2012-10-31 Thread Bradley Froehle
New submission from Bradley Froehle: Consider the docstring for venv.EnvBuilder:: By default, the builder makes the system (global) site-packages dir available to the created environment. By default, the creation process uses symlinks wherever possible. It seems to suggest that the

[issue14803] Add feature to allow code execution prior to __main__ invocation

2012-10-31 Thread Bradley Froehle
Changes by Bradley Froehle : -- nosy: +bfroehle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue16373] Recursion error comparing set() and collections.Set instances

2012-10-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8743] set() operators don't work with collections.Set instances

2012-10-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: stutzbach -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue16344] Traceback Internationalization Proposal

2012-10-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm going to close this one. It *really* would need a PEP before going forward. There are many issues to consider: being able to google for an exception message, doctest issues, maintainability issues, etc. -- nosy: +rhettinger resolution: -> re

[issue16344] Traceback Internationalization Proposal

2012-10-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: The text is now correct and matches the spec: http://speleotrove.com/decimal/daops.html#refremnear The doctests should be expanded to show all of the examples listed in that document: remainder-near(’2.1’, ’3’)==> ’-0.9’ remainder-near(’10’, ’6’)

[issue16344] Traceback Internationalization Proposal

2012-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Raymond, did you mean to send that to another issue? -- ___ Python tracker ___ ___ Python-bugs-list

[issue16378] venv.EnvBuilder docstring inconsistencies

2012-10-31 Thread Éric Araujo
Éric Araujo added the comment: Tagging for the bug day. -- keywords: +easy nosy: +eric.araujo, vinay.sajip ___ Python tracker ___ ___

[issue15873] "datetime" cannot parse ISO 8601 dates and times

2012-10-31 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

<    1   2