[issue18310] itertools.tee() can't accept keyword arguments

2013-12-29 Thread Mark Lawrence
Mark Lawrence added the comment: It's just the docs that need changing to clarify the situation as (say) a,b,c = tee(range, 3) works perfectly. Sorry I didn't have the foresight to check this before :( -- components: +Documentation -Library (Lib) versions: +Python 2.7 ___

[issue19771] runpy should check ImportError.name before wrapping it

2013-12-29 Thread Anthony Kong
Changes by Anthony Kong : -- nosy: +Anthony.Kong ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue18310] itertools.tee() can't accept keyword arguments

2013-12-29 Thread Mark Lawrence
Mark Lawrence added the comment: The docs for tee are the same going right back to its introduction in 2.4. The itertools count function takes start and step keywords, why can't tee take a keyword as it's documented to? -- ___ Python tracker

[issue18310] itertools.tee() can't accept keyword arguments

2013-12-29 Thread Mark Lawrence
Mark Lawrence added the comment: Why has this been closed? I've just run into exactly the same problem. It states here http://docs.python.org/3/library/itertools.html#itertools.tee "itertools.tee(iterable, n=2) - Return n independent iterators from a single iterable." -- nosy: +Brea

[issue16778] Logger.findCaller needs to be smarter

2013-12-29 Thread Nick Coghlan
Nick Coghlan added the comment: My idea is to annotate the frames appropriately so they can be *displayed* differently when showing a traceback (either hiding them entirely or displaying additional information). This would be another use case - annotating the frame to say the logging module shoul

[issue18566] In unittest.TestCase docs for setUp() and tearDown() don't mention AssertionError

2013-12-29 Thread Michael Foord
Michael Foord added the comment: Yep, those docs are just wrong. I'm trying to think of a concise rewording. -- ___ Python tracker ___ ___

[issue20031] unittest.TextTestRunner missing run() documentation.

2013-12-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 19464d77ec2e by Michael Foord in branch 'default': Closes issue 20031. Document unittest.TextTestRunner.run method. http://hg.python.org/cpython/rev/19464d77ec2e -- nosy: +python-dev resolution: -> fixed stage: needs patch -> committed/reje

[issue20092] type() constructor should bind __int__ to __index__ when __index__ is defined and __int__ is not

2013-12-29 Thread Ethan Furman
Ethan Furman added the comment: I updated it as I liked your wording better. :) Doing more testing to see if anything else needs fixing before I make the next patch for the tracker on that issue. -- ___ Python tracker

[issue20092] type() constructor should bind __int__ to __index__ when __index__ is defined and __int__ is not

2013-12-29 Thread R. David Murray
R. David Murray added the comment: Nah, splitting it doesn't seem worth it unless you think the patch won't make it in. (Not that I looked at it earlier, but he patch on the issue doesn't look like what you just posted here...and here there's a typo: shuld). -- __

[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2013-12-29 Thread gudge
gudge added the comment: Can you please provide some hints on how to handle http://bugs.python.org/issue19940#msg205860. The value of format_regex 1) Without locale set: re.compile('(?Pjan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\\s+(?P3[0-1]|[1-2]\\d|0[1- 9]|[1-9]| [1-9])\\s+(?P2[0-3]

[issue19732] python fails to build when configured with --with-system-libmpdec

2013-12-29 Thread Matthias Klose
Matthias Klose added the comment: your current repo doesn't create and install the .so symlink, and thus won't be used for linking. Also the sphinx docs are missing, which were included in 2.3. -- ___ Python tracker

[issue11798] Test cases not garbage collected after run

2013-12-29 Thread Michael Foord
Michael Foord added the comment: Ah yes, I see - sorry. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue20094] intermitent failures with test_dbm

2013-12-29 Thread Ethan Furman
Ethan Furman added the comment: Actually, make that about 1/5 of the time. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue20094] intermitent failures with test_dbm

2013-12-29 Thread Ethan Furman
New submission from Ethan Furman: Following errors occur about half the time: == ERROR: test_anydbm_creation (test.test_dbm.TestCase-dbm.ndbm) -- Traceback (mos

[issue19890] Typo in multiprocessing docs

2013-12-29 Thread Mike Short
Changes by Mike Short : -- nosy: +Mike.Short ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19890] Typo in multiprocessing docs

