[issue19060] docs: note that subprocess doesn't replace os.exec*

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d2ad2e04dc9d by Benjamin Peterson in branch '3.4':
merge 3.3 (#19060)
http://hg.python.org/cpython/rev/d2ad2e04dc9d

--

___
Python tracker 

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



[issue20681] asyncio: New error handling API

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3e592444da2f by Yury Selivanov in branch '3.4':
asyncio: New error handling API. Issue #20681.
http://hg.python.org/cpython/rev/3e592444da2f

--

___
Python tracker 

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



[issue20814] tracemalloc example - Pretty Top

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 027ca483a7e5 by Victor Stinner in branch '3.4':
Close #20814: doc: Fix "Pretty top" example of tracemalloc
http://hg.python.org/cpython/rev/027ca483a7e5

--

___
Python tracker 

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 149be7000c11 by Brett Cannon in branch '3.4':
Issue #20763: Fix importlib.machinery.PathFinder to support
http://hg.python.org/cpython/rev/149be7000c11

--

___
Python tracker 

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



[issue20465] Upgrade SQLite to 3.8.3 with 3.4.0 Windows and OS X installers

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7260dffad495 by Ned Deily in branch '3.4':
Issue #20465: Update OS X installer build to use SQLite 3.8.0.1.
http://hg.python.org/cpython/rev/7260dffad495

New changeset 1f922e9742b7 by Ned Deily in branch '3.4':
Issue #20465: fix NEWS typo (it's 3.8.3.1)
http://hg.python.org/cpython/rev/1f922e9742b7

New changeset 9be3bf7b5b8d by Martin v. Löwis in branch '3.4':
Issue #20465: Update Windows installer to SQLite 3.8.3.1.
http://hg.python.org/cpython/rev/9be3bf7b5b8d

--

___
Python tracker 

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



[issue20221] #define hypot _hypot conflicts with existing definition

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 033d686af4c1 by Zachary Ware in branch '3.4':
Issue #20221: Removed conflicting (or circular) hypot definition
http://hg.python.org/cpython/rev/033d686af4c1

--

___
Python tracker 

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



[issue20484] calling pydoc.Helper()('modules') in the test suite sometimes causes failures

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7cfb3db36ec6 by Eric Snow in branch '3.4':
Issue #20484: Disable the 2 remaining "modules" tests in test_pydoc.
http://hg.python.org/cpython/rev/7cfb3db36ec6

--

___
Python tracker 

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



[issue20682] test_create_ssl_unix_connection() of test_asyncio failed on "x86 Tiger 3.x"

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9aac931d7bf5 by Victor Stinner in branch '3.4':
Issue #20682: test_asyncio, _basetest_create_connection() checks also the
http://hg.python.org/cpython/rev/9aac931d7bf5

New changeset 472a4988489e by Victor Stinner in branch '3.4':
Close #20682: Fix UNIX sockets tests of test_asyncio on Mac OS X Tiger
http://hg.python.org/cpython/rev/472a4988489e

New changeset f38a7d61c4c2 by Victor Stinner in branch '3.4':
Issue #20682: Oops, fix test_create_connection() of test_asyncio (fix my 
previous commit)
http://hg.python.org/cpython/rev/f38a7d61c4c2

--

___
Python tracker 

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



[issue20128] Re-enable test_modules_search_builtin() in test_pydoc

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7cfb3db36ec6 by Eric Snow in branch '3.4':
Issue #20484: Disable the 2 remaining "modules" tests in test_pydoc.
http://hg.python.org/cpython/rev/7cfb3db36ec6

--

___
Python tracker 

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



[issue20609] Always running kill_python breaks building x64 on 32-bit Windows machine

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6b4225607cf1 by Zachary Ware in branch '3.4':
Issue #20609: Merge with 3.3.
http://hg.python.org/cpython/rev/6b4225607cf1

--

___
Python tracker 

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



[issue20667] asyncio: KqueueEventLoopTests.test_read_pty_output() of test_asyncio hangs on OpenBSD 5.4

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5f1a4782184f by Victor Stinner in branch '3.4':
Issue #20667: test_asyncio: Skip KqueueEventLoopTests.test_read_pty_output() on
http://hg.python.org/cpython/rev/5f1a4782184f

New changeset add2c31ecfb1 by Victor Stinner in branch '3.4':
Issue #20667: KqueueEventLoopTests.test_read_pty_output() hangs also on OpenBSD 
5.5.
http://hg.python.org/cpython/rev/add2c31ecfb1

--

___
Python tracker 

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



[issue20706] asyncio.docs: Fix wording in 'this method returns a coroutine object'

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0f26daac85bb by Yury Selivanov in branch '3.4':
asyncio.docs: Improve wordings; add a note to the Coroutines section. Issue 
#20706
http://hg.python.org/cpython/rev/0f26daac85bb

--

___
Python tracker 

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



[issue20625] Argument names in __annotations__ are not mangled for functions defined inside class scope

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4d7c3cbd8515 by Yury Selivanov in branch '3.4':
Mangle __parameters in __annotations__ dict properly. Issue #20625.
http://hg.python.org/cpython/rev/4d7c3cbd8515

New changeset 3bced76d2706 by Victor Stinner in branch '3.4':
Issue #20625: Fix compilation issue
http://hg.python.org/cpython/rev/3bced76d2706

New changeset e5cde3fd7c74 by Benjamin Peterson in branch '3.4':
update magic number for #20625
http://hg.python.org/cpython/rev/e5cde3fd7c74

--

___
Python tracker 

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



[issue20649] Minor grammatical mistake for asyncio dev docs

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 38516b2ffe92 by Victor Stinner in branch '3.4':
Close #20649: Fix typo in asyncio doc. Patch written by Brett Cannon.
http://hg.python.org/cpython/rev/38516b2ffe92

--
stage: needs patch -> committed/rejected

___
Python tracker 

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



