[issue22300] PEP 446 What's New Updates for 2.7.9

2014-11-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0dacd614839c by Nick Coghlan in branch '2.7': Close #22300 by tweaking 2.7.9 What's New announcements https://hg.python.org/cpython/rev/0dacd614839c -- nosy: +python-dev resolution: - fixed stage: commit review - resolved status: open -

[issue22868] Minor error in the example of filter()

2014-11-14 Thread Yi Bai
Yi Bai added the comment: Ah yes. You are right, Georg. And as you suggested, it might be better to remove this ambiguity, for people with poor parsing skills like me. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22868

[issue22868] Minor error in the example of filter()

2014-11-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5dd835edde1e by Georg Brandl in branch '2.7': Closes #22868: make example less ambiguous. https://hg.python.org/cpython/rev/5dd835edde1e -- nosy: +python-dev resolution: - fixed stage: - resolved status: open - closed

[issue22868] Minor error in the example of filter()

2014-11-14 Thread Georg Brandl
Georg Brandl added the comment: Done. Thanks for the report! -- resolution: fixed - stage: resolved - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22868 ___

[issue22868] Minor error in the example of filter()

2014-11-14 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22868 ___

[issue22869] Split pylifecycle.c out from pythonrun.c

2014-11-14 Thread Nick Coghlan
New submission from Nick Coghlan: When working on the original reference implementation for PEP 432, I found it useful to split the startup shutdown code out from the main entry points into the eval loop (see issue 22257 for more details). However, that split made the draft implementation

[issue22869] Split pylifecycle.c out from pythonrun.c

2014-11-14 Thread Nick Coghlan
Nick Coghlan added the comment: Incorporated pythonrun changes from 668e0bf30042, 6aaa0aab1e93 and d6fb87972dee into pylifecycle -- Added file: http://bugs.python.org/file37195/split_pythonrun_v2.diff ___ Python tracker rep...@bugs.python.org

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-11-14 Thread Nick Coghlan
Nick Coghlan added the comment: Issue 22869 now covers the preparatory refactoring to split pythonrun into two modules. -- dependencies: +Split pylifecycle.c out from pythonrun.c ___ Python tracker rep...@bugs.python.org

[issue22869] Split pylifecycle.c out from pythonrun.c

2014-11-14 Thread Nick Coghlan
Nick Coghlan added the comment: Known issues with the current split: * reference count printing is duplicated (lifecycle prints it at shutdown, pythonrun at the interactive prompt) * pythonrun references PyInspect_Flag directly without an extern declaration * This particular oddity wasn't

[issue2636] Adding a new regex module (compatible with re)

2014-11-14 Thread Mateon1
Mateon1 added the comment: Well, I am reporting it here, is this not the correct place? Sorry if it is. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636 ___

[issue2636] Adding a new regex module (compatible with re)

2014-11-14 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636 ___ ___ Python-bugs-list

[issue22869] Split pylifecycle.c out from pythonrun.c

2014-11-14 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22869 ___ ___ Python-bugs-list mailing

[issue22870] urlopen timeout failed with SSL socket

2014-11-14 Thread Dave Tian
New submission from Dave Tian: Hi there, Recent urlopen with timeout did not work. Below is the back trace. After digging into the Python lib, the root cause is found - within the socket.py, self._sock.recv(), under a 'while True' loop, tried to retrieve sth from the under-layer SSL socket.

[issue22834] Unexpected FileNotFoundError when current directory is removed

2014-11-14 Thread Brett Cannon
Brett Cannon added the comment: So it isn't about importlib not handling missing directories on sys.path directly, it has to do with the fact that os.getcwd() raises FileNotFoundError when CWD is no longer valid and that is in a fundamental part of importlib that isn't worrying about

[issue22871] datetime documentation incomplete

2014-11-14 Thread Santiago Palacio Gómez
New submission from Santiago Palacio Gómez: In the datetime documentation page https://docs.python.org/2/library/datetime.html In the directive sections, there are a few things that are not documented there. I really don't know all the possible directives, but the few examples I'm aware of,

[issue22847] Improve method cache efficiency

2014-11-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for adding the instrumentation. Otherwise, it would have been difficult to tell whether the xor hashing had a significant deleterious effect on collisions. Also, +1 on bumping up the cache size. -- nosy: +rhettinger

[issue22871] datetime documentation incomplete

2014-11-14 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +belopolsky, ethan.furman, lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22871 ___

[issue22872] multiprocessing.Queue raises AssertionError

2014-11-14 Thread Joseph Siddall
New submission from Joseph Siddall: putting something in Queue(multiprocessing.Queue) after closing it raises an AssertionError. Getting something out of a Queue after closing it raises an OSError. I expected both scenarios to raise the same exception. To Reproduce: from multiprocessing