2013-12-29 Thread Mike Short
Changes by Mike Short : -- keywords: +patch Added file: http://bugs.python.org/file33287/multiprocessing.patch ___ Python tracker ___

[issue16778] Logger.findCaller needs to be smarter

2013-12-29 Thread Vinay Sajip
Vinay Sajip added the comment: > the frame annotations idea discussed in other issues If you mean #19585 and #18861, they seem to be related to exceptions - the logging use case is not exception-related. I couldn't find any other discussions about frame annotations. -- __

[issue20093] Wrong OSError message from os.rename() when dst is a non-empty directory

2013-12-29 Thread Dmitry Shachnev
Dmitry Shachnev added the comment: This is a result of http://hg.python.org/cpython/rev/6903f5214e99. Looks like we should check the error code and conditionally set the file name to either src or dst. -- nosy: +haypo, mitya57 ___ Python tracker

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2013-12-29 Thread Jason R. Coombs
Jason R. Coombs added the comment: The bug as reported against setuptools: https://bitbucket.org/pypa/setuptools/issue/127/unicodedecodeerror-when-install-in-windows -- nosy: +jason.coombs ___ Python tracker __

[issue20092] type() constructor should bind __int__ to __index__ when __index__ is defined and __int__ is not

2013-12-29 Thread Ethan Furman
Ethan Furman added the comment: I have the following as part of the patch for that issue: - diff -r b668c409c10a Doc/reference/datamodel.rst --- a/Doc/reference/datamodel.rst Sat Dec 28 20:37:58 2013 +0100 +++ b/Doc/reference/datamodel

[issue16778] Logger.findCaller needs to be smarter

2013-12-29 Thread Nick Coghlan
Nick Coghlan added the comment: I think we need to look seriously at the frame annotations idea discussed in other issues. Eliminating noise from tracebacks and correctly reporting user code rather than infrastructure could should be achievable through local state rather than needing global re

[issue20084] smtplib: support for UTF-8 encoded headers (SMTPUTF8)

2013-12-29 Thread R. David Murray
R. David Murray added the comment: Yeah, I've been doing a lot of reading of standards while trying to hide all the messy details from users of the new API I've added to the email package. I haven't gotten to smtplib yet :) But, this stuff is messy. If you want to understand a standard, you

[issue20092] type() constructor should bind __int__ to __index__ when __index__ is defined and __int__ is not

2013-12-29 Thread R. David Murray
R. David Murray added the comment: Ah, I see. A link to that issue would have been helpful :). To summarize for anyone like me who didn't follow that issue: __index__ means the object can be losslessly converted to an int (is a true int), while __int__ may be an approximate conversion. Thus

[issue20084] smtplib: support for UTF-8 encoded headers (SMTPUTF8)

2013-12-29 Thread Freek Dijkstra
Freek Dijkstra added the comment: > we want our message to get delivered regardless of whether or not smtputf8 is > available. This is not possible if the user specifies an (sender or recipient) email address with non-ASCII characters and the first-hop mail system does not support SMTPUTF8. S

[issue11798] Test cases not garbage collected after run

2013-12-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: It is used, see countTestCases(). -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue19995] %c, %o, %x, %X accept non-integer values instead of raising an exception

2013-12-29 Thread Ethan Furman
Ethan Furman added the comment: Ran full test suite; some errors came up in test_format from the following test lines: testformat("%#x", 1.0, "0x1") testformat("%x", float(big), "123456___", 6) testformat("%o", float(big), "123456__", 6) testf

[issue20092] type() constructor should bind __int__ to __index__ when __index__ is defined and __int__ is not

2013-12-29 Thread Ethan Furman
Ethan Furman added the comment: In issue19995, in msg206339, Guido exhorted: >> [Ethan claimed] it is possible to want a type that can be used as an >> index or slice but that is still not a number > > I'm sorry, but this requirement is absurd. An inde

[issue20079] Add support for glibc supported locales

2013-12-29 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail