[issue6305] islice doesn't accept large stop values

2014-05-10 Thread Alok Singhal
Alok Singhal added the comment: Uploading another patch which is the same as the last patch but this one applies cleanly after the latest islice changes for #21321. -- Added file: http://bugs.python.org/file35205/islice_large_values-4.patch ___ Pytho

[issue7776] http.client.HTTPConnection tunneling is broken

2014-05-10 Thread Cybjit
Cybjit added the comment: On 2014-05-10 00:23, nikratio wrote: > Is pip maybe doing its own certificate check, and relying on > HTTPSConnection.host to contain the final hostname rather than the proxy? I think the culprit might be here https://github.com/pypa/pip/blob/1.5.4/pip/_vendor/requests

[issue19655] Replace the ASDL parser carried with CPython

2014-05-10 Thread Stefan Behnel
Stefan Behnel added the comment: The "avoid rebuilding" part doesn't seem to work for me. Source build currently fails as follows: """ /bin/mkdir -p Include python ./Parser/asdl_c.py -h Include ./Parser/Python.asdl # Substitution happens here, as the completely-expanded BINDIR # is not availabl

[issue21435] Segfault in gc with cyclic trash

2014-05-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: @Tim nothing to close, aiohttp is separate library based on asyncio. It just uses constructions like self.attr = None in __del__ -- ___ Python tracker _

[issue19655] Replace the ASDL parser carried with CPython

2014-05-10 Thread Eli Bendersky
Eli Bendersky added the comment: Stefan, you need to run `make touch` if you want to avoid rebuilding. See #15964 for more details. [all bots run `make touch` before building now] -- ___ Python tracker __

[issue19655] Replace the ASDL parser carried with CPython

2014-05-10 Thread Eli Bendersky
Eli Bendersky added the comment: This is also described in the Dev Guide: https://docs.python.org/devguide/setup.html -- ___ Python tracker ___ _

[issue21466] General Index link to del statement is wrong

2014-05-10 Thread Apteris
New submission from Apteris: In the documentation index, https://docs.python.org/2/genindex-D.html, the link to the del statement documentation is not https://docs.python.org/2/reference/simple_stmts.html#del as it presumably should be, but https://docs.python.org/2/reference/datamodel.html#

[issue21466] General Index link to del statement is wrong

2014-05-10 Thread Berker Peksag
Changes by Berker Peksag : -- versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue21425] Interactive interpreter doesn't flush stderr prompty

2014-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: This can be reproduced as easily under Linux: $ ./python 2>&1 | cat Python 3.5.0a0 (default:17689e43839a+39f2a78f4357+, May 9 2014, 00:30:19) [GCC 4.8.1] on linux Type "help", "copyright", "credits" or "license" for more information. >>> 5 5 >>> 1/0 >>> nonsen

[issue21425] Interactive interpreter doesn't flush stderr prompty

2014-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Attached patch fixes it under Linux, and adds tests. I'd be glad if someone could give it a run under Windows. -- keywords: +patch nosy: +ncoghlan, tim.golden, zach.ware stage: needs patch -> patch review Added file: http://bugs.python.org/file35206/flus

[issue21467] IDLE icon not included in Windows installer

2014-05-10 Thread Steve Dower
New submission from Steve Dower: #20406 changed the icon used by IDLE, but forgot to include the new file in the Windows installer. As a result, IDLE won't start. I've attached a patch. 3.4 is unaffected, probably because msi.py changed significantly at some point. (I don't have commit rights

[issue21467] IDLE icon not included in Windows installer

2014-05-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'll declare this release-critical for the moment; I'm sure Benjamin will properly process it. As for getting access: send your ssh key to hgaccou...@python.org. -- priority: normal -> release blocker ___ Python tr

[issue21459] DragonFlyBSD support

2014-05-10 Thread Brett Cannon
Brett Cannon added the comment: It was pointed out to me Dragonfly support is pre-existing, so I prematurely rejected this. Sorry about that. -- resolution: wont fix -> status: closed -> open ___ Python tracker _

[issue21468] NNTPLib connections become corrupt after long periods of activity

2014-05-10 Thread James Meneghello
New submission from James Meneghello: After establishing an NNTP connection for a long-running process (up to hours at a time), the connection will eventually die and start producing infinite random garbage output, a small part of which is seen below. Any subsequent calls to the connection wil

[issue21467] IDLE icon not included in Windows installer

