[issue16945] rewrite CGIHTTPRequestHandler to always use subprocess

2013-08-01 Thread Charles-François Natali
Charles-François Natali added the comment: Marking #10496 as a dependency (since it could prevent Python from running with low level privileges). -- dependencies: +Python startup should not require passwd entry ___ Python tracker

[issue18517] "xxlimited" extension declared incorrectly in setup.py

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset e5607874e8ff by Ned Deily in branch '3.3': Issue #18517: Move definition of "xxlimited" extension to detect_modules(). http://hg.python.org/cpython/rev/e5607874e8ff New changeset 1d832bc857e2 by Ned Deily in branch 'default': Issue #18517: merge fro

[issue4885] mmap enhancement request

2013-08-01 Thread Valerie Lambert
Valerie Lambert added the comment: I've uploaded a patch to make mmap_obj support weakref. A test is included in the patch. -- keywords: +patch nosy: +lambertv Added file: http://bugs.python.org/file31115/issue-4885.patch ___ Python tracker

[issue18550] internal_setblocking() doesn't check return value of fcntl()

2013-08-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: It's a bit tedious, but not too bad. The attached patch appears to work, but needs review (especially for the Windows and VMS branches in internal_setblocking. This changes the return value of internal_setblocking, it was unconditionally 1 and is now -1 if t

[issue18627] Typo in Modules/hashlib.h

2013-08-01 Thread Ned Deily
Changes by Ned Deily : -- versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue18627] Typo in Modules/hashlib.h

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3716d64f846b by Ned Deily in branch '3.3': Issue #18627: Fix typo noticed by Vajrasky Kok. http://hg.python.org/cpython/rev/3716d64f846b New changeset 454e9db1c750 by Ned Deily in branch 'default': Closes #18627: merge from 3.3 http://hg.python.org/

[issue18626] Make "python -m inspect " dump the source of a module

2013-08-01 Thread Eric Snow
Eric Snow added the comment: At the risk of unnecessary complication, there is also other information that could be output, depending on the referenced object (module vs. class/func via qualname). For instance, a module's __file__ would be handy. So, the output could have a "header" with the

[issue18628] PEP 8 and encodings

2013-08-01 Thread Terry J. Reedy
New submission from Terry J. Reedy: Three related doc change proposals. The Versions only apply to the third as the first two are for PEP 8. 1. PEP 8 has a section entitled "Encodings (PEP 263)" with a link to the verbose PEP. I think it would be better if it were "Source Encoding" with a lin

[issue17557] test_getgroups of test_posix can fail on OS X 10.8 if more than 16 groups

2013-08-01 Thread Ned Deily
Ned Deily added the comment: Committed patch (with slight modifications) for release in 2.7.6, 3.3.3, and 3.4.0. Thanks again, Mateusz. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: -Python 3.2

[issue18627] Typo in Modules/hashlib.h

