[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/packages/urllib3/connection.py#L172

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 available in configure
sed -e "s,@EXENAME@,.../INSTALL/py3km/bin/python3.5dm," < 
./Misc/python-config.in >python-config.py
# Replace makefile compat. variable references with shell script compat. ones;  
-> 
sed -e 's,\$(\([A-Za-z0-9_]*\)),\$\{\1\},g' < Misc/python-config.sh 
>python-config
# On Darwin, always use the python version of the script, the shell
# version doesn't use the compiler customizations that are provided
# in python (_osx_support.py).
if test `uname -s` = Darwin; then \
cp python-config.py python-config; \
fi
Traceback (most recent call last):
  File "./Parser/asdl_c.py", line 1312, in 
main(args[0], dump_module)
  File "./Parser/asdl_c.py", line 1251, in main
if not asdl.check(mod):
  File ".../cpython/Parser/asdl.py", line 183, in check
v = Check()
  File ".../cpython/Parser/asdl.py", line 140, in __init__
super().__init__()
TypeError: super() takes at least 1 argument (0 given)
"""

Python installation is 2.7 (originally 2.5 at the system level, but recent 
build changes broke that), no Py3 available.

--
nosy: +scoder

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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#index-25

Affects all versions, but with a different wrong link in each one, as follows:
Python 2.7: https://docs.python.org/2/reference/datamodel.html#index-25
Python 3.2: https://docs.python.org/3.2/reference/datamodel.html#index-21
Python 3.3: https://docs.python.org/3.3/reference/datamodel.html#index-22
Python 3.4: https://docs.python.org/3.4/reference/datamodel.html#index-22
Python 3.5: https://docs.python.org/3.5/reference/datamodel.html#index-22

The del statement is in each case documented at 
https://docs.python.org/[version number]/reference/simple_stmts.html#del.

--
assignee: docs@python
components: Documentation
messages: 218217
nosy: apteris, docs@python
priority: normal
severity: normal
status: open
title: General Index link to del statement is wrong
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
>>> nonsense
Traceback (most recent call last):
  File "", line 1, in 
ZeroDivisionError: division by zero
>>> 
Traceback (most recent call last):
  File "", line 1, in 
NameError: name 'nonsense' is not defined
>>>

--
components: +Interpreter Core -Windows
nosy: +pitrou
stage:  -> needs patch
title: Python 3 pipe handling breaks python mode in emacs on Windows -> 
Interactive interpreter doesn't flush stderr prompty
versions: +Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/flush_stderr.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, but since I've never actually had a patch accepted 
I know exactly why. I have a few more changes coming that affect/improve 
PCBuild and tools\msi, but I'm happy to keep creating issues and patches if 
that's the right way to make these changes. On the other hand, if someone wants 
to give me commit rights and say "just go for it in these dirs" (in my new role 
as build manager for 2.7/3.5+) I'm okay with that too.)

--
components: IDLE, Installation, Windows
files: idleico.diff
keywords: patch
messages: 218220
nosy: benjamin.peterson, loewis, steve.dower, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE icon not included in Windows installer
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file35207/idleico.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 will produce a random stream of exceptions and data, as 
the library flips out. This happens with the connection being constantly used 
over the time period.

The problem occurs approximately 2 hours after the initial connection is 
established, and happens after approximately the same amount of time each run. 
The below connection was initialised at 22:03:27 and broke at 23:55:58.

Workaround is pretty simple: kill the connection and reinitialise it. Calling 
quit() will fail, however, with a series of random exceptions produced, because 
quit() attempts to send a QUIT command to the broken socket.

Tested on Ubuntu 13.10 (which fails) and Windows 8.1, which does not appear to 
have the same problem - I'm unable to replicate it on Win8.1.

--

2014-05-10 23:55:58,937 - ERROR - nntp error: 
<ɀ\udcd9?\udc95\udcf6Mo\udcdd0\udcb9\udcb9P0/)\udce4\udcbeBo\udc90q\udcb52\udc97\udcd7\udcf7f\udcacŸ\udcfa<

\udceaO2cC\udc92V\udcc1\udcc1ذ\ud,\udcdd\udcf1(\udc82>\udcbb\udc906Z4Ft<\udceeD\udcb5\udc9d\udcba\udcb5\udca8\udccaEk\udcfa\udcb6\udcc8\udcc1\udcf4yԫ\udce6\udccf\udcd8\udcc9_\udcf9c$\udc8cc֟c_B\udca9\udceefudcecsr\udcc1\udced�{\udc90\udca1\udcb2\udc81\udce0I\udc91\udcfeD\udceeE\udcd3\udcf6$\udccfbd\udcec"]\udcb0\udc9a\udc8cf6\udcfa\udcbf\udcea\udcb3h:S\udcbc\udc8dG\udca6t\udc85\udcc6(\udcf2\udce0Kb\udcbe\udcb8j\\udc94\udc85B-\udc9dL+le\udcad/.\udc87\udcbbtv\udc89!\udc8f/\udcf9_\udce0
 \udcad\udc98\udcc0\udcc40T\udcc21\udcd3\udcebȳ
\udcbc@\udcf5mG\udcba\udca0\udcc2]۲LUخ\udcc0\udcc*\udce1,H6\udcccja\udcf9h\udc97f\udc95\udc9c\udce3\udc88%\udca7\udc860\udcfb\udc83\udca2\udca1\udccfH\udcd3Uxߴ\udce2\udc86өY\udcad\udcbb\udcd7\udcf7\udca7W㌘\udcf6\udcbf\udce9AI1P\udc8d\udc959^\udcc5\udcc3n\udce5xY\udcfb\udc87\udcfdp\udcb4nT\udca9\udc97\udcfbp\udc8aTkkb\udc90C\udcaa\udc8aq\udcddUm\udcd5sJsS7l\udcdb`\udc88hU\udcf6

--
components: Library (Lib)
messages: 218223
nosy: James.Meneghello
priority: normal
severity: normal
status: open
title: NNTPLib connections become corrupt after long periods of activity
versions: Python 3.2, Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 critical: just do it.

--
nosy: +tim.golden, zach.ware

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 is (I 
should probably get on there as well).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 manually call modified() to update the 
mtime().

>>> from urllib.robotparser import RobotFileParser
>>> rp = RobotFileParser('http://en.wikipedia.org/robots.txt')
>>> rp.can_fetch('UbiCrawler', 'http://en.wikipedia.org/index.html')
True
>>> rp.read()
>>> rp.can_fetch('UbiCrawler', 'http://en.wikipedia.org/index.html')
False
>>> rp.mtime()
0
>>> rp.modified()
>>> rp.mtime()
1399740268.628497

Suggested improvements:

1) Trigger internal calls to modified() every time the parse is modified using 
read() or add_entry().  That would assure that mtime() actually reflects the 
modification time.

2) Raise an exception or return False whenever can_fetch() is called and the 
mtime() is zero (meaning that the parser has not be initialized with any rules).

--
components: Library (Lib)
messages: 218226
nosy: rhettinger
priority: normal
severity: normal
status: open
title: Hazards in robots.txt parser
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 corresponding 
flags: [list of flags], for the entire regular expression." So, my report is 
invalid.

Just to give some context, I hit this when porting fnmatch.py to MicroPython 
(http://micropython.org/), which doesn't use native CPython SRE, but instead 
system PCRE. Well, it would be nice if stdlib maintained kind of compatibility 
with original PCRE semantics, but that's kinda wishful thinking, we'll work it 
around on our side. 

Closing this.

--
resolution:  -> works for me
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 idlelib/idle.(bat, py, pyw) with subprocess, 
detects startup errors, and cleanly shuts down the subprocces, would cover the 
installer.

3.4 is not directly affected because 3.4 Tools/msi/msi.py does not include the 
patched section
 if dir=="Icons":
 lib.glob("*.gif")
+lib.glob("*.ico")
 lib.add_file("idle.icns")
and .gif and .icns are not in the file. Perhaps the change matches a change in 
the build process.

However, new tests should go on all versions.

--
stage:  -> test needed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 and eats developer time for no benefit.

>From my point of view, the "benefit" is actually negative because these sort 
>of micro-rearrangements clutter the "annotate" history and because it makes it 
>more difficult to apply substantive patches across multiple versions of Python.

--
priority: normal -> low

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 reading the Language Reference Manual in 
order to teach myself Python 3" which explains why Éric has found " a few 
misunderstandings of Python".

If the OP cares enough to prepare a chapter by chapter patch (as suggested by 
Terry), I would be happy to review them one by one, applying any that are 
actual readability improvements.

--
assignee: zach.ware -> rhettinger
nosy: +rhettinger
priority: normal -> low
versions:  -Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 cover the state space.  This 
gives better security and better randomness by not using just a subset of the 
possible states.

The downside is slightly slower default initialization.

--
assignee: rhettinger
files: better_seed.diff
keywords: patch
messages: 218238
nosy: rhettinger
priority: normal
severity: normal
status: open
title: Better seeding for the random module
type: security
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35209/better_seed.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.16

Parsing the commented lines is also likely to slow down the parser, so keep 
your hands of it please! There are too many regressions already! 
http://bugs.python.org/issue21086

--
nosy: +ita1024

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 subdirectories in this directory.
"""

--
Added file: http://bugs.python.org/file35210/path_subdirs_files.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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_ctypes.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 cryptographic pseudo-random number 
gen‐
   erator  (CPRNG).   It  is  designed  for  security, not speed, and is 
poorly
   suited to generating large amounts of random data.   Users  should  be  
very
   economical  in  the amount of seed material that they read from 
/dev/urandom
   (and /dev/random); unnecessarily reading large quantities of data from  
this
   device will have a negative impact on other users of the device.

The (default?) entropy pool size under Linux is 4096 bytes, so reading 2500 
bytes will deplete more than half of it, IIUC. Example:

$ cat /proc/sys/kernel/random/poolsize 
4096
$ cat /proc/sys/kernel/random/entropy_avail 
516
$ python -c "import os; os.urandom(300)"
$ cat /proc/sys/kernel/random/entropy_avail 
160

--
nosy: +neologix, pitrou

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 not wanting to admit a wart.

Anything that relies on /dev/random isn't well written and is going to randomly 
block for bad reasons. We can pull as many bytes as we want off /dev/urandom 
and just forget that /dev/random or /proc/sys/kernel/random/entropy_avail even 
exists.

--
nosy: +dstufft

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 already exist, which is why this only affects 2.7. 
Installers are just one of those things that are difficult to maintain in a 
project with lots of contributors, so the more automation the better. (It also 
helps to have a designated owner, so they can constantly bug people about it 
without having to feel like they're being annoying... I've learned this in my 
day job, where I own most of my team's installers.)

My commit rights are set up and working. Is anyone opposed to me pushing this 
fix?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com