2014-05-10 Thread Tim Golden
Tim Golden added the comment: Steve -- re changes to PCBuild &c.: worth liaising with Zach Ware (and, to a lesser extent, me) as he's been working through a number of things in that area and I know has other ideas. Just post a patch and nosy us both (zach.ware / tim.golden) Obviously, if it's

[issue21467] IDLE icon not included in Windows installer

2014-05-10 Thread Steve Dower
Steve Dower added the comment: Martin - sent. I think I need some bits flipped on my account here too. Will/can you take care of that for me? Tim - thanks. My next task was to figure out who else has an interest in this area. I wasn't sure if the 'windows' tag was accurate, but sounds like it

[issue21469] Hazards in robots.txt parser

2014-05-10 Thread Raymond Hettinger
New submission from Raymond Hettinger: * The can_fetch() method is not checking to see if read() has been called, so it returns false positives if read() has not been called. * When read() is called, it fails to call modified() so that mtime() returns an incorrect result. The user has to manu

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2014-05-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset a9d34685ec47 by Brian Curtin in branch '2.7': Backport 4e9f1017355f from #3561. http://hg.python.org/cpython/rev/a9d34685ec47 -- ___ Python tracker

[issue21464] fnmatch module uses regular expression with undefined result to perform matching

2014-05-10 Thread akira
akira added the comment: I don't see (?x) flag and it is not introduced by `res` regular expression that is constructed within translate() function in Lib/fnmatch.py >>> import fnmatch >>> fnmatch.translate('a b') 'a\\ b\\Z(?ms)' -- nosy: +akira _

[issue21464] fnmatch module uses regular expression with undefined result to perform matching

2014-05-10 Thread Paul Sokolovsky
Paul Sokolovsky added the comment: I see, so it's my misreading of the "re" module docs. I kinda thought that "x" in "(?x)" means "any single-character flag of set (?aiLmsux)". I was wrong, it is the specific literal flag. Also, rereading it again, the doc says "the letters set the correspond

[issue21332] subprocess bufsize=1 docs are misleading

2014-05-10 Thread akira
akira added the comment: I've asked about thread-safety of tests on python-dev mailing list: https://mail.python.org/pipermail/python-dev/2014-May/134523.html -- ___ Python tracker

[issue21467] IDLE icon not included in Windows installer

2014-05-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Creating issues with patches, so others can comment, is a good idea even when you have commit rights. Adding yourself to https://docs.python.org/devguide/experts.html#experts is a good way to test new commit rights. -- _

[issue19655] Replace the ASDL parser carried with CPython

2014-05-10 Thread Stefan Behnel
Stefan Behnel added the comment: That fixes it. Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue21160] incorrect comments in nturl2path.py

2014-05-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +patch Added file: http://bugs.python.org/file35208/d7f128afe9db.diff ___ Python tracker ___ __

[issue21160] incorrect comments in nturl2path.py

2014-05-10 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file35208/d7f128afe9db.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue21165] Optimize str.translate() for replacement with substrings and non-ASCII strings

2014-05-10 Thread Ezio Melotti
Ezio Melotti added the comment: Aren't there similar benchmarks in the benchmarks repo? If not, would it be reasonable to add this there? -- nosy: +ezio.melotti stage: -> patch review ___ Python tracker __

[issue6305] islice doesn't accept large stop values

2014-05-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Alok, have you signed a contributor agreement? -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue21467] IDLE icon not included in Windows installer

2014-05-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Steve, I am *really* glad you caught this. We obviously need a new test somewhere that would have caught this before the release. How is the installer tested now? Is it run and the installed python tested with the test suite? If so, a new idle test that runs i

[issue20815] ipaddress unit tests PEP8

2014-05-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Marking as low priority. This patch really isn't worth applying. If someone wants to starting contributing, there are plenty of useful things to do (such as adding docstrings to elementtree). I don't want to encourage non-substantive shallow code churn an

[issue21439] Numerous minor issues in Language Reference

2014-05-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: I also don't agree with most of the typographic changes and, like Éric find some of the grammar changes to be pedantic. The OP refers to his own changes as "editorial infelicities". This should have been a warning sign. The OP further warns, "I have been

[issue21470] Better seeding for the random module

2014-05-10 Thread Raymond Hettinger
New submission from Raymond Hettinger: The default seeding for the random module currently used 32 bytes from urandom() to create the initial state of the random number generator. This is far less than the number of possible states 2**19937-1. Changing the default seed to a larger number will

[issue21470] Better seeding for the random module

2014-05-10 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue20115] NUL bytes in commented lines

