[issue24598] asyncio: add background task detecting reference cycles

2015-07-10 Thread STINNER Victor
STINNER Victor added the comment: Python 3.4 is able to break reference cycles even if an object part of the cycle has a destructor. See the PEP 442. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24598

[issue24567] random.choice IndexError due to double-rounding

2015-07-10 Thread STINNER Victor
STINNER Victor added the comment: As I wrote, glib switch from floats to integers to generate random numbers. To provide reproductible random numbers, an environment variable was added to select the old PRNG. Anyway, if we modify random.py, the generated numbers should be different, no? To me,

[issue24601] bytes and unicode splitlines() methods differ on what is a line break

2015-07-10 Thread Martin Panter
Martin Panter added the comment: * Issue 7643: Originally a complaint about the difference, but was closed after adding more differences! * Issue 22232: Documentation bug, but with some discussion on changing the API. Maybe a duplicate? * Issue 22233: Email and HTTP message parsing bug related

[issue24567] random.choice IndexError due to double-rounding

2015-07-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: As I wrote, glib switch from floats to integers to generate random numbers. And as I wrote, this would be accepted in a feature release. Not necessarily a bugfix release. -- ___ Python tracker

[issue23601] use small object allocator for dict key storage

2015-07-10 Thread Julian Taylor
Julian Taylor added the comment: Your benchmarks are not affected by this change see the other issue. They are also not representative of every workload out there. I can at least see the argument why you didn't want to put the other variant of this change in as it made the code a tiny bit

[issue18291] codecs.open interprets FS, RS, GS as line ends

2015-07-10 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- title: codecs.open interprets space as line ends - codecs.open interprets FS, RS, GS as line ends ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18291

[issue22232] str.splitlines splitting on non-\r\n characters

2015-07-10 Thread Martin Panter
Martin Panter added the comment: The main documentation has been updated and Issue 12855 has been closed. What is left to do here, considering this is marked as a documenation bug? Just modify the doc strings, as Terry suggested in https://bugs.python.org/issue22232#msg225766? --

[issue24567] random.choice IndexError due to double-rounding

2015-07-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: I propose to rewrite Random.randint() in random.py. If that would give a different sequence of random numbers, I'm not sure that's acceptable in a bugfix release. Raymond can shed a light. -- stage: - needs patch versions: -Python 3.2, Python 3.3,

[issue24603] New update of OpenSSL

