[issue1730136] tkFont.__eq__ gives type error

2014-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b379c092253 by Ned Deily in branch '2.7': Issue #1730136: Fix backported exception name. http://hg.python.org/cpython/rev/2b379c092253 -- ___ Python tracker rep...@bugs.python.org

[issue22194] access to cdecimal / libmpdec API

2014-08-21 Thread Stefan Behnel
Stefan Behnel added the comment: (for the record, the context is that we would like to support decimal objects efficiently in Numba) Same for Cython, although I guess we wouldn't do more than shipping the necessary declarations and (likely) also enable auto-coercion between the libmpdec

[issue22238] fractions.gcd results in infinite loop when nan or inf given as parameter.

2014-08-21 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22238 ___

[issue22238] fractions.gcd results in infinite loop when nan or inf given as parameter.

2014-08-21 Thread Mark Dickinson
Mark Dickinson added the comment: I agreed with Raymond. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22238 ___ ___ Python-bugs-list mailing

[issue22217] Reprs for zipfile classes

2014-08-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch addresses Berker's comments. -- Added file: http://bugs.python.org/file36426/zipfile_reprs_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22217

[issue21549] Add the members parameter for TarFile.list()

2014-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5875c50e93fe by Serhiy Storchaka in branch 'default': Issue #21549: Added the members parameter to TarFile.list(). http://hg.python.org/cpython/rev/5875c50e93fe -- nosy: +python-dev ___ Python tracker

[issue21549] Add the members parameter for TarFile.list()

2014-08-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Berker for the review. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21549

[issue20797] zipfile.extractall should accept bytes path as parameter

2014-08-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also a discussion at Python-Dev: http://comments.gmane.org/gmane.comp.python.devel/149048 Looks as there are no need to add bytes path in such high-level API. In any case you can call os.fsdecode() on path argument. -- resolution: - rejected

[issue19997] imghdr.what doesn't accept bytes paths

2014-08-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also a discussion at Python-Dev: http://comments.gmane.org/gmane.comp.python.devel/149048 Looks as there are no need to add bytes path support in such high-level API. In any case you can call os.fsdecode() on path argument. -- status: open -

[issue22241] strftime/strptime round trip fails even for UTC datetime object

2014-08-21 Thread Akira Li
New submission from Akira Li: from datetime import datetime, timezone dt = datetime.now(timezone.utc) fmt = '%Y-%m-%d %H:%M:%S.%f %Z%z' datetime.strptime(dt.strftime(fmt), fmt) Traceback (most recent call last): File stdin, line 1, in module File /cpython/Lib/_strptime.py,

[issue22016] Add a new 'surrogatereplace' output only error handler

2014-08-21 Thread Nick Coghlan
Nick Coghlan added the comment: Stephen Turnbull suggested on python-dev that this was a bad idea, and after reconsidering the current behaviour in Python 2, I realised that setting surrogateescape and letting the terminal deal with the consequences is exactly what we want. What confused me

[issue22194] access to cdecimal / libmpdec API

2014-08-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22194 ___ ___ Python-bugs-list mailing

[issue22241] strftime/strptime round trip fails even for UTC datetime object

2014-08-21 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22241 ___ ___ Python-bugs-list

[issue22240] argparse support for python -m module in help

2014-08-21 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22240 ___ ___ Python-bugs-list mailing

[issue22240] argparse support for python -m module in help

2014-08-21 Thread Nick Coghlan
Nick Coghlan added the comment: I suspect resolving this will actually need special casing on the argparse side - __main__.__spec__ will have the original details for __main__ when executed via -m of zipfile/directory execution. Things to check for: * __main__.__spec__ is not None indicates

[issue22241] strftime/strptime round trip fails even for UTC datetime object

2014-08-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This is a duplicate of #15873. -- components: +Extension Modules resolution: - duplicate status: open - closed superseder: - datetime: add ability to parse RFC 3339 dates and times type: behavior - enhancement versions: -Python 3.4

[issue22242] Doc fix in the Import section in language reference.

2014-08-21 Thread Jon Poler
New submission from Jon Poler: It looks like there might be a contradiction in the documentation of import in the language reference. In the loading subsection https://docs.python.org/dev/reference/import.html#loading, first bulleted list of the section, it specifies that if a loader fails,