2014-05-10 Thread ita1024
ita1024 added the comment: Do not touch that please The null bytes are already rejected when forbidden by the encoding (utf-8 for example). Null byte characters in comments are perfectly valid in ISO8859-1 encoding, and a few scripts depend on them: http://ftp.waf.io/pub/release/waf-1.7.1

[issue20115] NUL bytes in commented lines

2014-05-10 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue19767] pathlib: iterfiles() and iterdirs()

2014-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch with the proposed API. The API for convenience: def files(self, include_symlinks=True): """Iterate over the regular files in this directory. """ def subdirs(self, include_symlinks=True): """Iterate over the subdir

[issue19767] pathlib: iterfiles() and iterdirs()

2014-05-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue21306] PEP 466: backport hmac.compare_digest

2014-05-10 Thread Donald Stufft
Donald Stufft added the comment: The attached patch looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue21221] Minor struct_time documentation bug

2014-05-10 Thread Rose Ames
Changes by Rose Ames : -- keywords: +patch Added file: http://bugs.python.org/file35211/tm_isdst.patch ___ Python tracker ___ ___ Pyth

[issue21188] Broken link

2014-05-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue21221] Minor struct_time documentation bug

2014-05-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > .. 0 when it is not. -1 indicates that .. It does not read well when the sentence starts with a number. Consider rephrasing as "The value of -1 .." or something like that. -- ___ Python tracker

[issue21198] Minor tarfile documentation bug

2014-05-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> needs patch type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue20977] pyflakes: undefined "ctype" in 2 except blocks in the email module

2014-05-10 Thread Rose Ames
Rose Ames added the comment: It looks like these are just typos, recording defects to ctype objects when it should be disp_header and cte_header? Apologies if it's more complicated than that. -- keywords: +patch nosy: +superluser Added file: http://bugs.python.org/file35212/undefined_

[issue21470] Better seeding for the random module

2014-05-10 Thread Tim Peters
Tim Peters added the comment: +1, although it could really use a comment explaining that 2500 bytes was chosen to be >= the Twister's 19937 internal bits of state. Otherwise it looks as arbitrary as 32 did ;-) -- nosy: +tim.peters ___ Python tracke

[issue20872] dbm/gdbm/ndbm close methods are not document

2014-05-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> docs@python components: +Documentation keywords: +easy nosy: +docs@python stage: -> needs patch type: -> enhancement ___ Python tracker _

[issue21470] Better seeding for the random module

2014-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure it is good practice to read that many bytes from /dev/urandom. Quoting the Linux man page for /dev/urandom: The kernel random-number generator is designed to produce a small amount of high-quality seed material to seed a cryptograph

[issue21470] Better seeding for the random module

2014-05-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue21470] Better seeding for the random module

2014-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Also, the repletion rate of the entropy pool seems quite slow actually (around 10 bytes per second?). -- ___ Python tracker ___ ___

[issue21470] Better seeding for the random module

2014-05-10 Thread Donald Stufft
Donald Stufft added the comment: "Depleting the entropy pool" is sort of a nonsense idea that /dev/random has. Nobody should ever be worried about it and nobody should ever use /dev/random. The manpage is wrong and has continued to be wrong because of historical reasons and the people involved

[issue21470] Better seeding for the random module

2014-05-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: http://www.2uo.de/myths-about-urandom/ -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue21467] IDLE icon not included in Windows installer

2014-05-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yes, by all means, commit it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue21470] Better seeding for the random module

2014-05-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue21467] IDLE icon not included in Windows installer

2014-05-10 Thread Steve Dower
Steve Dower added the comment: Currently it's an entirely manual process, which is something I intend to work on for 3.5 and beyond. As far as post-mortem on this issue goes, Martin would have found it as well, since I was doing exactly what he said he normally does. The "real" fix seems to al

[issue21467] IDLE icon not included in Windows installer

2014-05-10 Thread Steve Dower
Steve Dower added the comment: > Yes, by all means, commit it. Obviously I spent too long writing my last comment :) Pushed. -- ___ Python tracker ___ _

[issue21467] IDLE icon not included in Windows installer

2014-05-10 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue21425] Interactive interpreter doesn't flush stderr prompty

2014-05-10 Thread eryksun
eryksun added the comment: The patch fixes `python 2>&1 | cat.exe` for me on Windows, where cat.exe is from GnuWin32. The tests also pass. It looks like failing would entail hanging until a timeout. -- nosy: +eryksun ___ Python tracker