[issue11145] '%o' % user-defined instance

2014-11-20 Thread Armin Rigo
Armin Rigo added the comment: If buf contains -00 and the type is 'o', then it will be modified in-place even if the string is shared. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11145

[issue21963] 2.7.8 backport of Issue1856 (avoid daemon thread problems at shutdown) breaks ceph

2014-11-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the explanation. I confess I don't fully understand the change in 7741d0dd66ca, but it does seem to have the side effect of not actually allowing exit while there are outstanding daemon threads not hitting Python. That's a bit weird, as that

[issue11145] '%o' % user-defined instance

2014-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Heh, it's getting really funny. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11145 ___ ___

[issue22878] PEP 477 (ensurepip backport to 2.7.9): make install and make altinstall integration

2014-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 07f4b6ecd04a by Ned Deily in branch '2.7': Issue 22878: PEP 477 - make install and make altinstall integration https://hg.python.org/cpython/rev/07f4b6ecd04a -- nosy: +python-dev ___ Python tracker

[issue22878] PEP 477 (ensurepip backport to 2.7.9): make install and make altinstall integration

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

[issue17852] Built-in module _io can loose data from buffered files at exit

2014-11-20 Thread Armin Rigo
Armin Rigo added the comment: Victor: there is the GIL, you don't need any locking. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17852 ___ ___

[issue22827] Backport ensurepip to 2.7 (PEP 477)

2014-11-20 Thread Ned Deily
Ned Deily added the comment: The configure and Makefile integration backport has been committed in Issue22878. Unlike with Python 3, the default is to not install pip unless specifically enabled at configure time or on the make altinstall or make install targets. I think that about wraps up

[issue22906] PEP 479: Change StopIteration handling inside generators

2014-11-20 Thread Chris Angelico
New submission from Chris Angelico: See PEP for full details. Attached is POC patch: behaviour is altered globally (rather than respecting a __future__ directive), and minimal changes are made elsewhere to make the test suite mostly pass (test_generators does not - it'll need more

[issue22827] Backport ensurepip to 2.7 (PEP 477)

2014-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: Yes, the missing link targets are part of the pending docs changes Donald mentioned above. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22827 ___

[issue21718] sqlite3 cursor.description seems to rely on incomplete statement parsing for detection

2014-11-20 Thread Tom Tanner
Tom Tanner added the comment: ping I'd appreciate a review of my patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21718 ___ ___

[issue22894] unittest.TestCase.subTest causes all subsequent tests to be skipped in failfast mode

2014-11-20 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22894 ___ ___ Python-bugs-list

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

2014-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset b9775a92c1d0 by Nick Coghlan in branch 'default': Issue #22869: Split pythonrun into two modules https://hg.python.org/cpython/rev/b9775a92c1d0 -- nosy: +python-dev ___ Python tracker

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

2014-11-20 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22869 ___

[issue21356] Support LibreSSL (instead of OpenSSL): make RAND_egd optional

2014-11-20 Thread koobs
Changes by koobs koobs.free...@gmail.com: -- nosy: +koobs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21356 ___ ___ Python-bugs-list mailing

[issue21356] Support LibreSSL (instead of OpenSSL): make RAND_egd optional

2014-11-20 Thread Bernard Spil
Bernard Spil added the comment: EGD was only necessary for some commercial UNIX systems, versions that needed it all reached end of life. It no longer makes sense to have any code referring to it. EGD needed untilOS release date IRIX6.5.19 feb 2003 Solaris

[issue22907] Misc/python-config.sh.in: ensure sed invocations only match beginning of strings

2014-11-20 Thread Peter Korsgaard
New submission from Peter Korsgaard: The build/real prefix handling using sed breaks if build != real and the standard include / lib directories are used ($prefix/include and $prefix/lib). E.G. prefix_build=/usr, libdir=$prefix/lib, includedir=$prefix/include. If this gets installed with make

[issue21356] Support LibreSSL (instead of OpenSSL): make RAND_egd optional

2014-11-20 Thread STINNER Victor
STINNER Victor added the comment: We don't drop feature in minor releases, we are working hard to maintain the backward compatibility. We may only disable RAND_egd if Python is compiled/linked to LibreSSL. So the check should probably be dynamic. --

[issue22827] Backport ensurepip to 2.7 (PEP 477)

2014-11-20 Thread Donald Stufft
Donald Stufft added the comment: I've attached a patch which I believe updates the 2.x docs with what 3.x has. I ran ``make html`` and the only errors I got were in relation to pyporting which I don't believe has anything to do with this ticket. If someone can sanity check this for me I can

[issue22850] Backport ensurepip Windows installer changes to 2.7

2014-11-20 Thread Donald Stufft
Donald Stufft added the comment: Is this ticket able to be closed now or is there more to do? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22850 ___

[issue22827] Backport ensurepip to 2.7 (PEP 477)

2014-11-20 Thread Donald Stufft
Donald Stufft added the comment: Note: I removed the references to pyvenv in these docs because 2.7 doesn't have that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22827 ___

[issue22827] Backport ensurepip to 2.7 (PEP 477)

2014-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: The prior to version 3.4 question should be updated to talk about prior to version 2.7.9 instead. For Python 2, we may want to explicitly mention installing virtualenv (either with pip or the system package manager), as there's no pyvenv provided by default,

[issue22827] Backport ensurepip to 2.7 (PEP 477)

2014-11-20 Thread Donald Stufft
Donald Stufft added the comment: Updated the docs patch to address Nick's comments. -- Added file: http://bugs.python.org/file37236/pep-477-docs-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22827

[issue14044] IncompleteRead error with urllib2 or urllib.request -- fine with urllib, wget, or curl

2014-11-20 Thread Laurento Frittella
Laurento Frittella added the comment: Even if forcing the HTTP/1.0 workaround works it can end up in weird issues, especially if used in something more than a small script, like the one I tried to describe in this issue report[1] for the requests python library. [1]

[issue22827] Backport ensurepip to 2.7 (PEP 477)

2014-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: Looks good to me! :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22827 ___ ___ Python-bugs-list mailing list

[issue22827] Backport ensurepip to 2.7 (PEP 477)

2014-11-20 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- nosy: -michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22827 ___ ___

[issue22895] test failure introduced by the fix for issue #22462

2014-11-20 Thread Matthias Klose
Matthias Klose added the comment: do we have something like skipIfInstalled? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22895 ___ ___

[issue22827] Backport ensurepip to 2.7 (PEP 477)

2014-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8bc29f5ebeff by Donald Stufft in branch '2.7': Issue #22827: Backport the new Distributing and Instaling Docs from 3.4 https://hg.python.org/cpython/rev/8bc29f5ebeff -- nosy: +python-dev ___ Python

[issue22908] ZipExtFile in zipfile can be seekable

2014-11-20 Thread Iridium Yang
New submission from Iridium Yang: The ZipExtFile class in zipfile module does not provide a seek method like GzipFile. As a result, it is hard to manipulate files without extract all the content. For example, a very large tar file compressed with zip. The TarFile module can operate on file

[issue21718] sqlite3 cursor.description seems to rely on incomplete statement parsing for detection

2014-11-20 Thread R. David Murray
R. David Murray added the comment: It's more a matter of my finding time to fully research the problem and solution than an issue of reviewing the patch itself. There is also potential cross-talk with other patches involving sqllite statement parsing. Since the sqlite wrapper doesn't

[issue22850] Backport ensurepip Windows installer changes to 2.7

2014-11-20 Thread Steve Dower
Steve Dower added the comment: It's done. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22850 ___

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

2014-11-20 Thread Michael Foord
Michael Foord added the comment: One way would be to have an _main.py and have main.py import * (or equivalent) from it. We can't get rid of unittest.main being an alias for TestProgram - that's been around forever. -- ___ Python tracker

[issue22860] unittest TestProgram hard to extend

2014-11-20 Thread Michael Foord
Michael Foord added the comment: TestProgram is an abomination. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22860 ___ ___ Python-bugs-list

[issue22827] Backport ensurepip to 2.7 (PEP 477)

2014-11-20 Thread Donald Stufft
Changes by Donald Stufft don...@stufft.io: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22827 ___

[issue22669] Test_venv fails when _ctypes is not available.

2014-11-20 Thread Donald Stufft
Donald Stufft added the comment: Assigning this to myself, it'll get fixed when pip 6.0 is released and I upgrade ensurepip to it. -- assignee: vinay.sajip - dstufft ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22669

[issue19693] make altinstall make install behaviour differs from make install

2014-11-20 Thread Donald Stufft
Donald Stufft added the comment: So here's a thought: pip does have a CLI flag --force-reinstall which will uninstall and then reinstall whatever is being installed. If we modified things so that ensurepip supported this flag (or always used it with --upgrade) then it would fix this issue.

[issue22895] test failure introduced by the fix for issue #22462

2014-11-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: do we have something like skipIfInstalled? No. There's no exact way of checking for an installed Python, but one possibility is to test whether a given directory exists (e.g. Modules). -- ___ Python tracker

[issue22908] ZipExtFile in zipfile can be seekable

2014-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm -1 on adding the seek method with linear complexity. This looks as attractive nonsense to me. It would be better just make TarFile working with non-seekable streams. -- nosy: +serhiy.storchaka ___ Python

[issue22906] PEP 479: Change StopIteration handling inside generators

2014-11-20 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: -- nosy: +gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22906 ___ ___ Python-bugs-list

[issue22906] PEP 479: Change StopIteration handling inside generators

2014-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset dd19add74b21 by Guido van Rossum in branch 'default': PEP 479: Add link to issue 22906. https://hg.python.org/peps/rev/dd19add74b21 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue22909] [argparse] Using parse_known_args, unknown arg with space in value is interpreted as first positional arg

2014-11-20 Thread Tab Atkins Jr.
New submission from Tab Atkins Jr.: If using parse_known_args() to get argument pass-through, and one of the unknown arguments has a value with a space in it (even if quoted!), the entire unknown argument (key=value) will be interpreted as the value of the first positional argument instead.

[issue22894] unittest.TestCase.subTest causes all subsequent tests to be skipped in failfast mode

2014-11-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch stage: - patch review versions: +Python 3.5 Added file: http://bugs.python.org/file37238/subtests_failfast.patch ___ Python tracker rep...@bugs.python.org

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

2014-11-20 Thread Mark Lawrence
Mark Lawrence added the comment: I'm not absolutely sure but I think this has broken the Windows builds with the following being typical of numerous errors. 2main.obj : error LNK2019: unresolved external symbol _Py_Finalize referenced in function _Py_Main 2main.obj : error LNK2019: unresolved

[issue22796] Support for httponly/secure cookies reintroduced lax parsing behavior

2014-11-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you, I've committed the patch to 3.5 now. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22796

[issue22796] Support for httponly/secure cookies reintroduced lax parsing behavior

2014-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset a065ab1c67a8 by Antoine Pitrou in branch 'default': Issue #22796: HTTP cookie parsing is now stricter, in order to protect against potential injection attacks. https://hg.python.org/cpython/rev/a065ab1c67a8 -- nosy: +python-dev

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

2014-11-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks. The Windows build files (Visual Studio project files) typically have to be updated when a new C file is added to the source tree. Probably one of our Windows experts can help with that :-) -- nosy: +steve.dower, tim.golden, zach.ware status:

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