[issue22243] Documentation on try statement incorrectly implies target of except clause can be any assignable expression

2014-08-21 Thread Michael Williamson
New submission from Michael Williamson: In the docs for the try statement [1], part of the grammar is: try1_stmt ::= try : suite (except [expression [as target]] : suite)+ [else : suite] [finally : suite] The `target` rule allows any assignable

[issue4180] warnings.simplefilter(always) does not make warnings always show up

2014-08-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: exarkun - stage: patch review - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4180 ___

[issue22240] argparse support for python -m module in help

2014-08-21 Thread Peter Otten
Changes by Peter Otten __pete...@web.de: -- nosy: +peter.otten ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22240 ___ ___ Python-bugs-list

[issue22240] argparse support for python -m module in help

2014-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +BreamoreBoy, paul.j3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22240 ___ ___

[issue22236] Do not use _default_root in Tkinter tests

2014-08-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In updated patch the root windows is created only once per test class. -- Added file: http://bugs.python.org/file36428/tkinter_no_default_root_2.patch ___ Python tracker rep...@bugs.python.org

[issue21585] Run Tkinter tests with wantobjects=False

2014-08-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Do not use _default_root in Tkinter tests ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21585 ___

[issue21308] PEP 466: backport ssl changes

2014-08-21 Thread Stefan Behnel
Stefan Behnel added the comment: The current implementation doesn't work with Unicode file paths. Try passing a Unicode string e.g. as cafile into context.load_verify_locations(). It calls PyString_AsEncodedObject() on it, which then fails with a PyErr_BadArgument() on the entry type check.

[issue21308] PEP 466: backport ssl changes

2014-08-21 Thread Alex Gaynor
Alex Gaynor added the comment: Thanks for the report, I've filed: http://bugs.python.org/issue22244 to track that issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21308 ___

[issue22244] load_verify_locations fails to handle unicode paths on Python 2

2014-08-21 Thread Alex Gaynor
New submission from Alex Gaynor: Details of the issue are here: http://bugs.python.org/msg225613 I'm not sure what the correct API to use is there, perhaps the encoding can be folded into the PyArg_ParseTupleAndKeywords() call. -- components: Extension Modules messages: 225614 nosy:

[issue22243] Documentation on try statement incorrectly implies target of except clause can be any assignable expression

2014-08-21 Thread Jayanth Koushik
Jayanth Koushik added the comment: Yes. Seems to be a documentation error. The full grammar specification [1] uses 'NAME' instead of 'target'. [1]: https://docs.python.org/3/reference/grammar.html -- nosy: +jayanthkoushik type: - enhancement ___

[issue21585] Run Tkinter tests with wantobjects=False

2014-08-21 Thread Lita Cho
Lita Cho added the comment: Hi Terry, I had no idea we were moving away from using test_main. So instead, of using support.run_unittest, we should import all the unittest from tkinter/test/ and wrap everything with that exec method, setting wantobjects=1 and again with wantobjects=0? Also,

[issue22242] Doc fix in the Import section in language reference.

2014-08-21 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22242 ___ ___ Python-bugs-list mailing list

[issue22234] urllib.parse.urlparse accepts any falsy value as an url

2014-08-21 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22234 ___ ___ Python-bugs-list

[issue22239] asyncio: nested event loop

2014-08-21 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22239 ___ ___ Python-bugs-list

[issue4180] warnings.simplefilter(always) does not make warnings always show up

2014-08-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch implementing an alternate approach, with a version number added in the registry dicts. It also reuses Tres' test cases. Removing 2.7 because at this point we probably don't want to add non-minimal changes there (outside of the ssl module, that

[issue4180] warnings.simplefilter(always) does not make warnings always show up

2014-08-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4180 ___ ___

[issue22118] urljoin fails with messy relative URLs

2014-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset b116489d31ff by Antoine Pitrou in branch 'default': Issue #22118: Switch urllib.parse to use RFC 3986 semantics for the resolution of relative URLs, rather than RFCs 1808 and 2396. http://hg.python.org/cpython/rev/b116489d31ff -- nosy:

[issue22118] urljoin fails with messy relative URLs

2014-08-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch is now committed to the future Python 3.5. Thank you very much for this contribution! -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue2527] Pass a namespace to timeit