2013-08-01 Thread Vajrasky Kok
New submission from Vajrasky Kok: Got typo in Modules/hashlib.h. See this patch for detail: --- a/Modules/hashlib.h Wed Jul 31 20:48:26 2013 -0400 +++ b/Modules/hashlib.h Fri Aug 02 12:39:00 2013 +0800 @@ -2,7 +2,7 @@ /* * Given a PyObject* obj, fill in the Py_buffer* viewp with the result

[issue17557] test_getgroups of test_posix can fail on OS X 10.8 if more than 16 groups

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d3b7e0559a0 by Ned Deily in branch '2.7': Issue #17557: Fix os.getgroups() to work with the modified behavior of http://hg.python.org/cpython/rev/6d3b7e0559a0 New changeset 0a4afa8833b5 by Ned Deily in branch '3.3': Issue #17557: Fix os.getgroups()

[issue18626] Make "python -m inspect " dump the source of a module

2013-08-01 Thread Nick Coghlan
New submission from Nick Coghlan: "python -m inspect " doesn't currently do anything. It would be handy if this: python -m inspect site Was roughly equivalent to: python -c "import inspect, site; print(inspect.getsource(site))" Even better would be if it understood entry point notati

[issue17899] os.listdir() leaks FDs if invoked on FD pointing to a non-directory

2013-08-01 Thread Larry Hastings
Larry Hastings added the comment: Marking as closed/fixed. -- assignee: -> larry resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue17899] os.listdir() leaks FDs if invoked on FD pointing to a non-directory

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset bf68711bc939 by Larry Hastings in branch '3.3': Issue #17899: Fix rare file descriptor leak in os.listdir(). http://hg.python.org/cpython/rev/bf68711bc939 -- ___ Python tracker

[issue17899] os.listdir() leaks FDs if invoked on FD pointing to a non-directory

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset e51cbc45f4ca by Larry Hastings in branch 'default': Issue #17899: Fix rare file descriptor leak in os.listdir(). http://hg.python.org/cpython/rev/e51cbc45f4ca -- nosy: +python-dev ___ Python tracker

[issue18472] Update PEP 8 to encourage modern conventions

2013-08-01 Thread Guido van Rossum
Guido van Rossum added the comment: Patch applied. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue17145] memoryview(array.array)

2013-08-01 Thread Demian Brecht
Demian Brecht added the comment: Bump. If the patch (or request) is invalid, might be worthwhile closing this issue (although I still think it's valid ;)). -- ___ Python tracker ___

[issue18519] test_sqlite crashes on OS X tiger 3.x buildbot

2013-08-01 Thread STINNER Victor
STINNER Victor added the comment: There is no more known bug, i'm closing this issue. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue18519] test_sqlite crashes on OS X tiger 3.x buildbot

2013-08-01 Thread Ned Deily
Ned Deily added the comment: c73f4dced6aa appears to fix the problem on 10.4 Tiger. Thanks! -- ___ Python tracker ___ ___ Python-bugs

[issue18519] test_sqlite crashes on OS X tiger 3.x buildbot

2013-08-01 Thread STINNER Victor
STINNER Victor added the comment: > I don't understand the relation between my changesets and this failure. Ok, I found the reason in the definition of the _sqlite3_result_error() function. This function behave differently on old sqlite versions: it raises a new exception. The issue should now b

[issue18625] ks_c-5601-1987 is used by microsoft when it really means cp949

2013-08-01 Thread R. David Murray
New submission from R. David Murray: When Microsoft handles Korean text, it uses its own code page, cp949, which is a superset of ks_c-5601-1987. But when talking to the rest of the world, it claims that the character set name is ks_c-5601-1987. This means that text claimed to be in ks_c-560

[issue14956] custom PYTHONPATH may break apps embedding Python

2013-08-01 Thread Kevin Harms
Kevin Harms added the comment: As far as I can tell, this issue is not resolved. It would be very nice for the C API to have the equivalent for -E for security reasons. I would like to make a setgid binary and do not want users to be able to set PYTHON* variables to force loading of custom cod

[issue18519] test_sqlite crashes on OS X tiger 3.x buildbot

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset c73f4dced6aa by Victor Stinner in branch 'default': Issue #18519: Fix test_sqlite on old versions of libsqlite3 http://hg.python.org/cpython/rev/c73f4dced6aa -- ___ Python tracker

[issue18519] test_sqlite crashes on OS X tiger 3.x buildbot

2013-08-01 Thread STINNER Victor
STINNER Victor added the comment: ned> The changes for this issue appear to have changed the behavior of test_sqlite. David> Heh, that's the kind of behavior change I was worried about :( I don't understand why the test is failing, nor why it is only failing on one specific buildbot. Does it m

[issue18558] Iterable glossary entry needs clarification

2013-08-01 Thread R. David Murray
R. David Murray added the comment: “What is the proper way of asking if an object is iterable if it does not support the iterator protocol but does support the old getitem protocol?” The *only* answer to that question is to try to iterate it, and see if you get a KeyError on "0". Since this r

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

2013-08-01 Thread R. David Murray
New submission from R. David Murray: Emails and web pages may specify a character set of iso-8859-8-i, which has exactly the same code points as iso-8859-8. The -i has to do with how bi-directional text is handled, but doesn't affect the encoding: http://lists.w3.org/Archives/Public/www-valida

[issue18605] 2.7: test_threading hangs on Solaris 9

2013-08-01 Thread Maciej Bliziński
Maciej Bliziński added the comment: Test results for sources pulled from the mercurial repository: they hang in the same place. == CPython 3.4.0a0 (default, Aug 2 2013, 00:38:45) [GCC 4.6.3] == Solaris-2.9-sun4u-sparc-32bit-ELF big-endian == /home/maciej/src/cpython/build/test_python_19419

[issue18609] test_ctypes failure on AIX in PyEval_CallObjectWithKeywords

2013-08-01 Thread STINNER Victor
STINNER Victor added the comment: This issue is not a bug, but a new assertion added by myself for the issue #18408. The idea is to not call a Python function with an exception set, because the exception may be cleared or replaced (ex: hasattr() clears the current exception if an attribute is

[issue10241] gc fixes for module m_copy attribute

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: _tkinter uses PyType_FromSpec() to create its types and then adds them to the module dict without increfing them, so there may be a refcount issue explaining that those types get garbage collected before all their instances die. -- ___

[issue18609] test_ctypes failure on AIX in PyEval_CallObjectWithKeywords

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset de1ea7f84e08 by Victor Stinner in branch 'default': Issue #18609, #18408: _ctypes_add_traceback() now clears the current exception http://hg.python.org/cpython/rev/de1ea7f84e08 -- nosy: +python-dev ___ Py

[issue18408] Fixes crashes found by pyfailmalloc

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset de1ea7f84e08 by Victor Stinner in branch 'default': Issue #18609, #18408: _ctypes_add_traceback() now clears the current exception http://hg.python.org/cpython/rev/de1ea7f84e08 -- ___ Python tracker

[issue18623] Factor out the _SuppressCoreFiles context manager

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ah, and the recursion limit tests in test_sys dump core too... -- ___ Python tracker ___ ___ Python-

[issue10241] gc fixes for module m_copy attribute

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I managed to get a core dump locally. Interestingly, it may be that the _tk module is the culprit. The backtrace is the following: #0 0x7ff6c5e14aab in raise () from /lib/x86_64-linux-gnu/libpthread.so.0 #1 0x0044e57e in faulthandler_fatal_error (

[issue16463] testConnectTimeout of test_timeout TCPTimeoutTestCasefailures fails intermittently

2013-08-01 Thread Ned Deily
Ned Deily added the comment: Also fails occasionally on OS X 3.3 and 3.x with much smaller deltas: == FAIL: testConnectTimeout (test.test_timeout.TCPTimeoutTestCase) --

[issue18623] Factor out the _SuppressCoreFiles context manager

2013-08-01 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue18623] Factor out the _SuppressCoreFiles context manager

2013-08-01 Thread Antoine Pitrou
New submission from Antoine Pitrou: _SuppressCoreFiles in test_subprocess is a useful facility for other tests, for instance test_faulthandler (which has its own logic) or test_capi (which actually happily dumps core in one of its subtests). It could probably be factored out into test.support.

[issue18023] msi product code for 2.7.5150 not in Tools/msi/uuids.py

2013-08-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: I have now added the uuid. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue18614] Enhanced \N{} escapes for Unicode strings

2013-08-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with the proposal. Some of the code seems redundant with code we already have. In Python, I would write def codepoint_from_U_notation(name, namelen): if not (4 <= namelen <= 6): raise return chr(int(name, 16)) maybe with try-except to re-write err

[issue10241] gc fixes for module m_copy attribute

2013-08-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue18558] Iterable glossary entry needs clarification

2013-08-01 Thread Stephen Paul Chappell
Stephen Paul Chappell added the comment: Maybe this would have been more appropriate as a question on StackOverflow: What is the proper way of asking if an object is iterable if it does not support the iterator protocol but does support the old getitem protocol? One might argue that it is bett

[issue18605] 2.7: test_threading hangs on Solaris 9

2013-08-01 Thread Maciej Bliziński
Maciej Bliziński added the comment: Here's the output. After that output -- it hangs. == CPython 2.7.5 (default, Jul 30 2013, 01:41:03) [GCC 4.6.3] == Solaris-2.9-sun4u-sparc-32bit-ELF big-endian == /home/maciej/src/opencsw/pkg/lang-python/python/branches/python-2.7/work/solaris9-sparc/buil

[issue10241] gc fixes for module m_copy attribute

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Reopening. This seems to produce segfaults on several of the buildbots, e.g.: http://buildbot.python.org/all/builders/x86%20XP-4%203.x/builds/8947 http://buildbot.python.org/all/builders/x86%20Windows%20Server%202003%20%5BSB%5D%203.x/builds/1257 http://buildbot.p

[issue18622] reset_mock on mock created by mock_open causes infinite recursion

2013-08-01 Thread Michael Foord
New submission from Michael Foord: As reported at: http://code.google.com/p/mock/issues/detail?id=209 >>> from unittest import mock [107971 refs] >>> mock.mock_open [107974 refs] >>> a = mock.mock_open() [109965 refs] >>> a.reset_mock() ... -- assignee: michael.foord components: Librar

[issue15631] Python 3.3/3.4 installation issue on OpenSUSE lib/lib64 folders

2013-08-01 Thread Catalin Iacob
Catalin Iacob added the comment: In reply to msg168184, LIBDIR is set to include lib64 instead of lib because openSUSE explicitly does it that way in their multilib implementation. More specifically, the CONFIG_SITE environment variable is set to /usr/share/site/x86_64-unknown-linux-gnu which

[issue18621] site.py keeps too much stuff alive when it patches builtins

2013-08-01 Thread Antoine Pitrou
New submission from Antoine Pitrou: The site module patches the builtins module unless Python is run with -S. Unfortunately, this means the builtins dict then keeps the site module globals alive until the end of interpreter shutdown, preventing the garbage collection of many other objects or m

[issue18306] os.stat gives exception for Windows junctions in v3.3

2013-08-01 Thread John Jefferies
John Jefferies added the comment: On 01/08/2013 12:09, Tim Golden wrote: > Tim Golden added the comment: > > I propose to close this one: using Python 3.3 on Win7 I can successfully stat > NTFS Junctions. Is there any remaining issue? > > -- > > ___ >

[issue1294959] Problems with /usr/lib64 builds.

2013-08-01 Thread Catalin Iacob
Changes by Catalin Iacob : -- nosy: +catalin.iacob ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue18620] multiprocessing page leaves out important part of Pool example

2013-08-01 Thread Chris Curvey
New submission from Chris Curvey: on http://docs.python.org/2/library/multiprocessing.html, there is a bit about how to use a Pool properly, which looks like this pool = Pool(processes=4) # start 4 worker processes result = pool.apply_async(f, [10]) What this neglects to mention i

[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed a fix to 2.7 (I hope it's really a fix, since I don't know how to test it). I'll let Benjamin and Barry decide whether to backport to 2.6 and 3.2. As for 3.1, it's pretty much dead. -- priority: release blocker -> deferred blocker stage:

[issue18558] Iterable glossary entry needs clarification

2013-08-01 Thread R. David Murray
R. David Murray added the comment: That would give you a false positive, though. It would return True for the 'y' in my example, which is not iterable. So Iterable's behavior here is an example of the Python design rule "resist the temptation to guess". As Terry said, new classes should impl

[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0f17aed78168 by Antoine Pitrou in branch '2.7': Fix tkinter regression introduced by the security fix in #16248. http://hg.python.org/cpython/rev/0f17aed78168 -- ___ Python tracker

[issue18214] Stop purging modules which are garbage collected before shutdown

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, you may be interested to learn that the patch in issue10241 has made things quite a bit better now: C extension modules can be collected much earlier. -- ___ Python tracker

[issue10241] gc fixes for module m_copy attribute

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 62658d9d8926 by Antoine Pitrou in branch 'default': Issue #10241: Clear extension module dict copies at interpreter shutdown. http://hg.python.org/cpython/rev/62658d9d8926 -- nosy: +python-dev ___ Python

[issue10241] gc fixes for module m_copy attribute

2013-08-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ P

[issue10241] gc fixes for module m_copy attribute

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I will still empty modules_by_index rather than Py_CLEAR it, though. -- ___ Python tracker ___ ___ P

[issue10241] gc fixes for module m_copy attribute

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, the patch doesn't apply cleanly but looks good regardless. (although I wonder whether you really reclaim significant stuff here: most C extension dicts should be mostly references to C methods and types) -- assignee: loewis -> nosy: +pitrou type: b

[issue18589] cross-referencing doesn't work between the extending guide and c-api

2013-08-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ P

[issue18589] cross-referencing doesn't work between the extending guide and c-api

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset bb546f6d8ab4 by Antoine Pitrou in branch '2.7': Issue #18589: fix hyperlinking of type slots (tp_*) http://hg.python.org/cpython/rev/bb546f6d8ab4 -- ___ Python tracker

[issue18589] cross-referencing doesn't work between the extending guide and c-api

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset a381721299a3 by Antoine Pitrou in branch '3.3': Issue #18589: fix hyperlinking of type slots (tp_*) http://hg.python.org/cpython/rev/a381721299a3 New changeset 36ff479e429c by Antoine Pitrou in branch 'default': Issue #18589: fix hyperlinking of typ

[issue18608] Avoid keeping a strong reference to locale in the _io module

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks Brett for reviewing. This is now pushed. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue18608] Avoid keeping a strong reference to locale in the _io module

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1c9aa4f68f2b by Antoine Pitrou in branch 'default': Issue #18608: Avoid keeping a strong reference to the locale module inside the _io module. http://hg.python.org/cpython/rev/1c9aa4f68f2b -- nosy: +python-dev _

[issue18558] Iterable glossary entry needs clarification

2013-08-01 Thread Stephen Paul Chappell
Stephen Paul Chappell added the comment: If my program needed to know if an object is iterable, it would be tempting to define and call the following function instead of using collections.abc.Iterable: def iterable(obj): try: iter(obj) except TypeError:

[issue18619] atexit leaks callbacks in subinterpreters

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch was simple enough that I decided to push it as-is :) Don't hesitate to make comments if you want, though. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python t

[issue18619] atexit leaks callbacks in subinterpreters

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 71b63a32b1e3 by Antoine Pitrou in branch 'default': Issue #18619: Fix atexit leaking callbacks registered from sub-interpreters, and make it GC-aware. http://hg.python.org/cpython/rev/71b63a32b1e3 -- nosy: +python-dev _

[issue18619] atexit leaks callbacks in subinterpreters

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. It also enables GC on the atexit module. -- keywords: +patch Added file: http://bugs.python.org/file31113/atexit_leaks.patch ___ Python tracker ___

[issue18472] Update PEP 8 to encourage modern conventions

2013-08-01 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: @Guido am glad for the patch; it's a nice compromise -- ___ Python tracker ___ ___ Python-bugs

[issue18472] Update PEP 8 to encourage modern conventions

2013-08-01 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue18619] atexit leaks callbacks in subinterpreters

2013-08-01 Thread Antoine Pitrou
New submission from Antoine Pitrou: atexit uses PEP 3121 module initialization, and by this scheme each subinterpreter gets a separate module state. However, atexit's m_free doesn't actually decref the callbacks: it only frees the callbacks array, thinking the callbacks were already decref'ed

[issue18257] Two copies of python-config

2013-08-01 Thread Larry Hastings
Larry Hastings added the comment: Thanks, Matthias! Now I can cut 3.4a1 on time. :) -- ___ Python tracker ___ ___ Python-bugs-list m

[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2013-08-01 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: UnboundLocalError is effect of partially incorrect fix for this bug. It is better to update Versions field. -- resolution: fixed -> status: closed -> open versions: +Python 3.1 -Python 3.3, Python 3.4 __

[issue17998] internal error in regular expression engine

2013-08-01 Thread Larry Hastings
Larry Hastings added the comment: I'm downgrading this to "deferred blocker". I'm sure we'll get it fixed for Python 3.4 final, but in the meantime there's no sense in holding up Python 3.4a1 for it. -- priority: release blocker -> deferred blocker ___

[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2013-08-01 Thread Larry Hastings
Larry Hastings added the comment: You're talking about a new bug. Please open a new issue. I'm closing this issue right now because I want to cut a Python 3.4 alpha release tomorrow, and this bug is marked Python 3.4 and "release blocker". -- resolution: -> fixed status: open -> clos

[issue18618] Need an atexit.register equivalent that also works in subinterps

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: (note that weakref.finalize indirectly suffers from this problem) -- ___ Python tracker ___ ___ Pyth

[issue18618] Need an atexit.register equivalent that also works in subinterps

2013-08-01 Thread Antoine Pitrou
New submission from Antoine Pitrou: Callbacks registered with atexit.register() are only called at shutdown of the main interpreter. For some purposes (perhaps most of them, arguably), you actually want to execute the callbacks at subinterpreter shutdown too. -- messages: 194092 nosy:

[issue18618] Need an atexit.register equivalent that also works in subinterps

2013-08-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Interpreter Core, Library (Lib) priority: normal -> low type: -> enhancement versions: +Python 3.4 ___ Python tracker ___ ___

[issue18517] "xxlimited" extension declared incorrectly in setup.py

2013-08-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2013-08-01 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: The fix in 2.6, 2.7, 3.1 and 3.2 branches introduced UnboundLocalError occurring when a non-None baseName parameter is passed. At least a part of fa82071bb7e1 should be backported to 2.6, 2.7, 3.1 and 3.2 branches. $ python2.7 -c 'import T

[issue18617] TLS and Intermediate Certificates

2013-08-01 Thread Christian Heimes
Christian Heimes added the comment: Thx! Let's update the docs for 2.7 to 3.4 first. For AIA intermediate cert retrieval we have to use OpenSSL's verify hook. It's a pain to implement all necessary bits and hard to use, though. :( -- nosy: +christian.heimes versions: +Python 2.7, Pyt

[issue18472] Update PEP 8 to encourage modern conventions

2013-08-01 Thread Guido van Rossum
Guido van Rossum added the comment: See proposed patch at https://codereview.appspot.com/12269044/ . -- ___ Python tracker ___ ___ Pyt

[issue18617] TLS and Intermediate Certificates

2013-08-01 Thread Donald Stufft
New submission from Donald Stufft: Currently the Python SSL module requires the full chain, including all intermediaries, to be served in order to validate a TLS connection. This isn't *wrong* however a number of folks have had issues trying to setup a custom PyPI index in pip due to missing t

[issue18614] Enhanced \N{} escapes for Unicode strings

2013-08-01 Thread Matthew Barnett
Matthew Barnett added the comment: I've attached a patch for this. -- keywords: +patch nosy: +mrabarnett Added file: http://bugs.python.org/file31112/issue18614.patch ___ Python tracker

[issue18472] Update PEP 8 to encourage modern conventions

2013-08-01 Thread Guido van Rossum
Guido van Rossum added the comment: I think the current wording about line length makes it too easy to adopt 99 instead of 79. I propose to go back to 79 only, and add this before the paragraph starting with "The preferred way of wrapping long lines ..." """ Some teams strongly prefer a longe

[issue18569] Set PATHEXT in the Windows installer

2013-08-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the patch. It works fine (with the expected limitation that you need to restart running shells for this to take effect). -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue18569] Set PATHEXT in the Windows installer

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2a38e4da6ce8 by Martin v. Löwis in branch 'default': Issue #18569: The installer now adds .py to the PATHEXT variable http://hg.python.org/cpython/rev/2a38e4da6ce8 -- nosy: +python-dev ___ Python tracker

[issue18616] enable more ssl socket options with get_server_certificate

2013-08-01 Thread Derek Wilson
New submission from Derek Wilson: ssl.get_server_certificate does not allow advanced options like what ciphers to use (for ssl2 for instance) or SNI for virtual hosts with multiple ssl sites on one IP address. Adding **kwargs enables any current and future SSLSocket options to be passed along

[issue3778] python uninstaller leave registry entries

2013-08-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: Nobody has contributed a patch in five years, so it apparently is pretty hard. -- ___ Python tracker ___ ___

[issue16111] Python 2.7.3 Windows MSI installer installs the VC++ 9 dlls directly to WinSxS folder

2013-08-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: This is not true. Installing the modules into the SxS folder using the Merge Module (msm) is also a recommended way of installing the DLLs. I fail to see a problem in this report. -- nosy: +loewis ___ Python tracke

[issue18615] sndhdr.whathdr could return a namedtuple

2013-08-01 Thread Claudiu.Popa
New submission from Claudiu.Popa: Both sndhdr.whathdr an sndhdr.what returns a tuple with various information, while it could return a namedtuple. I attached a patched for this, with tests as well. -- components: Library (Lib) files: sndhdr.patch keywords: patch messages: 194080 nosy:

[issue18214] Stop purging modules which are garbage collected before shutdown

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, let's attack the rest separately then :) And thanks a lot for testing! -- status: open -> closed ___ Python tracker ___

[issue18472] Update PEP 8 to encourage modern conventions

2013-08-01 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks a bundle, Nick! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue9035] os.path.ismount on windows doesn't support windows mount points

2013-08-01 Thread Tim Golden
Tim Golden added the comment: Fixed. Thanks for the patch -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue18214] Stop purging modules which are garbage collected before shutdown

2013-08-01 Thread Richard Oudkerk
Richard Oudkerk added the comment: Yes, I agree the patch is ok. It would be would be much simpler to keep track of the module dicts if they were weakrefable. Alternatively, at shutdown a weakrefable object with a reference to the module dict could be inserted in to each module dict. We cou

[issue18614] Enhanced \N{} escapes for Unicode strings

2013-08-01 Thread Steven D'Aprano
New submission from Steven D'Aprano: As per the discussion here: http://mail.python.org/pipermail/python-ideas/2013-July/022419.html \N{} escapes should support the Unicode code point notation U+ (where there are four, five or six hex digits after the U+). E.g. '\N{U+03BB}' => 'λ' unicod

[issue18257] Two copies of python-config

2013-08-01 Thread Matthias Klose
Matthias Klose added the comment: checked in a fix for the readlink issue, and Ronald's proposed solution for Darwin. And documented for now, that we do have two versions of this script. This works as long as you don't cross-build for Darwin or on Darwin. --

[issue18257] Two copies of python-config

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7b165c7ab7ef by doko in branch 'default': - Issue #18257: Fix readlink usage in python-config. Install the python http://hg.python.org/cpython/rev/7b165c7ab7ef -- nosy: +python-dev ___ Python tracker

[issue14130] memoryview: add multi-dimensional indexing and slicing

2013-08-01 Thread DLowell
DLowell added the comment: Is this issue still being worked on? -- nosy: +DLowell ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18612] More elaborate documentation on how list comprehensions and generator expressions relate to each other

2013-08-01 Thread R. David Murray
R. David Murray added the comment: Well, it is the case that if you substitute a list comprehension for a generator expression in arbitrary code, most of the time it would work but occasionally it wouldn't, because the runtime behavior is different (lazy production versus all-at-once productio

[issue18472] Update PEP 8 to encourage modern conventions

2013-08-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Aug 01, 2013, at 12:19 PM, Nick Coghlan wrote: >I *didn't* make any changes in relation to Barry's comment about having the >commentary intermixed with the guidelines. I quite like the notion of >stripping PEP 8 down to just the essentials and having PEP 108

[issue18214] Stop purging modules which are garbage collected before shutdown

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Also, do note that purge/gc after wiping can still be a regular gc > pass unless the module has been wiped. The gc could be triggered by > another module being wiped. That said, I welcome any suggestions to improve things. The ultimate reasons we need to purge

[issue18612] More elaborate documentation on how list comprehensions and generator expressions relate to each other

2013-08-01 Thread uglemat
uglemat added the comment: > Is it right to correct someone and say that generator expressions are in fact > *not* generator expressions? Ups, I meant "Is it right to correct someone and say that generator expressions are in fact *not* list comprehensions?" All these expressions and comprehen

  1   2   >