2015-07-10 Thread Friedrich Spee von Langenfeld
New submission from Friedrich Spee von Langenfeld: The developers of OpenSSL have published a new update. It fixes a bug marked as severe (https://www.openssl.org/news/secadv_20150709.txt). It seems that we are using a vulnerable version. Could someone who knows the relevant files' locations

[issue24603] New update of OpenSSL

2015-07-10 Thread STINNER Victor
STINNER Victor added the comment: Yes, read the discussion on python-dev: https://mail.python.org/pipermail/python-dev/2015-July/140706.html Christian Heimes wrote: 1.0.2c is only used in 3.5b3. The production builds are either using 1.0.2a or 1.0.1j. Should I understand that only Windows

[issue24604] problem to install scipy manually on Centos 6

2015-07-10 Thread cbaud
New submission from cbaud: I'm working with the entreprise distribution Centos 6, unfortunatly the package pyhton3 proposed by the package manager yum isn't working. That why I had to install python manually, for that purpose I used pip3. Once again I had a problem with pip tool to install

[issue24599] urllib URLopener().open https url returns 501 Not Implemented when https_proxy env var is http://

2015-07-10 Thread Stefano Mazzucco
Stefano Mazzucco added the comment: Martin, thanks for elaborating my thoughts! I have dug I bit deeper in Python2's urllib code with pdb, and I think I have narrowed the issue down to what open_http does. In my example code, replacing opener.open(url) with opener.open_http(url) gives the

[issue24599] urllib URLopener().open https url returns 501 Not Implemented when https_proxy env var is http://

2015-07-10 Thread Stefano Mazzucco
Stefano Mazzucco added the comment: Martin, I have applied the patch https://bugs.python.org/file31201 to my Python2.7.10 installation and seem to work OK. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24599

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2015-07-10 Thread Martin Richard
Martin Richard added the comment: I'm not sure I know how to do this correctly: I lack of experience both with openssl C API and writing python modules in C. It may be more flexible, but unless the key is protected/crypted somehow, one would need a string or bytes buffer to hold the key when

[issue24605] segmentation fault at asciilib_split_char.lto_priv

2015-07-10 Thread josch
New submission from josch: Hi, sometimes (but not reliably reproducibly, one has to run it a few times) I get a segmentation fault when running the following networkx based Python code on large input graphs:

[issue24572] IDLE Text Output With ASCII Control Codes Not Working

2015-07-10 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - duplicate stage: - resolved status: open - closed superseder: - IDLE does not display \b backspace correctly. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24572

[issue14373] C implementation of functools.lru_cache

2015-07-10 Thread Ned Deily
Ned Deily added the comment: I've also seen a crash in lru_cache_tp_traverse but with the 3.5.0b3 release build for the OS X 64-bit/32-bit installer. I just stumbled across the segfault by bringing up the interactive interpreter and typing import ssl. After a lot of playing around, I

[issue24570] IDLE Autocomplete and Call Tips Do Not Pop Up on OS X with ActiveTcl 8.5.18

2015-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: More tests might help pin down the bug. Here is the complete config for completions. [AutoComplete] enable=True popupwait=2000 [AutoComplete_cfgBindings] force-open-completions=Control-Key-space [AutoComplete_bindings] autocomplete=Key-Tab

[issue24606] segfault caused by nested calls to map()

2015-07-10 Thread Ned Deily
Ned Deily added the comment: Process 51270 launched: './python' (x86_64) Process 51270 stopped * thread #1: tid = 0x5c8677, 0x0001000c1af8 python`_PyObject_Alloc(use_calloc=0, ctx=unavailable, nelem=unavailable, elsize=unavailable) + 24 at obmalloc.c:1170, queue = 'com.apple.main-thread',

[issue24606] segfault caused by nested calls to map()

2015-07-10 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: -ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24606 ___ ___ Python-bugs-list mailing list

[issue24606] segfault caused by nested calls to map()

2015-07-10 Thread Mark Lawrence
Mark Lawrence added the comment: FTR I can reproduce this on Windows 8.1 with 3.4.3 and 3.3.5 but not 2.7.10 or 2.6.6. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24606

[issue24572] IDLE Text Output With ASCII Control Codes Not Working

2015-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Idle expands tabs to spaces, if asked to do so. It otherwise passes user code generated chars to tkinter, which passes them on to tk, which eventually passes them on to the OS gui widgets. I will say more on the existing issue. -- nosy: +terry.reedy

[issue24606] segfault caused by nested calls to map()

2015-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks as a duplicate of issue14010. -- nosy: +serhiy.storchaka resolution: - duplicate stage: - resolved status: open - closed superseder: - deeply nested filter segfaults ___ Python tracker

[issue14010] deeply nested filter segfaults

2015-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue24606 for another instance of this in map(). -- versions: +Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14010 ___

[issue24606] segfault caused by nested calls to map()

2015-07-10 Thread David Lukeš
New submission from David Lukeš: The following program makes Python 3.4.3 crash with a segmentation fault: ``` #!/usr/bin/env python3 import operator N = 50 l = [0] for i in range(N): l = map(operator.add, l, [1]) print(list(l)) ``` I suppose the problem is that there are too many

[issue24605] segmentation fault at asciilib_split_char.lto_priv

2015-07-10 Thread STINNER Victor
STINNER Victor added the comment: It looks more like a bug in networkx, than a bug in Python itself. networkx has probably issues with reference counter, concurrency (threads), or things like that. I'm unable to reproduce the crash on Python 3.4 (system binary from Fedora 22) or Python 3.6

[issue24603] Update OpenSSL to 1.0.2d in Windows and OS X installer

2015-07-10 Thread Ned Deily
Ned Deily added the comment: The Windows installer and the 32-bit-only OS X installer both have local copies of OpenSSL. At the moment, only the 3.5.0 betas have been released with 1.0.2. Setting to release blocker priority for 3.5.0b4. -- nosy: +benjamin.peterson, larry, ned.deily

[issue24567] random.choice IndexError due to double-rounding

2015-07-10 Thread Tim Peters
Tim Peters added the comment: Anyway, if we modify random.py, the generated numbers should be different, no? Not in a bugfix release. The `min()` trick changes no results whatsoever on a box that doesn't do double-rounding. On a box that does do double-rounding, the only difference in

[issue24567] random.choice IndexError due to double-rounding

2015-07-10 Thread STINNER Victor
STINNER Victor added the comment: Ok, it looks like most people are in favor of min(). Can anyone propose a patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24567 ___

[issue24599] urllib URLopener().open https url returns 501 Not Implemented when https_proxy env var is http://

2015-07-10 Thread Martin Panter
Martin Panter added the comment: Perhaps you might be able to test out the patch https://bugs.python.org/file31201 to see if that fixes your problem? Though there is a good chance the patch needs updating, since it is fairly old. -- ___ Python

[issue24605] segmentation fault at asciilib_split_char.lto_priv

2015-07-10 Thread STINNER Victor
STINNER Victor added the comment: Oh, networkx looks to be written in pure Python. You should search for a module implemented in C. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24605

[issue24603] Update OpenSSL to 1.0.2d in Windows and OS X installer

2015-07-10 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- components: +Macintosh nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24603 ___

[issue24599] urllib URLopener().open https url returns 501 Not Implemented when https_proxy env var is http://

2015-07-10 Thread Lukas Wunner
Lukas Wunner added the comment: Thank you Martin for referencing my patch. It still applies cleanly with --fuzz=0 to 2.7.10. Would be awesome if this fix would finally get merged. -- nosy: +l ___ Python tracker rep...@bugs.python.org

[issue24604] problem to install scipy manually on Centos 6

2015-07-10 Thread STINNER Victor
STINNER Victor added the comment: Sorry, this is the bug tracker of the Python language. See the http://www.scipy.org/ website to report bugs on scipy, thank you. -- nosy: +haypo resolution: - not a bug status: open - closed ___ Python tracker

[issue23601] use small object allocator for dict key storage

2015-07-10 Thread Stefan Behnel
Stefan Behnel added the comment: Your benchmarks are not affected by this change see the other issue. Then you ran them, I assume? Could you show the output here that you got? They are also not representative of every workload out there. Certainly not, but they do provide a certain variety

[issue14373] C implementation of functools.lru_cache

2015-07-10 Thread Stefan Behnel
Stefan Behnel added the comment: I'm witnessing a crash in the C implementation during garbage collection. Interestingly, it only shows in the Py3.6 branch, not in Py3.5 (both latest). Here's the gdb session: Program received signal SIGSEGV, Segmentation fault. lru_cache_tp_traverse

[issue24608] Certain inputs to wave.open() result in readframes returning a str instead of bytes

2015-07-10 Thread Christophe Biocca
New submission from Christophe Biocca: Basically, some (malformed or empty?) WAV strings result in the empty string being returned when calling readframes. That string cannot be passed back to writeframes() without causing a crash, since it does not implement the buffer interface. --

[issue24607] standardize sh module

2015-07-10 Thread Vitali Lovich
New submission from Vitali Lovich: The subprocess module provides a good foundation of basic functionality. However, anything moderately complex becomes cumbersome to write. Additionally, it has pitfalls that people frequently overlook. People then often either resort to hand-rolling their

[issue24583] set.update(): Crash when source set is changed during merging

2015-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: intermediary.diff LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24583 ___ ___ Python-bugs-list

[issue14373] C implementation of functools.lru_cache

2015-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: self-root.next and self-root.prev should never be NULL. Could you please provide minimal example of code that produces a crash? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373

[issue22232] str.splitlines splitting on non-\r\n characters

2015-07-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: If this isn't already mentioned in 2 to 3 porting notes it is worth highlighting there. code which uses a str in python 2 and still uses a str in python 3 is now splitting on many more characters. That seems to be the source of bugs like issue22233.

[issue24601] bytes and unicode splitlines() methods differ on what is a line break

2015-07-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: hah, i should've searched the tracker first. looks like the other open issues cover this. -- resolution: - duplicate status: open - closed superseder: - str.splitlines splitting on non-\r\n characters versions: +Python 2.7, Python 3.4, Python 3.5,

[issue22233] http.client splits headers on non-\r\n characters

2015-07-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: The obvious fix seems to be to not use splitlines but explicitly split on the allowed characters for ASCII based protocols and formats that only want \r and \n to be considered. I don't think we can rightfully change the unicode splitlines behavior.

[issue24608] Certain inputs to wave.open() result in readframes returning a str instead of bytes

2015-07-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9e035639516c by Serhiy Storchaka in branch '3.4': Issue #24608: chunk.Chunk.read() now always returns bytes, not str. https://hg.python.org/cpython/rev/9e035639516c New changeset 64b2d154a5db by Serhiy Storchaka in branch '3.5': Issue #24608:

[issue24608] Certain inputs to wave.open() result in readframes returning a str instead of bytes

2015-07-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka stage: - needs patch versions: +Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24608

[issue24608] Certain inputs to wave.open() result in readframes returning a str instead of bytes

2015-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report Christophe. -- resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24608

[issue24567] random.choice IndexError due to double-rounding

2015-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are other affected methods: randrange(), randint(), shuffle(), sample(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24567 ___

[issue14373] C implementation of functools.lru_cache

2015-07-10 Thread Stefan Behnel
Stefan Behnel added the comment: It's not actually my own code using the lru_cache here. From a quick grep over the code tree, the only potentially related usage I found was in Python's fnmatch module, on the _compile_pattern() function. Commenting that out then made the crash go away, so this

[issue24607] standardize sh module

2015-07-10 Thread Skip Montanaro
Skip Montanaro added the comment: While it's an interesting library, my fear is that people will start shelling out to all sorts of things which Python already has builtin. One of the examples on the github site was showing how to call ls. Another example invoked wc. neither of those is

[issue14373] C implementation of functools.lru_cache

2015-07-10 Thread Tim Graham
Changes by Tim Graham timogra...@gmail.com: -- nosy: -Tim.Graham ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___ ___ Python-bugs-list

[issue14373] C implementation of functools.lru_cache

2015-07-10 Thread Stefan Behnel
Stefan Behnel added the comment: test_fnmatch.py also passes, BTW. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___ ___ Python-bugs-list

[issue24602] SRE_SEARCH Integer Underflow

2015-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This was fixed in issue18684. -- resolution: - out of date stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24602

[issue24609] shutil.copytree fails with symlinks to directories when symlink=False

2015-07-10 Thread Thomas Kluyver
New submission from Thomas Kluyver: shutil.copytree behaves differently with symlinks depending on the 'symlinks' parameter. If this is True, symlinks are replicated in the destination. If False, the contents of the targets are copied to the destination. With symlinks=False, it currently

[issue21697] shutil.copytree() handles symbolic directory incorrectly

2015-07-10 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- assignee: - berker.peksag nosy: +takluyver versions: +Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21697 ___

[issue24609] shutil.copytree fails with symlinks to directories when symlink=False

2015-07-10 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report and the patch. This is a duplicate of issue 21697. Could you please attach the patch in that issue? -- nosy: +berker.peksag resolution: - duplicate stage: - resolved status: open - closed superseder: - shutil.copytree() handles

[issue21697] shutil.copytree() handles symbolic directory incorrectly

2015-07-10 Thread Thomas Kluyver
Thomas Kluyver added the comment: Here's my patch (I submitted the duplicate issue). I think it's functionally the same as Eduardo's, but it also adds a test. -- Added file: http://bugs.python.org/file39893/shutil_copytree_symlink_dir.patch ___

[issue24607] standardize sh module

2015-07-10 Thread R. David Murray
R. David Murray added the comment: Indeed. If you want shell scripting, use a shell script. The advantage of python scripting is exactly that you are using non-shell, with explicit control of what gets substituted where rather than the shell's implicit rules. Regardless our our opinions,