2014-08-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ben, thanks for the patch. Have you signed a contributor's agreement? You can find it at https://www.python.org/psf/contrib/contrib-form/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2527

[issue22245] test_urllib2_localnet prints out error messages

2014-08-21 Thread Antoine Pitrou
New submission from Antoine Pitrou: I get the following error messages in the test suite: [1/1] test_urllib2_localnet test_basic_auth_httperror (test.test_urllib2_localnet.BasicAuthTests) ... Exception happened during processing of request from

[issue22241] strftime/strptime round trip fails even for UTC datetime object

2014-08-21 Thread Akira Li
Akira Li added the comment: I don't see, how it is a duplicate. Everything works if pytz.utc (.tzname() == 'UTC') is used instead of timezone.utc (.tzname() == 'UTC+00:00'). Everything works if UTC class from the example [1] in the tzinfo docs is used. It only breaks due to the weird

[issue22246] add strptime(s, '%s')

2014-08-21 Thread Akira Li
New submission from Akira Li: issue12750 makes strftime('%s') portable. For symmetry, datetime.strptime(s, '%s') could be enabled to return local time as an aware (to avoid loosing info) datetime object for a given integer (seconds since the Epoch) timestamp string. I've uploaded a prototype

[issue22246] add strptime(s, '%s')

2014-08-21 Thread Akira Li
Changes by Akira Li 4kir4...@gmail.com: Removed file: http://bugs.python.org/file36430/draft-strptime-%s.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22246 ___

[issue22246] add strptime(s, '%s')

2014-08-21 Thread Akira Li
Changes by Akira Li 4kir4...@gmail.com: Added file: http://bugs.python.org/file36431/draft-strptime-%s.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22246 ___

[issue22241] strftime/strptime round trip fails even for UTC datetime object

2014-08-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I see. I thought you were complaining about %z format not supporting 00:00 as in from datetime import * datetime.strptime(00:00,%z) Traceback (most recent call last): .. ValueError: time data '00:00' does not match format '%z' but your issue is

[issue22241] strftime/strptime round trip fails even for UTC datetime object

2014-08-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: See also http://bugs.python.org/issue5094#msg106476. It looks like providing 'UTC' as the name of utc singleton was part of my original proposal. I have no recollection on why it was not implemented that way. -- nosy: +brett.cannon,

[issue2527] Pass a namespace to timeit

2014-08-21 Thread Ben Roberts
Ben Roberts added the comment: I did sign one right after I submitted the patch. Takes a few days for the asterisks to propagate I guess :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2527

[issue15125] argparse: positional arguments containing - in name not handled well

2014-08-21 Thread paul j3
paul j3 added the comment: It still needs a documentation patch. And if the documentation was clearer, would sfllaw's patch still be needed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15125

[issue21308] PEP 466: backport ssl changes

2014-08-21 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for getting this in, folks! As Alex suggests, we can file any identified regressions as new issues. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21308

[issue22241] strftime/strptime round trip fails even for UTC datetime object

2014-08-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Akira, I see that you participated in the original discussion (msg107608). We settled on str(timezone.utc) == 'UTC+00:00' and this was clearly a deliberate choice. I don't think we can revisit this now, but we can probably make strptime smart enough

[issue13540] Document the Action API in argparse

2014-08-21 Thread paul j3
paul j3 added the comment: The formatting of the descriptor line for this class is not consistent with the classes for this module. It lacks 'class'. It is all bold In contrast class argparse.ArgumentParser(prog=None, ... uses bold for only the name. --

[issue22237] sorted() docs should state that the sort is stable

2014-08-21 Thread Martin Panter
Martin Panter added the comment: It looks like a fork of that how-to is actually part of the documentation: https://docs.python.org/release/3.4.0/howto/sorting.html. Perhaps the two should be linked better. If “sorted” is indeed meant to be stable, that makes the docstring for the “heapsort”

[issue2527] Pass a namespace to timeit

2014-08-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ah, good. The patch looks fine to me, except that you should add versionchanged tags in the documentation for the added parameter. -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org

[issue1186900] nntplib shouldn't raise generic EOFError

2014-08-21 Thread Martin Panter
Martin Panter added the comment: NNTPConnectError does still seem a slightly awkward name. I would go for NNTPConnectionError instead, but I’m also happy to put my bikeshed paint away let this patch be applied as is :) Handling of NNTPTemporaryError with a code of 400 is similar to handling