[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 27b738209a60 by Benjamin Peterson in branch '3.4':
merge backout for #20621
http://hg.python.org/cpython/rev/27b738209a60

--

___
Python tracker 

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



[issue20896] test_ssl.test_get_server_certificate() should use PROTOCOL_SSLv23, not PROTOCOL_SSLv3

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9b91c23f071c by Benjamin Peterson in branch '3.4':
merge 3.3 (#20896)
http://hg.python.org/cpython/rev/9b91c23f071c

--

___
Python tracker 

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



[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fa5127cdfe9d by Yury Selivanov in branch '3.4':
inspect.signature: Check for function-like objects before builtins. Issue #17159
http://hg.python.org/cpython/rev/fa5127cdfe9d

--

___
Python tracker 

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



[issue19255] Don't "wipe" builtins at shutdown

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5d3b9862f1bc by Serhiy Storchaka in branch '3.4':
Issue #19255: The builtins module is restored to initial value before
http://hg.python.org/cpython/rev/5d3b9862f1bc

New changeset a0bc45a50e43 by Serhiy Storchaka in branch '3.4':
Temporary silence test broken by issue19255.
http://hg.python.org/cpython/rev/a0bc45a50e43

New changeset af8f856db136 by Serhiy Storchaka in branch '3.4':
Issue #19255: Clear error after failed PyDict_SetItem() on shutdown.
http://hg.python.org/cpython/rev/af8f856db136

--

___
Python tracker 

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



[issue20786] inspect.getargspec() returns wrong answer with property.__delete__()

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7ad0e19cc682 by Yury Selivanov in branch '3.4':
Issue #20786: Fix signatures for dict.__delitem__ and property.__delete__
http://hg.python.org/cpython/rev/7ad0e19cc682

--

___
Python tracker 

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



[issue20594] [PATCH] fail to compile posixmodule due to name clash with posix_close

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fd49c1d2fd6c by Benjamin Peterson in branch '3.4':
merge 3.3 (#20594)
http://hg.python.org/cpython/rev/fd49c1d2fd6c

--

___
Python tracker 

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



[issue20695] test_urllibnet.urlretrieveNetworkTests fails due to new python.org website

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a5247ea950d5 by Benjamin Peterson in branch '3.4':
merge 3.3 (#20695)
http://hg.python.org/cpython/rev/a5247ea950d5

--

___
Python tracker 

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



[issue20495] test_read_pty_output() hangs on FreeBSD 7.2 buildbot

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2cf25865fc66 by Victor Stinner in branch '3.4':
Issue #20495: Skip test_read_pty_output() of test_asyncio on FreeBSD older than
http://hg.python.org/cpython/rev/2cf25865fc66

--

___
Python tracker 

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



[issue19466] Clear state of threads earlier in Python shutdown

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9ce58a73b6b5 by Victor Stinner in branch '3.4':
Issue #20526, #19466: Revert changes of issue #19466 which introduces a
http://hg.python.org/cpython/rev/9ce58a73b6b5

--

___
Python tracker 

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



[issue20493] asyncio: OverflowError('timeout is too large')

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 41c6c066feb2 by Victor Stinner in branch '3.4':
Issue #20493: Document that asyncio should not exceed one day
http://hg.python.org/cpython/rev/41c6c066feb2

--

___
Python tracker 

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



[issue20696] asyncio.docs: Document StreamReader an other streams module APIs

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset dc8331171f14 by Yury Selivanov in branch '3.4':
asyncio.docs: Improve documentation of Streams. Issue #20696.
http://hg.python.org/cpython/rev/dc8331171f14

--

___
Python tracker 

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



[issue20748] 3.4rc2 MSI uninstallation leaves behind ensurepip _uninstall .pyc

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b018a33c7db4 by Martin v. Löwis in branch '3.4':
Issue #20748: Uninstalling pip does not leave behind the pyc of
http://hg.python.org/cpython/rev/b018a33c7db4

--

___
Python tracker 

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



[issue20599] test_cleanup() of test_builtin failed

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3d5154fa8413 by Serhiy Storchaka in branch '3.4':
Try to fix test_cleanup (issue #20599).
http://hg.python.org/cpython/rev/3d5154fa8413

New changeset c978dffb95ac by Victor Stinner in branch '3.4':
Issue #20599: Force ASCII encoding for stdout in test_cleanup() of test_builtin
http://hg.python.org/cpython/rev/c978dffb95ac

New changeset 1fb37d2d7d9d by Victor Stinner in branch '3.4':
Issue #20599: Don't clear environment in test_cleanup() of test_builtin
http://hg.python.org/cpython/rev/1fb37d2d7d9d

--

___
Python tracker 

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



[issue19744] test_venv and installation fail if SSL/TLS is not available

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cd39d4cab680 by Nick Coghlan in branch '3.4':
Issue #19744: Handle missing SSL/TLS in ensurepip
http://hg.python.org/cpython/rev/cd39d4cab680

--

___
Python tracker 

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



[issue20757] 3.4rc2 Traceback on Windows pip uninstall

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6d0994805e18 by Nick Coghlan in branch '3.4':
Close #20757: return success for skipped pip uninstall
http://hg.python.org/cpython/rev/6d0994805e18

--

___
Python tracker 

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



[issue20641] Python installer needs elevated rights to install pip

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 31c7dc7ccbaa by Martin v. Löwis in branch '3.4':
Issue #20641: Run custom actions with the NoImpersonate flag to support UAC.
http://hg.python.org/cpython/rev/31c7dc7ccbaa

--

___
Python tracker 

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



[issue20839] pkgutil.get_loader throws deprecation warning due to internal deprecation

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a8b30fd6ee4f by Nick Coghlan in branch '3.4':
Close #20839: pkgutil.find_loader now uses importlib.util.find_spec
http://hg.python.org/cpython/rev/a8b30fd6ee4f

--

___
Python tracker 

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



[issue20694] asyncio.docs: Document subprocess_exec and subprocess_shell

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2dfc383b4907 by Yury Selivanov in branch '3.4':
asyncio.docs: Document subprocess_exec and subprocess_shell. Issue #20694.
http://hg.python.org/cpython/rev/2dfc383b4907

--

___
Python tracker 

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



[issue20505] Remove resolution from selectors and granularity from asyncio

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4f1df287392c by Victor Stinner in branch '3.4':
Issue #20505: Use even shorter sleep in test_timeout_rounding() to make the
http://hg.python.org/cpython/rev/4f1df287392c

New changeset 6733d9dfffbb by Victor Stinner in branch '3.4':
Issue #20505: BaseEventLoop uses again the resolution of the clock to decide if
http://hg.python.org/cpython/rev/6733d9dfffbb

New changeset 375e4f9c9732 by Victor Stinner in branch '3.4':
Issue #20505: Fix TestLoop, set the clock resolution
http://hg.python.org/cpython/rev/375e4f9c9732

New changeset e44ff3b7a497 by Victor Stinner in branch '3.4':
Issue #20505: Improve debug info in asyncio event loop
http://hg.python.org/cpython/rev/e44ff3b7a497

New changeset af840e781700 by Victor Stinner in branch '3.4':
Issue #20505: Oops, only print debug info if selector.select(timeout) took less
http://hg.python.org/cpython/rev/af840e781700

New changeset 2faf4b7c52ed by Victor Stinner in branch '3.4':
Issue #20505: use also the monotonic time to decide if asyncio debug traces
http://hg.python.org/cpython/rev/2faf4b7c52ed

New changeset 702b20fa7af2 by Victor Stinner in branch '3.4':
Issue #20505: Remove debug code
http://hg.python.org/cpython/rev/702b20fa7af2

--

___
Python tracker 

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



[issue20566] asyncio as_completed() thrashes adding and removing callbacks

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b52113fb58a5 by Guido van Rossum in branch '3.4':
asyncio: Change as_completed() to use a Queue, to avoid O(N**2) behavior. Fixes 
issue #20566.
http://hg.python.org/cpython/rev/b52113fb58a5

--

___
Python tracker 

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



[issue20653] Pickle enums by name

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 010723a7bd25 by Ethan Furman in branch '3.4':
Close issue20653: allow Enum subclasses to override __reduce_ex__
http://hg.python.org/cpython/rev/010723a7bd25

New changeset 737f2be5e80c by Ethan Furman in branch '3.4':
Close issue20653: improve functional API docs; minor code changes
http://hg.python.org/cpython/rev/737f2be5e80c

New changeset 2c5a5fa0692c by Ethan Furman in branch '3.4':
Issue20653: fix ReST for Enum
http://hg.python.org/cpython/rev/2c5a5fa0692c

--

___
Python tracker 

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



[issue20655] test_subprocess is not executed in python -m test.test_asyncio

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b22b83ea719d by Victor Stinner in branch '3.4':
Issue #20655: Fix test_asyncio, run also subprocess tests. Patch written by
http://hg.python.org/cpython/rev/b22b83ea719d

--

___
Python tracker 

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



[issue14512] Pydocs module docs server not working on Windows.

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fa34ea4e9e47 by Martin v. Löwis in branch '3.4':
Issue #14512: Launch pydoc -b instead of pydocgui.pyw on Windows.
http://hg.python.org/cpython/rev/fa34ea4e9e47

--

___
Python tracker 

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



[issue16251] pickle special methods are looked up on the instance rather than the type

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2514a577c7cb by Benjamin Peterson in branch '3.4':
look up __getnewargs__ and __getnewargs_ex__ on the object type (#16251)
http://hg.python.org/cpython/rev/2514a577c7cb

--

___
Python tracker 

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



[issue20939] test_geturl of test_urllibnet fails with 'https://www.python.org/' != 'http://www.python.org/'

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7f4fba171a40 by Ned Deily in branch '3.4':
Issue #20939: merge from 3.3
http://hg.python.org/cpython/rev/7f4fba171a40

--

___
Python tracker 

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



[issue20711] inspect.getfullargspec does not correctly work with builtin module-level functions

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ed1059f5507b by Yury Selivanov in branch '3.4':
inspect: Fix getfullargspec to support builtin module-level functions. Issue 
#20711
http://hg.python.org/cpython/rev/ed1059f5507b

--

___
Python tracker 

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



[issue20619] lineno and col_offset attributes of _ast.arg objects are not set

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3c01209ab697 by Benjamin Peterson in branch '3.4':
set line and column numbers for keyword-only arg nodes (closes #20619)
http://hg.python.org/cpython/rev/3c01209ab697

--

___
Python tracker 

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



[issue20568] Pass --default-install to ensurepip in the Windows installers

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5d190cca2f47 by Nick Coghlan in branch '3.4':
Close #20568: install unversioned pip command on Windows
http://hg.python.org/cpython/rev/5d190cca2f47

New changeset 3f8ca67bde4d by Martin v. Löwis in branch '3.4':
Issue #20568: Fix typo in pip option.
http://hg.python.org/cpython/rev/3f8ca67bde4d

--

___
Python tracker 

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



[issue20652] Example in asyncio task gives resource warning

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 36005fe2ab9b by Victor Stinner in branch '3.4':
Close #20652: asyncio doc: close the event loop in run_forever() example. Fix
http://hg.python.org/cpython/rev/36005fe2ab9b

--

___
Python tracker 

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



[issue20710] Make pydoc consistent about bound methods

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b2ee3fe195e2 by Larry Hastings in branch '3.4':
Issue #20710: The pydoc summary line no longer displays the "self" parameter
http://hg.python.org/cpython/rev/b2ee3fe195e2

--

___
Python tracker 

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



[issue20199] status of module_for_loader and utils._module_to_load

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1640e3b7def6 by R David Murray in branch '3.4':
whatsnew: importlib deprecations.
http://hg.python.org/cpython/rev/1640e3b7def6

--

___
Python tracker 

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



[issue20526] python: Modules/gcmodule.c:379: visit_decref: Assertion `((gc)->gc.gc_refs >> (1)) != 0' failed.

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9ce58a73b6b5 by Victor Stinner in branch '3.4':
Issue #20526, #19466: Revert changes of issue #19466 which introduces a
http://hg.python.org/cpython/rev/9ce58a73b6b5

--

___
Python tracker 

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



[issue20616] Add tracemalloc.Traceback.format() method

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 132821b65e22 by Victor Stinner in branch '3.4':
Issue #20616: Add a format() method to tracemalloc.Traceback.
http://hg.python.org/cpython/rev/132821b65e22

--

___
Python tracker 

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



[issue20785] Missing symbols in Python27.lib (Windows 64bit)

2014-03-16 Thread Alexey Pavlov

Alexey Pavlov added the comment:

For peoples who interesting in supporting building Python with mingw-w64 
compiler I can get some links.

More than a year ago we start providing our own builds of Python 2.7+3.3 
builded with mingw-w64 compiler.
I'm developer of MSYS2 project - modern fork of Cygwin with MSYS functionality 
+ pacman package manager (ported from Arch Linux).

You can easily build your own Python with mingw-w64 using our patches that 
include patches from Roumen Petrov (rpetrov) and our own.

Python-2.7.6 patches:
https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-python2

Python-3.3.3 patches:
https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-python3

Also you can get prebuilded python and other mingw-w64 packages using MSYS2 
with pacman.

Regards,
Alexey.

--
nosy: +Alexey.Pavlov

___
Python tracker 

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



[issue20265] Bring Windows docs up to date

2014-03-16 Thread Nick Coghlan

Nick Coghlan added the comment:

Sorry I haven't had a chance to review this myself, but it would also be good 
if we could mention the free "Python Tools for Visual Studio" addon that 
Microsoft publish (https://pytools.codeplex.com/). That may be better handled 
as a separate patch/issue though.

(My apologies if that has already been mentioned in the updated docs)

--
nosy: +ncoghlan

___
Python tracker 

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



[issue14332] Better explain "junk" concept in difflib doc

2014-03-16 Thread Alba Magallanes

Alba Magallanes added the comment:

I would like to help with this issue. I'm attaching a patch for it.

--
keywords: +patch
nosy: +albamagallanes
Added file: http://bugs.python.org/file34451/issue14332.patch

___
Python tracker 

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



[issue20953] heap-buffer-overflow in obmalloc.c:987

2014-03-16 Thread Jeffrey Walton

New submission from Jeffrey Walton:

This came from Python 3.3.5 downloaded from thePython download page (). 

The issue occurred while compiling with Clang 3.4 using the address sanitizer 
(-fsanitize=address)

/usr/local/bin/clang -fsanitize=address   -Xlinker -export-dynamic -o python 
Modules/python.o libpython3.3m.a -ldl  -lutil /usr/local/ssl/lib/libssl.a 
/usr/local/ssl/lib/libcrypto.a -ldl   -lm  
./python -E -S -m sysconfig --generate-posix-vars
=
==24064==ERROR: AddressSanitizer: heap-buffer-overflow on address 
0x61904020 at pc 0x4ed4b2 bp 0x7fff80fff010 sp 0x7fff80fff008
READ of size 4 at 0x61904020 thread T0
#0 0x4ed4b1 in PyObject_Free Python-3.3.5/./Objects/obmalloc.c:987
#1 0x7a2141 in code_dealloc Python-3.3.5/./Objects/codeobject.c:359
#2 0x620c00 in PyImport_ImportFrozenModuleObject 
Python-3.3.5/./Python/import.c:1098
#3 0x620d5c in PyImport_ImportFrozenModule 
Python-3.3.5/./Python/import.c:1114
#4 0x63fd07 in import_init Python-3.3.5/./Python/pythonrun.c:206
#5 0x63f636 in _Py_InitializeEx_Private 
Python-3.3.5/./Python/pythonrun.c:369
#6 0x681d77 in Py_Main Python-3.3.5/./Modules/main.c:648
#7 0x4e6894 in main Python-3.3.5/././Modules/python.c:62
#8 0x2abf9a525eac in __libc_start_main 
/home/aurel32/eglibc/eglibc-2.13/csu/libc-start.c:244
#9 0x4e664c in _start (Python-3.3.5/./python+0x4e664c)

AddressSanitizer can not describe address in more detail (wild memory access 
suspected).
SUMMARY: AddressSanitizer: heap-buffer-overflow 
Python-3.3.5/./Objects/obmalloc.c:987 PyObject_Free
Shadow bytes around the buggy address:
  0x0c327fff87b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c327fff87c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c327fff87d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c327fff87e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c327fff87f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c327fff8800: fa fa fa fa[fa]fa fa fa fa fa fa fa fa fa fa fa
  0x0c327fff8810: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c327fff8820: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c327fff8830: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c327fff8840: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c327fff8850: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:   00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone: fa
  Heap right redzone:fb
  Freed heap region: fd
  Stack left redzone:f1
  Stack mid redzone: f2
  Stack right redzone:   f3
  Stack partial redzone: f4
  Stack after return:f5
  Stack use after scope: f8
  Global redzone:f9
  Global init order: f6
  Poisoned by user:  f7
  ASan internal: fe
==24064==ABORTING
make: *** [pybuilddir.txt] Error 1

--
components: Build
messages: 213788
nosy: Jeffrey.Walton
priority: normal
severity: normal
status: open
title: heap-buffer-overflow in obmalloc.c:987
versions: Python 3.3

___
Python tracker 

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



[issue20937] test_socket: buffer overflow in sock_recvmsg_guts

2014-03-16 Thread Jeffrey Walton

Jeffrey Walton added the comment:

This might be relevant. It showed up while building Python 3.3.5 from sources.

/usr/local/bin/clang -fsanitize=undefined -fPIC -Wno-unused-result -DNDEBUG -g 
-fwrapv -O3 -Wall -Wstrict-prototypes -I./Include -I. -IInclude 
-I/usr/local/include -IPython-3.3.5/./Include -IPython-3.3.5/. -c 
Python-3.3.5/./Modules/socketmodule.c -o 
build/temp.linux-x86_64-3.3Python-3.3.5/./Modules/socketmodule.o
Python-3.3.5/./Modules/socketmodule.c:1951:74: warning: 
  comparison of unsigned expression < 0 is always false
  [-Wtautological-compare]
if (cmsgh == NULL || msg->msg_control == NULL || msg->msg_controllen < 0)

--

___
Python tracker 

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



[issue20898] Missing 507 response description

2014-03-16 Thread Daniel Andrade Groppe

Daniel Andrade Groppe added the comment:

Here goes the patch once again, this time with the changes to the documentation.

Two files were modified:
1. /Lib/http/client.py
2. /Doc/library/http.client.rst

Hope this helps until a decision is made on how to remove duplicate codes in 
http.clinet and http.server

--
Added file: http://bugs.python.org/file34450/issue20898_with_doc.patch

___
Python tracker 

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



[issue20898] Missing 507 response description

2014-03-16 Thread Daniel Andrade Groppe

Changes by Daniel Andrade Groppe :


Removed file: http://bugs.python.org/file34433/issue20898.patch

___
Python tracker 

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



[issue20906] Issues in Unicode HOWTO

2014-03-16 Thread A.M. Kuchling

Changes by A.M. Kuchling :


--
nosy:  -akuchling

___
Python tracker 

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



[issue20943] configparser - add 'getDict' function

2014-03-16 Thread Łukasz Langa

Łukasz Langa added the comment:

Michael, what you wish is already a part of configparser. Let's use this as an 
example:

>>> p = configparser.ConfigParser()
>>> p.read_string("""
... [one]
... opt=val
... [two]
... num=1
... str=bzz
... bool=true
... """)

When asking for a specific section, you get a SectionProxy object. It has a 
dict-like API but is not a dict:

>>> p['two']

>>> isinstance(p['two'], dict)
False

The reason for that is two-fold: firstly this enables us to make changes made 
on a section object persistent within the main parser. Secondly, this enables 
us to add configparsser-specific functionality (like dynamic interpolation, 
type conversions, etc.):

>>> p['two']['num']
'1'
>>> p['two'].getint('num')
1
>>> p['two']['str'] = 'bool is %(bool)s'
>>> p['two']['str']
'bool is true'
>>> p['two']['bool'] = 'false'
>>> p['two']['str']
'bool is false'

Because the section proxy object follows the dict API very closely, it's 
trivial to convert a section to a dict:

>>> dict(p['two'])
{'str': 'bool is false', 'bool': 'false', 'num': '1'}

Note, however, that this sets in stone interpolations and doesn't provide 
built-in type conversions.

--
assignee:  -> lukasz.langa
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



[issue20906] Issues in Unicode HOWTO

2014-03-16 Thread Graham Wideman

Graham Wideman added the comment:

A further issue regarding "one-to-one mappings".

Article: "Encodings don’t have to be simple one-to-one mappings like Latin-1. 
Consider IBM’s EBCDIC, which was used on IBM mainframes."

I don't think this paragraph is about one-to-one mappings per se. (ie: one 
character to one code.) It seems to be about whether ranges of characters whose 
code values are contiguous in one coding system are also contiguous in another 
coding system. The EBCDIC encoding is still one-to-one, I believe.

The subject of one-chararacter-to-one-code mapping is important (normalization 
etc), though perhaps beyond the current article. But I think the article should 
avoid suggesting that many-to-one or one-to-many scenarios are common.

--

___
Python tracker 

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



[issue20906] Issues in Unicode HOWTO

2014-03-16 Thread Graham Wideman

Graham Wideman added the comment:

> Do you want to provide a patch?

I would be happy to, but I'm not currently set up to create a patch. Also, I 
hoped that an author who has more history with this article would supervise, 
especially where I don't know what the original intent was.

> I find use of the word "narrative" intimidating in the context of a technical 
> documentation.

Agreed. How about "In documentation such as the current article..."

> In general, I find it disappointing that the Unicode HOWTO only gives 
> hexadecimal representations of non-ASCII characters and (almost) never 
> represents them in their true form. This makes things more abstract 
> than necessary.

I concur with reducing unnecessary abstraction. No sure what you mean by "true 
form". Do you mean show the glyph which the code point represents? Or the 
sequence of bytes? Or display the code point value in decimal? 

> > This is a vague claim. Probably what was intended was: "Many 
> > Internet standards define protocols in which the data must 
> > contain no zero bytes, or zero bytes have special meaning."  
> > Is this actually true? Are there "many" such standards?

> I think it actually means that Internet protocols assume an ASCII-compatible 
> encoding (which UTF-8 is, but not UTF-16 or UTF-32 - nor EBCDIC :-)).

Ah -- yes that makes sense.

> > --> "Non-Unicode code systems usually don't handle all of 
> > the characters to be found in Unicode."

> The term *encoding* is used pervasively when dealing with the transformation 
> of unicode to/from bytes, so I find it confusing to introduce another term 
> here 
> ("code systems"). I prefer the original sentence.

I see that my revision missed the target. There is a problem, but it is wider 
than this sentence.

One of the most essential points this article should make clear is the 
distinction between older schemes with a single mapping:

Characters <--> numbers in particular binary format. (eg: ASCII)

... versus Unicode with two levels of mapping...

Characters <--> code point numbers <--> particular binary format of the number 
data and sequences thereof.

In the older schemes, "encoding" referred to the one mapping: chars <--> 
numbers in particular binary format. In Unicode, "encoding" refers only to the 
mapping: code point numbers <--> binary format. It does not refer to the chars 
<--> code point mapping. (At least, I think that's the case. Regardless, the 
two mappings need to be rigorously distinguished.)

On review, there are many points in the article that muddy this up.  For 
example, "Unicode started out using 16-bit characters instead of 8-bit 
characters". Saying "so-an-so-bit characters" about Unicode, in the current 
article, is either wrong, or very confusing.  Unicode characters are associated 
with code points, NOT with any _particular_ bit level representation.

If I'm right about the preceding, then it would be good for that to be spelled 
out more explicitly, and used consistently throughout the article. (I won't try 
to list all the examples of this problem here -- too messy.)

--

___
Python tracker 

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



[issue20951] SSLSocket.send() returns 0 for non-blocking socket

2014-03-16 Thread Nikolaus Rath

Nikolaus Rath added the comment:

More info on twisted: it uses PyOpenSSL rather than the stdlib ssl module, so 
it's not affected at all.

--

___
Python tracker 

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



[issue20898] Missing 507 response description

2014-03-16 Thread Filip Malczak

Filip Malczak added the comment:

If we're getting out of original scope, then I wonder... Maybe we should keep 
only standard status codes here? If not, which should we support, and which 
not? What about custom Spring 420 Method Failure?

One way to clean up mess here is to create some dictionaries called Http09, 
Http10, Http11, but also Nginx, Spring, InternetDraft, etc - they would hold 
codes specific to some standard or extension (and they should be incremental, 
so Http11 would hold only those codes that came with HTTP 1.1, not any of HTTP 
1.0 codes).

Also, we should provide function responses_mapping which should take 
dictionaries with code mappings, so one may use it like 
responses_mapping(Http09, Http10, Http11, Spring). Module attribute responses 
should be initialized to responses_mapping(Http09, Http10, Http11), so it would 
contain standard codes only.

responses_mapping (we should probably consider different name) should take any 
number of dicts, merge them and return merging result. Additionally, I think it 
should overwrite merged values, so if we call it with two dicts, which hold the 
same key - value from last dict with this key should be used. Essentially, it 
is just:
def responses_mapping(*dicts):
out = {}
for d in dicts:
out.update(d)
return out

Now, we would have clean responses dictionary (mentioned in first comment, one 
that started this issue), and possibility to extend responses set with 
different protocol and extension versions.

There may be one problem - many apps and libs (possibly standard python library 
too) may use keys from out of HTTP standard, so this change could break 
backwards compability.

--

___
Python tracker 

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



[issue20951] SSLSocket.send() returns 0 for non-blocking socket

2014-03-16 Thread Nikolaus Rath

Nikolaus Rath added the comment:

Tornado uses SSLSocket.send(), and it looks as if a SSLWantWrite exception is 
not caught but would propagate, so this would probably break.

--

___
Python tracker 

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



[issue20951] SSLSocket.send() returns 0 for non-blocking socket

2014-03-16 Thread Nikolaus Rath

Nikolaus Rath added the comment:

gevent is calling _sslobject.write() directly, so it would not be affected by 
any change.

--

___
Python tracker 

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



[issue20951] SSLSocket.send() returns 0 for non-blocking socket

2014-03-16 Thread Nikolaus Rath

Nikolaus Rath added the comment:

Twisted does not seem to rely on it either (there's no mention of SSLWant* in 
the source at all, and without that, you can't possibly have support for 
non-blocking ssl sockets).

--

___
Python tracker 

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



[issue20896] test_ssl.test_get_server_certificate() should use PROTOCOL_SSLv23, not PROTOCOL_SSLv3

2014-03-16 Thread STINNER Victor

STINNER Victor added the comment:

Benjamin: Could you please mention your change in Misc/NEWS?

Is it ok to change that in Python 3.1 & 3.2? Should the change be mentionned in 
the doc (:versionchanged:)?

--
resolution: fixed -> 
status: closed -> open

___
Python tracker 

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



[issue20951] SSLSocket.send() returns 0 for non-blocking socket

2014-03-16 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> Antoine, do you know that there are frameworks out there using this,
> or is that a guess?

It's just a guess.

--

___
Python tracker 

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



[issue20952] OpenSSL and RDRAND

2014-03-16 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Apart from our Windows binaries, this doesn't seem much of a Python issue. 
Python normally links with whatever the system OpenSSL is.

--
nosy: +loewis

___
Python tracker 

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



[issue20951] SSLSocket.send() returns 0 for non-blocking socket

2014-03-16 Thread Nikolaus Rath

Nikolaus Rath added the comment:

Antoine, do you know that there are frameworks out there using this, or is that 
a guess? asyncio, for example, seems to expect an SSLWantWrite exception as 
well. (it also works with a zero return, but it's not clear from the code if 
that's by design or by a chance).

--

___
Python tracker 

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



[issue20952] OpenSSL and RDRAND

2014-03-16 Thread R. David Murray

Changes by R. David Murray :


--
nosy: +christian.heimes, pitrou

___
Python tracker 

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



[issue20939] test_geturl of test_urllibnet fails with 'https://www.python.org/' != 'http://www.python.org/'

2014-03-16 Thread Curtis Doty

Changes by Curtis Doty :


--
nosy: +GreenKey

___
Python tracker 

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



[issue18624] Add alias for iso-8859-8-i which is the same as iso-8859-8

2014-03-16 Thread R. David Murray

R. David Murray added the comment:

The tests are in test_encodings.py.  It is interesting that the tests pass with 
your patch applied; that indicates that there is a missing test, since we 
should be testing that all of the values in the aliases table are the names of 
existing codecs, and apparently we aren't.

--

___
Python tracker 

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



[issue20896] test_ssl.test_get_server_certificate() should use PROTOCOL_SSLv23, not PROTOCOL_SSLv3

2014-03-16 Thread Curtis Doty

Changes by Curtis Doty :


--
nosy: +GreenKey

___
Python tracker 

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



[issue18624] Add alias for iso-8859-8-i which is the same as iso-8859-8

2014-03-16 Thread R. David Murray

R. David Murray added the comment:

>From python's point of view they are both aliases of iso-8859_8, as discussed 
>in this issue.  Python does not have iso-8859_8-e and i codecs, which you 
>changes to the alias table implies that it does (the target of the entry in 
>the aliases table is the python codec name...and there is only iso8859_8.py, 
>not iso8859_8_E.py or _I.py).

--

___
Python tracker 

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



[issue20898] Missing 507 response description

2014-03-16 Thread R. David Murray

R. David Murray added the comment:

Thanks.  That patch looks good except that it is missing the corresponding 
documentation changes, but...

I just noticed that this table is a partial duplicate of the table in 
http.server.  I suspect this has historical origins, but I don't see any reason 
to maintain the duplication.  I wonder if we should do some refactoring here.  
This is getting a beyond the original scope of this issue, but it seems to me 
that the common stuff used by http.server and http.client (which is mostly in 
http.client, except for the 'explain' messages that are in the http.server 
responses list) could be moved into a 'common' or 'util' module, and imported 
from both, thus reducing the direct coupling between http.server and 
http.client.  (The 'responses' object in http.client would have to be computed 
from the one in this new module, since the http.client one doesn't contain the 
'explain' messages).

--
nosy: +orsenthil
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



[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-16 Thread R. David Murray

R. David Murray added the comment:

Hmm.  Rereading your patch I see that that is what you are trying to do, but I 
find the order of presentation confusing.  I would rather see the text focus on 
the fact that the string is used by send_error, and that the variables are 
filled by default from responses based on the code passed to send_error, and 
that you can also specify an alternate explain message that overrides the one 
from responses when calling send_error.

--

___
Python tracker 

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



[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-16 Thread R. David Murray

R. David Murray added the comment:

My intent here was that the rewrite should specify where the data that gets 
placed into the template when it is used comes from.  That would be 'responses' 
by default, but can be overridden in 'send_error'.

--

___
Python tracker 

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



[issue20952] OpenSSL and RDRAND

2014-03-16 Thread Jeffrey Walton

New submission from Jeffrey Walton:

Some versions of OpenSSL use the RDRAND engine by default. The versions include 
openssl-1.0.1-beta1 through openssl-1.0.1f.

RDRAND has taken some criticism because its essentially unaudited and it could 
be spiked like the Dual-EC generator 
(http://blog.cryptographyengineering.com/2013/09/the-many-flaws-of-dualecdrbg.html).

If the RDRAND engine is in effect, then the application and the library 
(internally) will be using the generator. But some some folks don't want to use 
an unaudited generator.

I'm not sure what the best action is to take. For reading on ways to disable 
the RDRAND engine, see http://seclists.org/fulldisclosure/2013/Dec/142.

--
components: Extension Modules
messages: 213769
nosy: Jeffrey.Walton
priority: normal
severity: normal
status: open
title: OpenSSL and RDRAND

___
Python tracker 

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



[issue20951] SSLSocket.send() returns 0 for non-blocking socket

2014-03-16 Thread Antoine Pitrou

Antoine Pitrou added the comment:

It's probably too late to change this, unfortunately. There are non-blocking 
frameworks and libraries out there relying on the current behaviour.

As for sendall(), it doesn't really make sense on a non-blocking socket anyway.

--

___
Python tracker 

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



[issue17383] Possibly ambiguous phrasing in tutorial/modules#more-on-modules

2014-03-16 Thread Éric Araujo

Éric Araujo added the comment:

Thanks for the patch.

+Enhancing the More on Modules documentation
+

This should not be in the patch.

-Modules can import other modules. It is customary but not required
-to place all import statements at the beginning of a module (or script, 
-for that matter). The imported module names are placed in the importing
-module’s global symbol table.
+Modules can import other modules. It is customary but not required
+to place all import statements at the beginning of a module (or script, 
+for that matter). The imported module names are placed in the importing
+module’s global symbol table.

These lines are not changed, I suspect the characters used for the end of lines 
have been changed by your text editor.  Please fix that (search for “EOL” or 
“hgeol” in the devguide).

+For more on namespace, follow the link :
+http://docs.python.org/2/tutorial/classes.html#python-scopes-and-namespaces

I don’t think adding this link solves the ambiguous phrasing.

--

___
Python tracker 

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



[issue18624] Add alias for iso-8859-8-i which is the same as iso-8859-8

2014-03-16 Thread Kamilla

Kamilla added the comment:

Adding aliases to the set of iso-8859-8.

--
keywords: +patch
Added file: http://bugs.python.org/file34449/adding_aliases.patch

___
Python tracker 

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



[issue20951] SSLSocket.send() returns 0 for non-blocking socket

2014-03-16 Thread R. David Murray

R. David Murray added the comment:

A little hg sleuthing (which I assume you did but I'll record for the record) 
reveals that this was introduced by Bill Jansen in changeset 8a281bfc058d.  
Following the bugs mentioned in the checkin message, it looks like it *might* 
have been related to issue 1251, but there really isn't enough information in 
the issues or the checkin to tell for sure.  It certainly sounds like the 
problems mentioned in that issue may be relevant, though (the disconnection 
between the unecrypted data send and what actually gets placed on the wire and 
when).

I see you already added Bill Jansen to nosy, so that's probably the best bet 
for getting an answer, if we are lucky and he both responds and remembers :)

--
nosy: +r.david.murray

___
Python tracker 

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



[issue16245] Update html.entities.html5 dictionary and parseentities.py

2014-03-16 Thread Éric Araujo

Éric Araujo added the comment:

BTW this message does not mean that the dictionary was just updated, but that 
is was already up to date.

--

___
Python tracker 

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



[issue16245] Update html.entities.html5 dictionary and parseentities.py

2014-03-16 Thread Éric Araujo

Éric Araujo added the comment:

I just ran the script:

$ Tools/scripts/parse_html5_entities.py 
The current dictionary is updated.

This is done :‑)

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



[issue20951] SSLSocket.send() returns 0 for non-blocking socket

2014-03-16 Thread Nikolaus Rath

Nikolaus Rath added the comment:

This is actually seems to be not just an inconvience, but a real bug: since 
SSLSocket.sendall() uses SSLSocket.send() internally, the former method will 
busy-loop when called on a non-blocking socket. 

Note also that the .sendto and .write methods already behave consistently and 
raise SSLWantWrite. It seems it's really just the send() method that is the 
lone outlier.

The attached patch changes ssl.send to raise SSLWantWrite instead of returning 
zero. The  full testsuite still runs fine. I'm a bit sceptical though, because 
the code looks as if send() was deliberately written to catch the SSLWantWrite 
exception and return zero instead.. Can anyone familiar with the code comment 
on this?

--
keywords: +patch
Added file: http://bugs.python.org/file34448/issue20951.diff

___
Python tracker 

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



[issue20941] pytime.c:184 and pytime.c:218: runtime error, outside the range of representable values of type 'long'

2014-03-16 Thread Gareth Rees

Gareth Rees added the comment:

> How did you get this warning?

This looks like runtime output from a program built using Clang/LLVM with 
-fsanitize=undefined. See here: 
http://clang.llvm.org/docs/UsersManual.html#controlling-code-generation

Signed integer overflow is undefined behaviour, so by the time *sec = 
(time_t)intpart has been evaluated, the undefined behaviour has already 
happened. It is too late to check for it afterwards.

--
nosy: +Gareth.Rees

___
Python tracker 

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



[issue20951] SSLSocket.send() returns 0 for non-blocking socket

2014-03-16 Thread Nikolaus Rath

New submission from Nikolaus Rath:

When using non-blocking operation, the SSLSocket.send method returns 0 if no 
data can be sent at this point.

This is counterintuitive, because in the same situation (write to non-blocking 
socket that isn't ready for IO):

 * A regular (non-SSL) socket raises BlockingIOError
 * libc's send(2) does not return 0, but -EAGAIN or -EWOULDBLOCK.
 * OpenSSL's ssl_write does not return 0, but returns an SSL_ERROR_WANT_WRITE 
error
 * The ssl module's documentation describes the SSLWantWrite exception as "A 
subclass of SSLError raised by a non-blocking SSL socket when trying to read or 
write data, but more data needs to be sent on the underlying TCP transport 
before the request can be fulfilled."
 * Consistent with that, trying to *read* from a non-blocking SSLSocket when no 
data is ready raises SSLWantRead, instead of returning zero.

This behavior also makes it more complicated to write code that works with both 
SSLSockets and regular sockets.


Since the current behavior undocumented at best (and contradicting the 
documentation at worst), can we change this in Python 3.5?

--
components: Library (Lib)
messages: 213759
nosy: christian.heimes, giampaolo.rodola, janssen, nikratio, pitrou
priority: normal
severity: normal
status: open
title: SSLSocket.send() returns 0 for non-blocking socket
type: behavior
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



[issue11448] docs for HTTPConnection.set_tunnel are ambiguous

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 68a257ca6be6 by Benjamin Peterson in branch '3.3':
improve set_tunnel docs (closes #11448)
http://hg.python.org/cpython/rev/68a257ca6be6

New changeset 5cab0ada97b2 by Benjamin Peterson in branch 'default':
merge 3.3 (#11448)
http://hg.python.org/cpython/rev/5cab0ada97b2

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue18747] Re-seed OpenSSL's PRNG after fork

2014-03-16 Thread Jeffrey Walton

Jeffrey Walton added the comment:

> It probably is an OpenSSL bug but the declaration doesn't help us.
> It's not the first time Python has to work around OpenSSL, e.g. #18709.

Sorry to dig up an old issue. But here's some reading on it if interested.

Ben Laurire pushed a patch to mix in PID and time. The PID was already being 
used, so the patch adds the time. See "Mixing time into the pool", 
http://www.mail-archive.com/openssl-dev@openssl.org/msg33012.html. And the 
commit: 
https://github.com/openssl/openssl/commit/3cd8547a2018ada88a4303067a2aa15eadc17f39.

OpenSSL added a wiki page for reading on the subject: 
http://wiki.openssl.org/index.php/Random_fork-safety.

--
nosy: +Jeffrey.Walton

___
Python tracker 

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



[issue20945] why save the item to be replaced as olditem in PyTuple_SetItem? It's not useful at all.

2014-03-16 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
resolution:  -> invalid
status: open -> closed

___
Python tracker 

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



[issue20941] pytime.c:184 and pytime.c:218: runtime error, outside the range of representable values of type 'long'

2014-03-16 Thread STINNER Victor

STINNER Victor added the comment:

Hi,

> pytime.c:184: runtime error: value -1e+200 is outside the range of 
> representable values of type 'long'

How did you get this warning?

> Shouldn't a range test based on TIME_T_MAX with an epsilon occur first?

Two lines after, the integer overflow is checked:

*sec = (time_t)intpart;
err = intpart - (double)*sec;
if (err <= -1.0 || err >= 1.0) {
error_time_t_overflow();
return -1;
}

And it works, example:

>>> import _testcapi
>>> _testcapi.pytime_object_to_time_t(-1e+200, 0)
Traceback (most recent call last):
  File "", line 1, in 
OverflowError: timestamp out of range for platform time_t

(where 0 means _PyTime_ROUND_DOWN)

--

___
Python tracker 

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



[issue20950] asyncio.docs : asyncio.subprocess.Process.wait() method typo

2014-03-16 Thread STINNER Victor

STINNER Victor added the comment:

Thanks, it has been fixed (in 12 minutes ;-)). I also mentionned that 
communicate() and wait() are coroutines.

--
nosy: +haypo
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



[issue20950] asyncio.docs : asyncio.subprocess.Process.wait() method typo

2014-03-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1009cf8cb304 by Victor Stinner in branch 'default':
Issue #20950: Fix typo asyncio doc, wait() has no self parameter
http://hg.python.org/cpython/rev/1009cf8cb304

--
nosy: +python-dev

___
Python tracker 

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



[issue19840] The is no way to tell shutil.move to ignore metadata

2014-03-16 Thread Claudiu.Popa

Changes by Claudiu.Popa :


Added file: http://bugs.python.org/file34447/issue19840.patch

___
Python tracker 

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



[issue20950] asyncio.docs : asyncio.subprocess.Process.wait() method typo

2014-03-16 Thread Alexandre JABORSKA

New submission from Alexandre JABORSKA:

The asyncio.subprocess.Process.wait() documentation mention "self" parameter 
(typo ?) and don't tell it's a coroutine.

--
assignee: docs@python
components: Documentation
messages: 213753
nosy: ajaborsk, docs@python
priority: normal
severity: normal
status: open
title: asyncio.docs : asyncio.subprocess.Process.wait() method typo
type: enhancement
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



[issue20887] stdlib compatibility with pypy, test_zipfile.py

2014-03-16 Thread mattip

mattip added the comment:

The test_zipfile in Python 3 is very different from this one, so I would prefer 
that it be two seperate issues. 
After your review of the patch, are there remaining issues that need to be 
cleared up?

--

___
Python tracker 

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



[issue20949] Missing platform security integrations

2014-03-16 Thread Jeffrey Walton

Jeffrey Walton added the comment:

> $ checksec.sh --file ./python
> RELRO   STACK CANARY  NXPIE RPATH  
> RUNPATH  FILE
> Full RELRO  Canary found  NX enabledPIE enabled No RPATH   No 
> RUNPATH   ./python

Here's what a standard Python build looks like (without the platform security 
integrations):

$ checksec.sh --file ./python
RELRO   STACK CANARY  NXPIE RPATH  
RUNPATH  FILE
No RELRONo canary found   NX enabledNo PIE  No RPATH   No 
RUNPATH   ./python

I believe the NX stack is coming Debian's hardening  for amd64's 
(https://wiki.debian.org/Hardening).

--

___
Python tracker 

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



[issue17383] Possibly ambiguous phrasing in tutorial/modules#more-on-modules

2014-03-16 Thread Nitika Agarwal

Nitika Agarwal added the comment:

Hello everyone,
I have tried creating a patch for the issue,
Please review the attached patch.

--
keywords: +patch
Added file: http://bugs.python.org/file34446/issue17383.patch

___
Python tracker 

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



[issue15582] Enhance inspect.getdoc to follow inheritance chains

2014-03-16 Thread Claudiu.Popa

Changes by Claudiu.Popa :


Added file: http://bugs.python.org/file34445/issue15582.patch

___
Python tracker 

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



[issue20949] Missing platform security integrations

2014-03-16 Thread Jeffrey Walton

New submission from Jeffrey Walton:

$ hg id
3736bf94535c+ tip

A standard Python build does not take a proactive approach to integrating with 
platform security measures. Attepting to add the measures results in a failed 
build.

For example:

export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
export CFLAGS="-fPIC -fstack-protector-all -D_FORTIFY_SOURCE=2"
export CXXFLAGS="-fPIC -fstack-protector-all -D_FORTIFY_SOURCE=2"
export LDFLAGS="-pie -Wl,-z,noexecstack -Wl,-z,noexecheap -Wl,-z,now 
-Wl,-z,relro"

will configure properly, but will fail to build.

The idea is to build executables with {-fPIE,-pie} and build shared objects 
with {-fPIC,-shared}. Both executables and shared objects get the remaining 
platform security integrations like stack protectors and NX stacks/heaps.

In the case an object file is used for both an executable and shared object, it 
should be compiled with -fPIC (and linking will include -pie or -shared as 
required). Its OK to use -fPIC in place of -fPIE. See 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52885 for details.

*

Examining the failed compile:

/usr/bin/gcc -pthread -shared -pie -Wl,-z,noexecstack -Wl,-z,noexecheap 
-Wl,-z,now -Wl,-z,relro -pie -Wl,-z,noexecstack -Wl,-z,noexecheap -Wl,-z,now 
-Wl,-z,relro -pie -Wl,-z,noexecstack -Wl,-z,noexecheap -Wl,-z,now -Wl,-z,relro 
-fPIC -fstack-protector-all -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-3.4/home/jwalton/Desktop/cpython-checkout/Modules/_struct.o
 -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -o 
build/lib.linux-x86_64-3.4/_struct.cpython-34m.so

So, autotools tried to add both -pie (for executables) and -shared (for shared 
objects). Fail.

The same problem occurs with _struct.cpython-34m.so, 
_ctypes_test.cpython-34m.so, array.cpython-34m.so, cmath.cpython-34m.so, 
math.cpython-34m.so, time.cpython-34m.so, _datetime.cpython-34m.so, 
_random.cpython-34m.so, _bisect.cpython-34m.so, ...

*

I know I can omit -pie from CFLAGS and CXXFLAGS:

export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
export CFLAGS="-fPIC -fstack-protector-all -D_FORTIFY_SOURCE=2"
export CXXFLAGS="-fPIC -fstack-protector-all -D_FORTIFY_SOURCE=2"
export LDFLAGS="-Wl,-z,noexecstack -Wl,-z,noexecheap -Wl,-z,now -Wl,-z,relro"

but then I have to manually add -pie to Makefile lines with $BUILDPYTHON (and 
others, like _testembed and _freeze_importlib):

$(BUILDPYTHON): Modules/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
$(LINKCC) -pie $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Modules/python.o 
$(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
...

*

Examining an executable produced by the modified Makefil with Tobias Klein's 
Checksec (http://www.trapkit.de/tools/checksec.html) shows the platform 
security integrations were successfully applied:

$ checksec.sh --file ./python
RELRO   STACK CANARY  NXPIE RPATH  
RUNPATH  FILE
Full RELRO  Canary found  NX enabledPIE enabled No RPATH   No 
RUNPATH   ./python

*

Running `make test` with the security integrations worked as expected, and did 
not result in any adverse behavior (like an abrupt shutdown).

*

It would be great if Python tested for features like ASLR for executables, and 
simply added {-fPIE,-pie} as available. The same is true for the other security 
offerings (_FORTIFY_SOURCE should be added to Release builds only).

--
components: Build
hgrepos: 226
messages: 213749
nosy: Jeffrey.Walton
priority: normal
severity: normal
status: open
title: Missing platform security integrations
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



[issue1738] Add match parameter to filecmp.dircmp to ignore using patterns

2014-03-16 Thread Nikolaus Rath

Changes by Nikolaus Rath :


--
title: Add match parameter to filecmp.dircmp to ignore name patterns -> Add 
match parameter to filecmp.dircmp to ignore using patterns

___
Python tracker 

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



[issue1738] Add match parameter to filecmp.dircmp to ignore name patterns

2014-03-16 Thread Nikolaus Rath

Changes by Nikolaus Rath :


--
title: filecmp.dircmp does exact match only -> Add match parameter to 
filecmp.dircmp to ignore name patterns
versions: +Python 3.5 -Python 3.2

___
Python tracker 

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



  1   2   >