2014-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 31fd106bb68a by Steve Dower in branch 'default': Issue #22869: Add pylifecycle.c/.h files to pythoncore project. https://hg.python.org/cpython/rev/31fd106bb68a -- ___ Python tracker

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

2014-11-20 Thread Steve Dower
Steve Dower added the comment: Fixed. (I was conveniently sitting waiting for other things to build...) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22869 ___

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

2014-11-20 Thread Mark Lawrence
Mark Lawrence added the comment: 2 getbuildinfo.c 2pythonrun.obj : error LNK2005: _PyOS_CheckStack already defined in pylifecycle.obj 2 Creating library C:\cpython\PCbuild\python35.lib and object C:\cpython\PCbuild\python35.exp 2C:\cpython\PCbuild\python35.dll : fatal error LNK1169: one

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

2014-11-20 Thread Steve Dower
Steve Dower added the comment: Looks like a few Windows only things were missed. Can you track them down and get them into a patch? I'm out of time to do more right now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22869

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

2014-11-20 Thread Mark Lawrence
Mark Lawrence added the comment: Out of my depth I'm afraid, sorry :( -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22869 ___ ___

[issue21963] 2.7.8 backport of Issue1856 (avoid daemon thread problems at shutdown) breaks ceph

2014-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4ceca79d1c63 by Antoine Pitrou in branch '2.7': Issue #21963: backout issue #1856 patch (avoid crashes and lockups when https://hg.python.org/cpython/rev/4ceca79d1c63 -- nosy: +python-dev ___ Python

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2014-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4ceca79d1c63 by Antoine Pitrou in branch '2.7': Issue #21963: backout issue #1856 patch (avoid crashes and lockups when https://hg.python.org/cpython/rev/4ceca79d1c63 -- ___ Python tracker