[issue22872] multiprocessing.Queue raises AssertionError

2014-11-14 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman, jnoller, sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22872 ___ ___

[issue2636] Adding a new regex module (compatible with re)

2014-11-14 Thread Matthew Barnett
Matthew Barnett added the comment: The page on PyPI says where the project's homepage is located: Home Page: https://code.google.com/p/mrab-regex-hg/ The bug was fixed in the last release. -- ___ Python tracker rep...@bugs.python.org

[issue22873] Re: SSLsocket.getpeercert - return ALL the fields of the certificate.

2014-11-14 Thread John Nagle
New submission from John Nagle: In each revision of getpeercert, a few more fields are returned. Python 3.2 added issuer and notBefore. Python 3.4 added crlDistributionPoints, caIssuers, and OCSP URLS. But some fields still aren't returned. I happen to need CertificatePolicies, which is how

[issue22873] Re: SSLsocket.getpeercert - return ALL the fields of the certificate.

2014-11-14 Thread Alex Gaynor
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +alex, christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22873 ___

[issue22873] Re: SSLsocket.getpeercert - return ALL the fields of the certificate.

2014-11-14 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22873 ___ ___ Python-bugs-list

[issue22874] gzip bug in python 2.7.3?

2014-11-14 Thread Jens Bonerz
New submission from Jens Bonerz: I am getting the Not a gzipped file exception while retrieving a gzipped sitemap xml (tested on amazon.de) using scrapy- I am using Python 2.7.3 and Scrapy 0.24.4 Can anyone confirm gzip being broken in 2.7.3 or am I overseeing something? -- messages:

[issue16802] fileno argument to socket.socket() undocumented

2014-11-14 Thread Petri Lehtinen
Petri Lehtinen added the comment: To me, there's also a valid use case on Unix; A parent process forks and execs, wanting to share a socket to the executed child process. The best way for the child to create a socket object is to use the fileno parameter of socket.socket(). -- nosy:

[issue22822] IPv6Network constructor docs incorrect about valid input

2014-11-14 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +ncoghlan, pmoody ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22822 ___ ___

[issue22874] gzip bug in python 2.7.3?

2014-11-14 Thread Ned Deily
Ned Deily added the comment: It's hard to guess what is going on without an example of the failure. Please post the code of a simple reproducible example that fails along with the exception traceback and also indicate what kind of platform you are running this on. -- nosy:

[issue22834] Unexpected FileNotFoundError when current directory is removed

2014-11-14 Thread R. David Murray
R. David Murray added the comment: Well, once I've launched a program, regardless of whether or not I expected some stuff to come from the CWD, I generally don't think about whether or not the CWD might go away, and in a complex setup it would most likely be getting deleted by some other

[issue22838] Convert re tests to unittest

2014-11-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: This needs side-by-side review but there is no review button. Does anyone know why? -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22838

[issue22871] datetime documentation incomplete

2014-11-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: If you read the paragraph preceding the table of directives [1], you will see that The full set of format codes supported varies across platforms, because Python calls the platform C library’s strftime() function, and platform variations are common. To

[issue22834] Unexpected FileNotFoundError when current directory is removed

2014-11-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: How about issue a verbose warning for possible debugging and continue for robustness? -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22834

[issue22870] urlopen timeout failed with SSL socket

2014-11-14 Thread R. David Murray
R. David Murray added the comment: It sounds like the bug is that PySSL_SSLread didn't raise the timeout? Any idea if this is still a problem in python3? (Could possibly have changed on trunk as well, as SSL is being updated in 2.7.9.) -- nosy: +r.david.murray

[issue22874] gzip bug in python 2.7.3?

2014-11-14 Thread Jens Bonerz
Jens Bonerz added the comment: closed. Problem caused by 3rd party app -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22874 ___

[issue17293] uuid.getnode() MAC address on AIX

2014-11-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This issue had added new tests. Here is a patch against 2.7 (3.4+ should use OSError instead of socket.gaierror) which fixes _arp_getnode(). -- Added file: http://bugs.python.org/file37196/uuid_arp_getnode_freebsd.patch

[issue22841] Avoid to use coroutine with add_signal_handler()

2014-11-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset d244e1770f1b by Guido van Rossum in branch '3.4': - Issue #22841: Reject coroutines in asyncio add_signal_handler(). https://hg.python.org/cpython/rev/d244e1770f1b -- nosy: +python-dev ___ Python tracker

[issue22874] gzip bug in python 2.7.3?

2014-11-14 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- resolution: - third party stage: - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22874 ___ ___

