[issue17247] Decimal doesn't support aligned fill

2013-02-19 Thread Stefan Krah
Stefan Krah added the comment: Christian Heimes wrote: > The output is from Python 3.3. Why has Python 3.3 a less informative error > message than 3.2? Because the error is discovered in libmpdec and it would require a significant amount of work to provide fine-grained error messages. > I als

[issue17247] int and float should detect inconsistent format strings

2013-02-19 Thread Stefan Krah
Stefan Krah added the comment: With int and float it's also possible to specify both conflicting alignments and fill characters: >>> "{:x<06}".format(1.2) '1.2xxx' So I really think that the builtins should be changed to detect the conflict. -- assignee: skrah -> components: +Inter

[issue6623] Lib/ftplib.py netrc class parsing problem

2013-02-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset acf247d25f17 by R David Murray in branch 'default': #6623: Add explicit deprecation warning for ftplib.Netrc. http://hg.python.org/cpython/rev/acf247d25f17 -- nosy: +python-dev ___ Python tracker

[issue6623] Lib/ftplib.py Netrc class should be removed.

2013-02-19 Thread R. David Murray
R. David Murray added the comment: Thanks for the report. ftplib.Netrc has been deprecated (via its doc string) since at least Python 2.4, and is no longer documented in the library reference. I've added an explicit DeprecationWarning in Python 3.4, and have altered this issue to call for it

[issue15767] add ImportNotFoundError

2013-02-19 Thread Eric Snow
Eric Snow added the comment: The common case for catching ImportError is exactly what ModuleNotFoundError represents. If people are already going to change their code to handle just this special case, I'd think having the subclass would be the better route. I find it simpler (both to update

[issue6541] SpooledTemporaryFile breakages

2013-02-19 Thread R. David Murray
R. David Murray added the comment: Thanks for the report, and sorry we didn't handle it when you reported it. This issue was re-reported and fixed in issue #10355. -- nosy: +r.david.murray resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> Sp

[issue17143] trace.py uses _warn without importing it

2013-02-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 662f97427acf by Ezio Melotti in branch '3.3': #17143: fix buildbot failures on Windows. http://hg.python.org/cpython/rev/662f97427acf New changeset 1bf0ff7db856 by Ezio Melotti in branch 'default': #17143: merge with 3.3. http://hg.python.org/cpytho

[issue7842] py_compile.compile SyntaxError output

2013-02-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset c7f04c09dc56 by R David Murray in branch '2.7': #7842: backport fix for py_compile.compile syntax error message handling. http://hg.python.org/cpython/rev/c7f04c09dc56 -- nosy: +python-dev ___ Python trac

[issue15767] add ImportNotFoundError

2013-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why not just try: from _thread import _local as local except ImportError: from _threading_local import local ? -- ___ Python tracker ___

[issue7842] py_compile.compile SyntaxError output

2013-02-19 Thread R. David Murray
R. David Murray added the comment: Better late than never. Be nice if someone would contribute a test, but I'm not going let that hold things up for such a simple patch that is already in default with no test. -- nosy: +r.david.murray resolution: -> fixed stage: patch review -> commi

[issue17248] test_posix chown -1, 0 tests fail if user has group root

2013-02-19 Thread R. David Murray
New submission from R. David Murray: I'm a member of group root, and the _test_all_chown_common tests that use -1, 0 fail for me, because I'm allowed to set group root on a file. -- components: Tests messages: 182461 nosy: r.david.murray, serhiy.storchaka priority: normal severity: norm

[issue17247] int and float should detect inconsistent format strings

2013-02-19 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue17143] trace.py uses _warn without importing it

2013-02-19 Thread Ezio Melotti
Ezio Melotti added the comment: This should be fixed now. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue7981] False failure with doctest NORMALIZE_WHITESPACE in 3.1.1

2013-02-19 Thread R. David Murray
R. David Murray added the comment: This doesn't have anything to do with NORMALIZE_WHITESPACE. In python3, .write returns the number of bytes written, instead of None. If you add the 38 to the end of your test line, the test will pass. This is not a bug in doctest, but a difference in 'write'

[issue17249] reap threads in test_capi

2013-02-19 Thread Ezio Melotti
New submission from Ezio Melotti: The attached patch fixes the following warning: $ ./python -m test test_capi [1/1] test_capi Warning -- threading._dangling was modified by test_capi 1 test altered the execution environment: test_capi This test was introduced in f7993dc6bf26, and it seems

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2013-02-19 Thread R. David Murray
R. David Murray added the comment: I'd forgotten about this issue. I wonder if the dictionary randomization makes the problem worse. -- components: +email nosy: +barry versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue15767] add ImportNotFoundError

2013-02-19 Thread Eric Snow
Eric Snow added the comment: Right. Sorry I wasn't more clear. Existing code will continue to work either way. The point is in exposing the distinct module/name-not-found case, which I consider to be the common case for catching ImportError. My examples cover the case where you want to han

[issue15004] add weakref support to types.SimpleNamespace

2013-02-19 Thread Eric Snow
Eric Snow added the comment: Good point. Thanks. I've updated the test. Does that cover it? -- Added file: http://bugs.python.org/file29127/simplenamespace-weakref.diff ___ Python tracker ___

[issue15004] add weakref support to types.SimpleNamespace

2013-02-19 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file29094/simplenamespace-weakref.diff ___ Python tracker ___ ___ Python-bugs-list

[issue15587] IDLE is pixelated on the Macbook Pro with Retina Display

2013-02-19 Thread Tyler Crompton
Tyler Crompton added the comment: I will gladly test the changes. Where would I find these to download? -- status: pending -> open ___ Python tracker ___

[issue17250] argparse: Issue 15906 patch; positional with nargs='*' and string default

2013-02-19 Thread paul j3
New submission from paul j3: The production argparse applies the type conversion to a string default whether it is needed or not. With the 12776 and 15906 patch, that conversion is postponed, so that it is applied only once. However, for a positional argument with nargs='*', that conversion

[issue17250] argparse: Issue 15906 patch; positional with nargs='*' and string default

2013-02-19 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +bethard, chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue17032] Misleading error message: global name 'X' is not defined

2013-02-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: +NAME_ERROR_MSGy, name); will give a NameError ;-). The patch undoes the change from 'name' to 'global name'. Skimming the PEP, I do not see this change mandated or justified by the PEP. So my current view: while it is true that it is the final, global nam

[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2013-02-19 Thread Ezio Melotti
Ezio Melotti added the comment: Vinay commit made the test pass, but the popup is still present. Removing the popup is discussed in #11732. -- nosy: +ezio.melotti versions: +Python 3.3, Python 3.4 ___ Python tracker

[issue17145] memoryview(array.array)

2013-02-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am looking at this as a naive user, and can only assume that the claims are correct. +The new C-level buffer API has been backported to Python 2.6 and the +Python-level :class:`memoryview` object has been backported to Python 2.7. +To be clear, in Python 2.6

[issue17145] memoryview(array.array)

2013-02-19 Thread Demian Brecht
Demian Brecht added the comment: Yes, I agree that passage is a little garbled. I've reworked that particular paragraph in the new patch. I had included a little information about 2.6 as it was in the revision prior to my patch (and there was also some historical context back to 1.6). I think

[issue11732] Skip decorator for tests requiring manual intervention on Windows

2013-02-19 Thread Ezio Melotti
Ezio Melotti added the comment: Here is a proof of concept patch that defines a context manager that disables the crash popups using SetErrorMode [0]. I tested it only on Windows 7 (and Linux, where it's a no-op). As an example, the patch fixes the crash popup caused by test_capi. [0]: htt

[issue11732] Skip decorator for tests requiring manual intervention on Windows

2013-02-19 Thread Ezio Melotti
Changes by Ezio Melotti : Added file: http://bugs.python.org/file29129/nopopup.diff ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue11732] Skip decorator for tests requiring manual intervention on Windows

2013-02-19 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file29129/nopopup.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11732] Skip decorator for tests requiring manual intervention on Windows

2013-02-19 Thread Ezio Melotti
Changes by Ezio Melotti : Added file: http://bugs.python.org/file29130/nopopup.diff ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue15587] IDLE is pixelated on the Macbook Pro with Retina Display

2013-02-19 Thread Ned Deily
Ned Deily added the comment: Thanks, Tyler. The 2.7.4 and 3.2.4 maintenance releases have been delayed due to some critical issues and so we don't have a new availability date for the first release candidates. I'll try to remember to ping here when that happens. -- status: open -> pe

[issue17251] LWPCookieJar load() set domain_specifed wrong

2013-02-19 Thread B. Kyven
New submission from B. Kyven: Hello, I am using LWPCookieJar to store cookies. But I am having trouble. Saving is fine, load is wrong. I use Cookie.domain_specified to judge if domain exist. save the following to test.lwp - #LWP-Cookies-2.0 Set-Cookie3: name=value; path="/ddd/"

[issue17227] devguide: buggy heading numbers

2013-02-19 Thread Chris Jerdonek
Chris Jerdonek added the comment: I noticed this before and wasn't able to fix it after trying a few things. I wonder if this is a limitation or bug in Sphinx. At the top, the FAQ page has-- :tocdepth: 2 Levels beyond 2 are getting numbered 25 (the number of the top level) instead of having

[issue17227] devguide: buggy heading numbers

2013-02-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Georg, do you know how to fix this? -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-li

[issue17241] Python-2.3.5.exe file possibly corrupt

2013-02-19 Thread Stefan Krah
Stefan Krah added the comment: I'm getting the complete file here, too. -- nosy: +skrah status: open -> pending ___ Python tracker ___ ___

[issue17227] devguide: buggy heading numbers

2013-02-19 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Levels beyond 2 are getting numbered 25 (the number of the top level) instead > of having their numbering suppressed (as I would expect it to). Actually, what I meant to say is that I would expect the "tocdepth" to affect only the level of the table of conte

<    1   2