[issue19681] test_repr (test.test_functools.TestPartialC) failures

2013-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 18a44d65d34a by Christian Heimes in branch 'default': Issue #19681: Apply a quick and minimal band-aid. http://hg.python.org/cpython/rev/18a44d65d34a -- nosy: +python-dev ___ Python tracker

[issue19684] IDLE on OS X 10.6.8 crashes when opening a file

2013-11-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> ronaldoussoren components: +Macintosh nosy: +hynek, kbk, ned.deily, roger.serwy, ronaldoussoren, terry.reedy title: OS X 10.6.8 Crash when opening a file -> IDLE on OS X 10.6.8 crashes when opening a file __

[issue19572] Report more silently skipped tests as skipped

2013-11-21 Thread Zachary Ware
Changes by Zachary Ware : Added file: http://bugs.python.org/file32761/skiptest_not_return_or_pass.v4-2.7.diff ___ Python tracker ___ ___ Pyt

[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2013-11-21 Thread Nick Coghlan
Nick Coghlan added the comment: Victor pointed out this should now raise LookupError rather than TypeError. However, I'm not going to duplicate the manipulation of the private attribute across seven different codecs when a private alternate constructor solves that problem far more cleanly.

[issue19681] test_repr (test.test_functools.TestPartialC) failures

2013-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch for test_functools. -- keywords: +patch nosy: +serhiy.storchaka Added file: http://bugs.python.org/file32758/issue19681.patch ___ Python tracker _

[issue19667] Add the "htmlcharrefreplace" error handler

2013-11-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: As long as it isn't built-in, I see no problems for including it personally. -- nosy: +pitrou ___ Python tracker ___ ___

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-21 Thread STINNER Victor
STINNER Victor added the comment: I'm not convinced myself that hashtable.c/h can be reused immediatly, so I prefer to move these two files to Modules. The files may be moved later if the containers are reused. -- ___ Python tracker

[issue19640] Drop _source attribute of namedtuple

2013-11-21 Thread Eric Snow
Eric Snow added the comment: As an alternative, how about turning _source into a property? -- nosy: +eric.snow ___ Python tracker ___

[issue19572] Report more silently skipped tests as skipped

2013-11-21 Thread Zachary Ware
Zachary Ware added the comment: The 2.7 patch has a lot of extra changes in it, extra review is probably in order for it. -- Added file: http://bugs.python.org/file32756/skiptest_not_return_or_pass.v4-2.7.diff ___ Python tracker

[issue19652] test_asyncio: test_subprocess_send_signal() hangs on buildbot "AMD64 Snow Leop 3.x"

2013-11-21 Thread Guido van Rossum
Guido van Rossum added the comment: Hmm... When did you last see the hang? We've had a variety of checkins that might have affected this code. If you've seen at least one traceback later than the commit below, feel free to commit. Otherwise, let's wait. changeset: 87088:eb42adc53923 user:

[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2013-11-21 Thread STINNER Victor
STINNER Victor added the comment: > There is no "codec registry" - there is only the default codec search function, the encodings import namespace, the normalisation algorithm and the alias dictionary. interp->codec_search_cache can be seen as the "registry". If you store codecs in two differen

[issue17134] Use Windows' certificate store for CA certs

2013-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9adcb61ea741 by Christian Heimes in branch 'default': Issue #17134: Finalize interface to Windows' certificate store. Cert and http://hg.python.org/cpython/rev/9adcb61ea741 -- ___ Python tracker

[issue16596] Skip stack unwinding when "next", "until" and "return" pdb commands executed in generator context

2013-11-21 Thread Guido van Rossum
Changes by Guido van Rossum : -- assignee: -> gvanrossum resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue16596] Skip stack unwinding when "next", "until" and "return" pdb commands executed in generator context

2013-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 95eea8624d05 by Guido van Rossum in branch 'default': Better behavior when stepping over yield[from]. Fixes issue 16596. By Xavier de Gaye. http://hg.python.org/cpython/rev/95eea8624d05 -- nosy: +python-dev

[issue19685] open() fails to autodetect utf-8 if LANG=C

2013-11-21 Thread STINNER Victor
STINNER Victor added the comment: pip is not part of the Python standard library, you should report it upstream: https://github.com/pypa/pip -- nosy: +ncoghlan ___ Python tracker ___

[issue19555] "SO" config var not getting set

2013-11-21 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19683] test_minidom has many empty tests

2013-11-21 Thread Zachary Ware
Zachary Ware added the comment: In that case, the empty tests should be removed, since they currently report success on doing nothing. -- ___ Python tracker ___