[issue22841] Avoid to use coroutine with add_signal_handler()

2014-11-14 Thread Guido van Rossum
Guido van Rossum added the comment: Applied to upstream tulip, 3.4, and 3.5. Thanks Ludovic! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22841 ___

[issue22841] Avoid to use coroutine with add_signal_handler()

2014-11-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 44e77709daa4 by Guido van Rossum in branch 'default': - Issue #22841: Reject coroutines in asyncio add_signal_handler(). https://hg.python.org/cpython/rev/44e77709daa4 -- ___ Python tracker

[issue22875] asyncio: call_soon() documentation unclear on timing

2014-11-14 Thread Corbin Simpson
New submission from Corbin Simpson: Hi there! While assisting somebody on #python (where manners go to die), I was consulting asyncio's documentation. Given my unfamiliarity with asyncio, I was surprised to read BaseEventLoop.call_soon()'s documented behavior: Arrange for a callback to be

[issue14099] ZipFile.open() should not reopen the underlying file

2014-11-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you David for your benchmarks and patch. There are several backward compatibility issues with the reading from ZipFile opened for write and from closed ZipFile. This behavior is mostly undocumented (except the reading from closed ZipFile), but even

[issue22875] asyncio: call_soon() documentation unclear on timing

2014-11-14 Thread Guido van Rossum
Guido van Rossum added the comment: As soon as possible is constrained by all callbacks are called from the event loop. Feel free to suggest a doc patch (asyncio docs are in dire need of more help!) -- ___ Python tracker rep...@bugs.python.org

[issue14099] ZipFile.open() should not reopen the underlying file

2014-11-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file37198/bench_zip.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14099 ___

[issue22875] asyncio: call_soon() documentation unclear on timing

2014-11-14 Thread R. David Murray
R. David Murray added the comment: Personally, when I read that I thought arrange for made it pretty clear it was when control returned to the event loop, but I agree that if it can be made clearer it should be. -- nosy: +r.david.murray ___ Python

[issue22838] Convert re tests to unittest

2014-11-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Regenerated patch. Hope this will help. -- Added file: http://bugs.python.org/file37199/re_tests.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22838

[issue22843] doc error: 6.2.4. Match Objects

2014-11-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: David is correct that the current phrasing is correct. The phase 'x has a boolean value of True' means 'bool(x) is True', which is always true for match objects, as well as for non-zero numbers, non-empty collections, and many other things. This does *not*

[issue22848] Subparser help does not respect SUPPRESS argument

2014-11-14 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +bethard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22848 ___ ___ Python-bugs-list mailing

[issue22851] 2.7 core crashes with generator.gi_frame.f_restricted

2014-11-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: This appears to be 2.7 only as 3.4.2 stops on the first print with AttributeError: 'frame' object has no attribute 'f_restricted', which is not a crash. -- nosy: +terry.reedy stage: - needs patch title: core crashes - 2.7 core crashes with

[issue22858] unittest.__init__:main shadows unittest.main

2014-11-14 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +ezio.melotti, michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22858 ___ ___

[issue22860] unittest TestProgram hard to extend

2014-11-14 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +ezio.melotti, michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22860 ___ ___

[issue22843] doc error: 6.2.4. Match Objects

2014-11-14 Thread Clayton Kirkwood
Clayton Kirkwood added the comment: Cool -Original Message- From: Terry J. Reedy [mailto:rep...@bugs.python.org] Sent: Friday, November 14, 2014 1:04 PM To: c...@godblessthe.us Subject: [issue22843] doc error: 6.2.4. Match Objects Terry J. Reedy added the comment: David is correct

[issue22863] https://docs.python.org/ should make a true 2.7.8 version available

2014-11-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: New stuff is marked New in version 2.7.9., etc. The Idle chapter (reletively new in the Library Reference itself) has the same problem if new or quasi-new features in micro-releases are added to the doc before the release. -- nosy: +terry.reedy

[issue9694] argparse required arguments displayed under optional arguments

2014-11-14 Thread Ryan Hartkopf
Ryan Hartkopf added the comment: Personally, 'options' is the first word that comes to mind other than 'arguments' (which is confusing for obvious reasons). But I think we can all agree that any of these candidates are less ambiguous than 'optional arguments'! It's been 4 years, let's put

[issue22863] https://docs.python.org/ should make a true 2.7.8 version available

2014-11-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 14.11.2014 22:35, Terry J. Reedy wrote: New stuff is marked New in version 2.7.9., etc. The Idle chapter (reletively new in the Library Reference itself) has the same problem if new or quasi-new features in micro-releases are added to the doc before

[issue14099] ZipFile.open() should not reopen the underlying file