[issue21963] 2.7.8 backport of Issue1856 (avoid daemon thread problems at shutdown) breaks ceph

2014-11-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've reverted the original changeset. I still believe it is likely to be an issue on the ceph side, though, and the changes remain in 3.x. -- resolution: - fixed stage: needs patch - resolved status: open - closed type: - behavior

[issue21356] Support LibreSSL (instead of OpenSSL): make RAND_egd optional

2014-11-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: We're still willing to fix this if someone tells us how to test for LibreSSL in C code. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21356 ___

[issue21775] shutil.copytree() crashes copying to VFAT on Linux: AttributeError: 'PermissionError' object has no attribute 'winerror'

2014-11-20 Thread Greg Ward
Greg Ward added the comment: Would it be possible to write a unit test, maybe using unittest.mock to mock most parts? Good idea! Turns out this was quite straightforward. The test patch is: --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -1,6 +1,7 @@ # Copyright (C) 2003

[issue21775] shutil.copytree() crashes copying to VFAT on Linux: AttributeError: 'PermissionError' object has no attribute 'winerror'

2014-11-20 Thread Greg Ward
Greg Ward added the comment: I'll commit on branch 3.4 and merge to default. Whoops, never mind. Looks like I don't have push permission to hg.python.org after all. It's been 8 years since my last commit, so I shouldn't complain. So... can someone with commit privs please hg pull -r

[issue22910] test_pydoc test_synopsis_sourceless is a flaky test

2014-11-20 Thread Gregory P. Smith
New submission from Gregory P. Smith: When running a parallel make -j12 test, test_pydoc fails reasonably often with: test test_pydoc failed -- Traceback (most recent call last): File /.../Lib/test/test_pydoc.py, line 556, in test_synopsis_sourceless synopsis = pydoc.synopsis(filename)

[issue21872] LZMA library sometimes fails to decompress a file

2014-11-20 Thread Akira Li
Akira Li added the comment: @Esa changing the buffer size helps with some bad files but lzma module still fails on some files. I've uploaded decompress-example-files.py script that demonstrates it. -- nosy: +akira Added file: http://bugs.python.org/file37239/decompress-example-files.py

[issue21872] LZMA library sometimes fails to decompress a file

2014-11-20 Thread Akira Li
Changes by Akira Li 4kir4...@gmail.com: Added file: http://bugs.python.org/file37240/decompress-example-files.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21872 ___

[issue21872] LZMA library sometimes fails to decompress a file

2014-11-20 Thread Akira Li
Changes by Akira Li 4kir4...@gmail.com: Removed file: http://bugs.python.org/file37239/decompress-example-files.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21872 ___