[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2013-11-21 Thread Nick Coghlan
Nick Coghlan added the comment: New patch for 3.4 that uses a private attribute on CodecInfo and a private class method to set it appropriately (as I believe that is a better approach than changing the signature of CodecInfo.__init__ at this point, especially if we end up pursuing the codec ty

[issue19680] Help missing for exec and print

2013-11-21 Thread Bohuslav "Slavek" Kabrda
New submission from Bohuslav "Slavek" Kabrda: Steps to reproduce: [bkabrda@zizalka python]$ python >>> help() help> keywords # prints lots of keywords including "print" and "exec" help> print no documentation found for 'print' So either keywords should not list "print" and "exec" or the docu

[issue19681] test_repr (test.test_functools.TestPartialC) failures

2013-11-21 Thread STINNER Victor
STINNER Victor added the comment: See issue #19664 for userdict. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue8813] SSLContext doesn't support loading a CRL

2013-11-21 Thread Christian Heimes
Christian Heimes added the comment: s/FLAGS_/VERIFY_/g ? OK, I don't have hard feelings. :) -- ___ Python tracker ___ ___ Python-bugs-l

[issue8813] SSLContext doesn't support loading a CRL

2013-11-21 Thread Christian Heimes
Christian Heimes added the comment: The new patch addresses your review. I have altered the new to FLAGS_NONE, FLAGS_CLR_CHECK_LEAF etc. -- Added file: http://bugs.python.org/file32760/verify_flags_crl2.patch ___ Python tracker

[issue19674] Add introspection information for builtins

2013-11-21 Thread Larry Hastings
Larry Hastings added the comment: I changed it to "(". Patch attached. Still works. -- Added file: http://bugs.python.org/file32763/larry.introspection.for.builtins.patch.2.txt ___ Python tracker ___

[issue18147] SSL: diagnostic functions to list loaded CA certs

2013-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset ae0734493f6b by Christian Heimes in branch 'default': Issue #18147: Add missing documentation for SSLContext.get_ca_certs(). http://hg.python.org/cpython/rev/ae0734493f6b -- ___ Python tracker

[issue17134] Use Windows' certificate store for CA certs

2013-11-21 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue19681] test_repr (test.test_functools.TestPartialC) failures

2013-11-21 Thread Christian Heimes
New submission from Christian Heimes: test_repr of test.test_functools.TestPartialC fails sometimes because the test scenario depends on the order of items in a Python dict. The order is not stable and may change. Before PEP 456 was committed the order of items was stable most of the time. Now

[issue19682] _ssl won't compile with OSX 10.9 SDK

2013-11-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: That's quick... The patch fixes the issue for me as well. Thanks! -- resolution: -> fixed stage: needs patch -> commit review status: open -> closed ___ Python tracker ___

[issue14373] C implementation of functools.lru_cache

2013-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: After Serhiy looks at this, I need to review it for reentrancy thread-safety and reentrancy issues. -- priority: normal -> low versions: +Python 3.5 -Python 3.4 ___ Python tracker

[issue19682] _ssl won't compile with OSX 10.9 SDK

2013-11-21 Thread Ronald Oussoren
New submission from Ronald Oussoren: I get a compilation error for _ssl when building on OSX 10.9 using the 10.9 SDK, the relevant error: /Users/ronald/Projects/python/rw/default/Modules/_ssl.c:1029:24: error: no member named 'crldp' in 'struct x509_st' dps = certificate->crldp;

[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2013-11-21 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue8813] SSLContext doesn't support loading a CRL

2013-11-21 Thread Christian Heimes
Christian Heimes added the comment: My patch is inspired by mod_ssl: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ssl/ssl_engine_init.c?view=markup#l697 CRLs can already be loaded with SSLContext.load_verify_locations(). The patch exposes the verification flags of SSLContext's X509_S

[issue19674] Add introspection information for builtins

2013-11-21 Thread Brett Cannon
Brett Cannon added the comment: For Nick: "still works" as in the metadata is still available without docstrings or "still works" as in it won't crash? -- ___ Python tracker ___

[issue18294] zlib module is not completly 64-bit safe

2013-11-21 Thread STINNER Victor
STINNER Victor added the comment: > LGTM. I changed the "uint" parser to raise a ValueError instead of an OverflowError, so the unit test doesn't need to be adapted. Thanks again Serhiy for your review :) I doesn't want to backport the fix to Python 2.7 or 3.3, it's more intrusive than what

[issue14455] plistlib unable to read json and binary plist files

2013-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 673ca119dbd0 by Ronald Oussoren in branch 'default': Issue #14455: plistlib now supports binary plists and has an updated API. http://hg.python.org/cpython/rev/673ca119dbd0 -- nosy: +python-dev ___ Python

[issue19688] pip install now fails with 'HTMLParser' object has no attribute 'unescape'

2013-11-21 Thread Ned Deily
New submission from Ned Deily: 7b9235852b3b for Issue2927 moved and documents the previously undocumented unescape function. Unfortunately, at least one third-party module, distlib, depends on it. And distlib is now used by pip and needed for the ensurepip feature of 3.4. $ python3.4 get-pi

[issue19684] OS X 10.6.8 Crash when opening a file

2013-11-21 Thread Will Adams
New submission from Will Adams: Apologies in advance if I am posting incorrectly. This is my first post here. IDLE crashes when I open a *.py file on my old mac pro from IDLE. I haven't seen this on version 3.3.2, but I need to do some work in version 2.7 today so I downloaded 2.7.6 and ra

[issue19681] test_repr (test.test_functools.TestPartialC) failures

2013-11-21 Thread Nick Coghlan
Nick Coghlan added the comment: And actually re-reading the existing code to see it already works that way... how can two dicts with the same keys, without any extra keys being added and deleted in either have different iteration orders? If it's just a matter of copying the original dict changing

[issue18379] SSLSocket.getpeercert(): OCSP and CRL DP URIs

2013-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 40bfddda43d4 by Christian Heimes in branch 'default': Issue #19682: Fix compatibility issue with old version of OpenSSL that http://hg.python.org/cpython/rev/40bfddda43d4 -- status: pending -> open ___ Py

[issue8813] SSLContext doesn't support loading a CRL

2013-11-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It *is* generic. The flags are not about CRL alone, That's why I proposed VERIFY_xxx, e.g. VERIFY_CRL_NONE. Calling some flags "FLAGS" is senseless, it's like calling an integer "INTEGER". -- ___ Python tracker <

[issue19664] UserDict test assumes ordered dict repr

2013-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset b62eb82ca5ef by Christian Heimes in branch 'default': Issue #19664: fix another flake test_userdict test http://hg.python.org/cpython/rev/b62eb82ca5ef -- ___ Python tracker

[issue19688] pip install now fails with 'HTMLParser' object has no attribute 'unescape'

2013-11-21 Thread Ned Deily
Ned Deily added the comment: A distlib issue has also been opened. https://bitbucket.org/pypa/distlib/issue/36/distlib-uses-undocumented-and-deprecated -- nosy: +vinay.sajip ___ Python tracker

[issue19292] Make SSLContext.set_default_verify_paths() work on Windows

2013-11-21 Thread Guido van Rossum
Guido van Rossum added the comment: Can you also add a patch to asyncio (I suppose to the code where it calls set_default_verify_paths())? -- ___ Python tracker ___ _

[issue19677] IDLE displaying a CoreAnimation warning

2013-11-21 Thread Ned Deily
Ned Deily added the comment: Since the message is coming from Cocoa layers of OS X, this is undoubtedly a Tk issue, rather than a Python issue. What version of Tcl/Tk are you using: ActiveTcl 8.5.15.1? Suggest you open an issue on the Tk bug tracker and/or the ActiveState bug tracker. http

[issue19688] pip install now fails with 'HTMLParser' object has no attribute 'unescape'

2013-11-21 Thread Ezio Melotti
Ezio Melotti added the comment: Here is a patch that adds HTMLParser.unescape() back with a DeprecationWarning. -- keywords: +patch stage: -> patch review type: -> behavior Added file: http://bugs.python.org/file32769/issue19688.diff ___ Python trac

[issue19671] Option to select the optimization level on compileall

2013-11-21 Thread Sworddragon
Sworddragon added the comment: > Hi. Since Python 3.2, compileall functions supports the optimization level > through the `optimize` parameter. > There is no command-line option to control the optimization level used by the > compile() function, because the Python interpreter itself already pr

[issue19664] UserDict test assumes ordered dict repr

2013-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch for test_userdict. -- keywords: +patch nosy: +serhiy.storchaka Added file: http://bugs.python.org/file32759/issue19664.patch ___ Python tracker __

[issue19681] test_repr (test.test_functools.TestPartialC) failures

2013-11-21 Thread Christian Heimes
Christian Heimes added the comment: Both keys happen to have the same LSB bytes. I have added "print(hash('a') & 7, hash('b') & 7)" to the code and run test tests multiple times: $ ./python -m test -m test_repr test_functools [1/1] test_functools 3 6 3 6 1 test OK. $ ./python -m test -m test_re

[issue19063] Python 3.3.3 encodes emails containing non-ascii data as 7bit

2013-11-21 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file32732/support_8bit_charset_cte.patch ___ Python tracker ___ ___ Python-b

[issue19572] Report more silently skipped tests as skipped

2013-11-21 Thread Zachary Ware
Changes by Zachary Ware : Removed file: http://bugs.python.org/file32756/skiptest_not_return_or_pass.v4-2.7.diff ___ Python tracker ___ ___ P

[issue19686] possible unnecessary memoryview copies?

2013-11-21 Thread R. David Murray
R. David Murray added the comment: I believe a new memoryview object is created, but the data is not copied. That's the whole point of memoryview, I think :) -- nosy: +r.david.murray ___ Python tracker __

[issue18294] zlib module is not completly 64-bit safe

2013-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset f947fe289db8 by Victor Stinner in branch 'default': Close #18294: Fix the zlib module to make it 64-bit safe http://hg.python.org/cpython/rev/f947fe289db8 -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed/rejected s

[issue19686] possible unnecessary memoryview copies?

2013-11-21 Thread Lluís
New submission from Lluís: The following code works without raising any AssertionError >>> n = "some small integer value" >>> m = "some larger integer value" >>> assert n>> data = bytearray(n) >>> mem = memoryview(data) >>> assert mem==mem[:] >>> assert mem==mem[0:] >>> assert mem==mem[:m]

[issue19599] Failure of test_async_timeout() of test_multiprocessing_spawn: TimeoutError not raised

2013-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 086865ceefe1 by Richard Oudkerk in branch '2.7': Issue #19599: Use a separate pool for test_terminate(). http://hg.python.org/cpython/rev/086865ceefe1 -- ___ Python tracker

[issue17916] Provide dis.Bytecode based equivalent of dis.distb

2013-11-21 Thread Claudiu.Popa
Claudiu.Popa added the comment: Thanks, Nick! Attached the new version, I hope that I did it right this time. -- Added file: http://bugs.python.org/file32762/dis_tb_3.patch ___ Python tracker __

[issue19681] test_repr (test.test_functools.TestPartialC) failures

2013-11-21 Thread Christian Heimes
Christian Heimes added the comment: The repr test of userdict fails sometimes, too. http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%203.x/builds/3120/steps/test/logs/stdio == FAIL: test_all (test.test_userdict.User

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-21 Thread Brett Cannon
Brett Cannon added the comment: Semantic-affecting changes first, then fluffy bits in terms of priority. Basically go based on what is most critical to be in 3.4. And yes, basically can you comment out find_module/find_loader/load_module and execute the test suite (sans import-related tests) w

[issue8813] SSLContext doesn't support loading a CRL

2013-11-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: That sounds too generic. How about VERIFY_CRL_NONE, etc. -- ___ Python tracker ___ ___ Python-bugs-li

[issue8813] SSLContext doesn't support loading a CRL

2013-11-21 Thread Christian Heimes
Christian Heimes added the comment: It *is* generic. The flags are not about CRL alone, http://www.openssl.org/docs/crypto/X509_VERIFY_PARAM_set_flags.html#VERIFICATION_FLAGS -- ___ Python tracker _

[issue19689] ssl.create_default_context()

2013-11-21 Thread Christian Heimes
New submission from Christian Heimes: A few weeks ago I suggested the addition of ssl.create_default_context() to the stdlib. The patch implements my proposal. It replaces code in several of modules with one central function. The patch also removes ssl.wrap_socket() in favor for a SSLContext o

[issue19664] UserDict test assumes ordered dict repr

2013-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset a0ec33b83ba4 by Christian Heimes in branch 'default': Issue #19664: test_userdict's repr test no longer depends on the order http://hg.python.org/cpython/rev/a0ec33b83ba4 -- nosy: +python-dev ___ Python t

[issue19292] Make SSLContext.set_default_verify_paths() work on Windows

2013-11-21 Thread Christian Heimes
Christian Heimes added the comment: The patch implements a new method SSLContext.load_default_certs(). A new method is a required because set_default_verify_paths() doesn't have a way to specify a purpose. Every cert store allows the user to specify the purpose of a certificate (e.g. suitable

[issue19292] Make SSLContext.set_default_verify_paths() work on Windows

2013-11-21 Thread Christian Heimes
Christian Heimes added the comment: I have slightly different plans to make it even easier, #19689 -- ___ Python tracker ___ ___ Pytho

[issue19688] pip install now fails with 'HTMLParser' object has no attribute 'unescape'

2013-11-21 Thread Ned Deily
Ned Deily added the comment: LGTM, thanks! -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue19688] pip install now fails with 'HTMLParser' object has no attribute 'unescape'

2013-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0534b882f9ce by Ezio Melotti in branch 'default': #19688: add back and deprecate the internal HTMLParser.unescape() method. http://hg.python.org/cpython/rev/0534b882f9ce -- nosy: +python-dev ___ Python tr

[issue19688] pip install now fails with 'HTMLParser' object has no attribute 'unescape'

2013-11-21 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue14455] plistlib unable to read json and binary plist files

2013-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 602e0a0ec67e by Ned Deily in branch 'default': Issue #14455: Fix maybe_open typo in Plist.fromFile(). http://hg.python.org/cpython/rev/602e0a0ec67e -- ___ Python tracker

<    1   2