[issue21585] Run Tkinter tests with wantobjects=False

2014-08-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: The current test/test_*.py example file in the docs intentionally does not contain test_main. https://docs.python.org/3/library/test.html#writing-unit-tests-for-the-test-package The next section explaining that test.regrtest runs

[issue19997] imghdr.what doesn't accept bytes paths

2014-08-21 Thread Claudiu Popa
Claudiu Popa added the comment: Right, I've read the thread you posted and I agree. My use cases aren't strong enough and it's enough for me to call os.fsdecode. -- resolution: - wont fix stage: patch review - resolved status: pending - closed ___

[issue22247] More incomplete module.__all__ lists

2014-08-21 Thread Martin Panter
New submission from Martin Panter: The nntplib.NNTPError exception is documented, but missing from __all__. I ran across another one the other day, but I can’t remember what it was now. Is there a practical way to automatically test for some of these, perhaps by scanning the documentation for

[issue1186900] nntplib shouldn't raise generic EOFError

2014-08-21 Thread Martin Panter
Martin Panter added the comment: Some more points: * I suggest adding something like this to the documentation: exception nntplib.NNTPConnect[ion]Error Exception raised when the server unexpectedly shuts down the connection. * The tests should use BytesIO rather than StringIO. Other than

[issue2527] Pass a namespace to timeit

2014-08-21 Thread Ben Roberts
Ben Roberts added the comment: Ah yes. New patch improves the docs. -- Added file: http://bugs.python.org/file36432/timeit_global_arg_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2527

[issue1186900] nntplib shouldn't raise generic EOFError

2014-08-21 Thread Martin Panter
Martin Panter added the comment: PPS: Documentation should probably have the “New in version 3.5” tag as well -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1186900 ___

[issue1186900] nntplib shouldn't raise generic EOFError

2014-08-21 Thread Lita Cho
Lita Cho added the comment: Thank yo so much, Martin! I will incorporate these changes and add them soon! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1186900 ___

[issue21585] Run Tkinter tests with wantobjects=False

2014-08-21 Thread Zachary Ware
Zachary Ware added the comment: I've been thinking on this for a while, and haven't come up with a solution that I like. I haven't had a chance to look at #22236 yet, but I suspect it will help immensely. Also, I have a work-in-progress patch for rearranging the tkinter tests into a

[issue12750] datetime.strftime('%s') should respect tzinfo

2014-08-21 Thread Akira Li
Akira Li added the comment: issue22246 discusses the reverse: strptime('12345', '%s') -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12750 ___

[issue22241] strftime/strptime round trip fails even for UTC datetime object

2014-08-21 Thread Akira Li
Akira Li added the comment: I see that you participated in the original discussion (msg107608). We settled on str(timezone.utc) == 'UTC+00:00' and this was clearly a deliberate choice. I don't think we can revisit this now, but we can probably make strptime smart enough to parse UTC±hh:mm

[issue22024] Add to shutil the ability to wait until files are definitely deleted

2014-08-21 Thread Sean McCully
Sean McCully added the comment: Is this closer to what Zachary.Ware suggested, patch implements a wait_until_deleted method in C Api using inotify for Linux/FreeBSD. -- nosy: +seanmccully Added file: http://bugs.python.org/file36433/issue22024.patch

[issue18188] ERROR: test_no_optimize_flag on Mageia Linux Cauldron x86-64 with certain configure flags

2014-08-21 Thread Shlomi Fish
Shlomi Fish added the comment: Here is the new output of the make test with Python-3.4.1 : shlomif@telaviv1:~$ uname -a Linux telaviv1.shlomifish.org 3.15.6-desktop-1.mga5 #1 SMP Wed Jul 23 22:28:50 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux You may wish to install a Mageia Linux x86-64 Cauldron