2014-11-14 Thread David Wilson
David Wilson added the comment: Hi Serhiy, Thanks for the new patch, it looks better than my attempt. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14099 ___

[issue22834] Unexpected FileNotFoundError when current directory is removed

2014-11-14 Thread Martin Panter
Martin Panter added the comment: The only time I see a warning would be useful is if you intended to override a standard module with a module of the same name in the current directory. In all other cases I think it would be better to either generate an ImportError if the module is not found,

[issue22867] document behavior of calling atexit.register() while atexit._run_exitfuncs is running

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

[issue22851] 2.7 core crashes with generator.gi_frame.f_restricted

2014-11-14 Thread eryksun
eryksun added the comment: The fix for issue 14432 was applied to 3.3, but I'm pretty sure 2.x PyFrame_IsRestricted is the only problem. Nothing else should see f_tstate when it's NULL. Also, f_tstate was dropped from PyFrameObject in 3.4. -- ___

[issue22876] ip_interface can't be broadcast or number net

2014-11-14 Thread Вячеслав
New submission from Вячеслав: ip_interface can't be network or broadcast address. Probably should throw an exception in such cases ip_interface(u'192.168.1.0/25') IPv4Interface(u'192.168.1.0/25') ip_interface(u'192.168.1.127/25') IPv4Interface(u'192.168.1.127/25') -- components:

[issue22863] https://docs.python.org/ should make a true 2.7.8 version available

2014-11-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that x.y.z should be reserved for the frozen release version of the docs and that the current ongoing version should be x.y (trunk) or x.y.z+. This was true without new features in a micro release, but did not matter so much. Leaving Idle aside, I

[issue22869] Split pylifecycle.c out from pythonrun.c

2014-11-14 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22869 ___

[issue22847] Improve method cache efficiency

2014-11-14 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22847 ___

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-11-14 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22257 ___

[issue22863] https://docs.python.org/ should make a true 2.7.8 version available

2014-11-14 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22863 ___

[issue22851] 2.7 core crashes with generator.gi_frame.f_restricted

2014-11-14 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22851 ___

[issue22847] Improve method cache efficiency

2014-11-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 97dc64adb6fe by Antoine Pitrou in branch 'default': Issue #22847: Improve method cache efficiency. https://hg.python.org/cpython/rev/97dc64adb6fe -- nosy: +python-dev ___ Python tracker

[issue22877] Backport ensurepip OS X installer changes to 2.7

2014-11-14 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- assignee: ned.deily components: Installation, Macintosh nosy: ned.deily, ronaldoussoren priority: normal severity: normal status: open title: Backport ensurepip OS X installer changes to 2.7 versions: Python 2.7

[issue22847] Improve method cache efficiency

2014-11-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Now pushed. Thanks for the comments! -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22847

[issue22873] Re: SSLsocket.getpeercert - return ALL the fields of the certificate.

2014-11-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: How about just returning ALL the remaining fields and finishing the job, so this doesn't have to be fixed again? Thanks. Please learn some respect. You are not here to tell volunteers what they should work on. And if you want to see things sped up, you can

[issue22877] Backport ensurepip OS X installer changes to 2.7

2014-11-14 Thread Roundup Robot
New submission from Roundup Robot: New changeset 6b8e107622b3 by Ned Deily in branch '2.7': Issue #22877: PEP 477 - OS X installer for 2.7.9 now installs pip. https://hg.python.org/cpython/rev/6b8e107622b3 New changeset e8182c6c9ef1 by Ned Deily in branch '3.4': Issue #22877: PEP 477 - keep 2.7

[issue22877] Backport ensurepip OS X installer changes to 2.7

2014-11-14 Thread Ned Deily
Ned Deily added the comment: Committed for release in 2.7.9. -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22877 ___

[issue22827] Backport ensurepip to 2.7 (PEP 477)

2014-11-14 Thread Ned Deily
Ned Deily added the comment: The OS X installer integration backport has been committed in Issue22877. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22827 ___

[issue22873] Re: SSLsocket.getpeercert - return ALL the fields of the certificate.

2014-11-14 Thread John Nagle
John Nagle added the comment: May be a duplicate of Issue 204679: ssl.getpeercert() should include extensions http://bugs.python.org/issue20469 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22873

[issue22868] Minor error in the example of filter()

2014-11-14 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22868 ___ ___

[issue7949] IDLE: problems with dark GTK or KDE color schemes

2014-11-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: #16984 is closed as a duplicate of this. The screenshot helps. I was just thinking about adding a retro-black color theme to match the current old-is-new fashion. It appears that this would solve the Text part of the problem but Mathias' patch summary shows