[issue16662] load_tests not invoked in package/__init__.py

2013-08-01 Thread Michael Foord
Michael Foord added the comment: I'm happy with the check being removed. The old behaviour was documented I believe - so there'd need to be documentation changes to go with it. As the old behaviour is so un-useful I don't think there are backward compatibility issues with changing it.

[issue17998] internal error in regular expression engine

2013-08-01 Thread Cédric Krier
Changes by Cédric Krier cedric.kr...@b2ck.com: -- nosy: +ced ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17998 ___ ___ Python-bugs-list mailing

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

2013-08-01 Thread Larry Hastings
Larry Hastings added the comment: I'm downgrading this to deferred blocker. We'll make sure it happens before Python 3.4.0, but there's no need to hold up Python 3.4a1 for this. -- priority: release blocker - deferred blocker ___ Python tracker

[issue18257] Two copies of python-config

2013-08-01 Thread Larry Hastings
Larry Hastings added the comment: Okay, downgrading to deferred blocker. -- priority: release blocker - deferred blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18257 ___

[issue5302] Allow package_data specs/globs to match directories

2013-08-01 Thread Larry Hastings
Larry Hastings added the comment: And this will hold up Python 3.4a1, as I can't close #13463 until this is closed first. So I'm closing this as wontfix. -- nosy: +larry resolution: - wont fix status: open - closed ___ Python tracker

[issue13463] Fix parsing of package_data

2013-08-01 Thread Larry Hastings
Larry Hastings added the comment: This was held up by #5302, so I just closed that one too as the same rule applies. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13463

[issue17998] internal error in regular expression engine

2013-08-01 Thread Larry Hastings
Larry Hastings added the comment: Can I downgrade this to deferred blocker? That means we still need to deal with it before the release, but we don't have to hold up Python 3.4a1 for it. -- ___ Python tracker rep...@bugs.python.org

[issue18181] PEP447: Add type.__locallookup__

2013-08-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: Updated the patch for PEP 442. -- Added file: http://bugs.python.org/file31107/issue-18181-full-v4.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18181

[issue5262] PythonLauncher considered harmfull

2013-08-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch removes the code that checks if Python Launcher is the default application for opening python files. -- Added file: http://bugs.python.org/file31108/issue-5262.txt ___ Python tracker

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

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: It appears that a few (1-3) module dicts are not being purged because they have been orphaned. (i.e. the module object was garbaged collected before we check the weakref, but the module dict survived.) Module globals can be kept alive by any function

[issue18611] Mac: Some Python Launcher issues

2013-08-01 Thread Ronald Oussoren
New submission from Ronald Oussoren: There are some issues with the Python Launcher application: 1) There is a useless 'Help' menu, the application does not include help (removal is trivial and doesn't affect functionality) 2) The list of interpreters does not include the framework

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

2013-08-01 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18608 ___ ___

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

2013-08-01 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18214 ___ ___

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

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: As for the __main__ dict, perhaps we're missing a decref somewhere. Actually, it's not surprising. Blob's methods hold a reference to the __main__ globals, and there's still a Blob object alive in encodings. If you replace the end of your script with the

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

2013-08-01 Thread Richard Oudkerk
Richard Oudkerk added the comment: On 01/08/2013 10:59am, Antoine Pitrou wrote: If you replace the end of your script with the following: for name, mod in sys.modules.items(): if name != 'encodings': mod.__dict__[__blob__] = Blob(name) del name, mod, Blob then at the end

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

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: You might want to open a prompt and look at gc.get_referrers() for encodings.mbcs.__dict__ (or another of those modules). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18214

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

2013-08-01 Thread Richard Oudkerk
Richard Oudkerk added the comment: You might want to open a prompt and look at gc.get_referrers() for encodings.mbcs.__dict__ (or another of those modules). gc.get_referrers(sys.modules['encodings.mbcs'].__dict__) [module 'encodings.mbcs' from

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

2013-08-01 Thread Tim Golden
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? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18306

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

2013-08-01 Thread Richard Oudkerk
Richard Oudkerk added the comment: I get different numbers from you. If I run ./python -v -c pass, most modules in the wiping phase are C extension modules, which is expected. Pretty much every pure Python module ends up garbage collected before that. The *module* gets gc'ed, sure. But

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

2013-08-01 Thread uglemat
New submission from uglemat: Today there are list comprehensions, set comprehensions, dict comprehensions and then... there are generator expressions, which apparently was called 'generator comprehensions' in the original PEP, don't know why that was changed. Some questions arises: * Are

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

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset f283589cb71e by Tim Golden in branch 'default': Issue #9035: os.path.ismount now recognises volumes mounted below http://hg.python.org/cpython/rev/f283589cb71e -- nosy: +python-dev ___ Python tracker

[issue18613] wrong float minus op result

2013-08-01 Thread Laurent Fournier
New submission from Laurent Fournier: Python 3.3.1 (with GCC 4.7.3) on Linux print (.3-.1) 0.18 -- messages: 194050 nosy: Laurent.Fournier priority: normal severity: normal status: open title: wrong float minus op result type: behavior versions: Python 3.3

[issue18517] xxlimited extension declared incorrectly in setup.py

2013-08-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: I would be fine with it being build only in a debug build. The rationale for the module is that it should test whether the header files actually compile under the limited API (or whether e.g. some functions are exposed that rely on unexposed structures). So

[issue18521] [cppcheck] Full report

2013-08-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: Julien: I propose to resolve this issue in the same way as we have done previously with analysis tools (with some unfortunate exceptions). Somebody motivated enough (hopefully you) agrees to initially study the tool output, and ideally also then agrees to

[issue18613] wrong float plus/minus op result

2013-08-01 Thread Laurent Fournier
Laurent Fournier added the comment: also with addition ! print (.05+.01) 0.065 -- title: wrong float minus op result - wrong float plus/minus op result ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18613

[issue18472] Update PEP 8 to encourage modern conventions

2013-08-01 Thread Nick Coghlan
Nick Coghlan added the comment: Changes in version 5: - added a new reference pointing back to this tracker issue. I figure that's a good precedent to set for future updates. - I liked Barry's point about Don't break backwards compatility enough that I moved it into its own paragraph ahead of

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

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here (Linux) I get the following: # purge/gc os.path 12 # purge/gc operator 50 # purge/gc io 49 # purge/gc _sysconfigdata 48 # purge/gc sysconfig 47 # purge/gc keyword 46 # purge/gc site 45 # purge/gc types 44 Also, do note that purge/gc after wiping can still

[issue18472] Update PEP 8 to encourage modern conventions

2013-08-01 Thread Nick Coghlan
Nick Coghlan added the comment: For the record, the thread where Thomas Wouters provided the feedback that led to the current wording regarding imports: http://mail.python.org/pipermail/python-dev/2013-July/127373.html -- ___ Python tracker

[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, you haven't done anything wrong, but I'm not sure what we can do in response to the report. What how will the answer to the question serve you? What will you know after getting the answer that you didn't know before getting the answer? I'm trying

[issue12645] test.support. import_fresh_module - incorrect doc

2013-08-01 Thread Eli Bendersky
Eli Bendersky added the comment: Ben, would you like to provide an updated patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12645 ___ ___

[issue3591] elementtree tests do not include bytes handling

2013-08-01 Thread Eli Bendersky
Eli Bendersky added the comment: Quite a bit of encoding-related tests were added recently (by Serhiy, IIRC). Unless there are objections or more specific test suggestions, I will close this issue in a few days. -- ___ Python tracker

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2013-08-01 Thread Eli Bendersky
Eli Bendersky added the comment: Serhiy, do you want to backport the buffer overflow fix to 2.7? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13612 ___

[issue18613] wrong float plus/minus op result

2013-08-01 Thread Brett Cannon
Brett Cannon added the comment: This is actually expected because that is just how floating point works in programming (see http://en.wikipedia.org/wiki/Floating_point for all the gnarly details). If you want exact decimal arithmetic, use the decimal module (which got significantly faster in

[issue18472] Update PEP 8 to encourage modern conventions

2013-08-01 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18472 ___

[issue17372] provide pretty printer for xml.etree.ElementTree

2013-08-01 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks for the report (Eric) and the patch (Alex). There are currently some open bugs we need to handle first, so this is somewhat lower priority. I hope to get to it before the 3.4 release. -- ___ Python tracker

[issue18472] Update PEP 8 to encourage modern conventions

2013-08-01 Thread Nick Coghlan
Nick Coghlan added the comment: Heh, I just realised a correct generator definition would have needed the loop-and-a-half internally anyway: def itervalues(x): while True: value = x.getvalue() if not value: break yield value --

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

2013-08-01 Thread uglemat
uglemat added the comment: Yeah I think the differences are pretty easy to comprehend. To be honest the reason I came here is that I had an argument where someone commented on my code (where I used a generator expression) saying something akin to list comprehensions are nice, so I replied

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

2013-08-01 Thread Richard Oudkerk
Richard Oudkerk 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. For me, the modules which die naturally after purging begins are # purge/gc encodings.aliases

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

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5258c4399f2e by Tim Golden in branch 'default': issue9035: Prevent Windows-specific tests from running on non-Windows platforms http://hg.python.org/cpython/rev/5258c4399f2e -- ___ Python tracker

[issue10434] Document the rules for public names

2013-08-01 Thread Nick Coghlan
Nick Coghlan added the comment: PEP 8 now covers the developer side of things: http://www.python.org/dev/peps/pep-0008/#public-and-internal-interfaces A user facing counterpart describing our backwards compatibility policy is still desirable. Updating PEP 5 wouldn't go astray, since that's

[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

[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

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue14130 ___ ___

[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

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

[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}' = 'λ'

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue9035

[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 rep...@bugs.python.org http://bugs.python.org/issue18472 ___ ___ Python-bugs-list mailing

[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 rep...@bugs.python.org http://bugs.python.org/issue18214 ___

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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue3778 ___

[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

[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

[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

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

[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 rep...@bugs.python.org http://bugs.python.org/issue18614

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue18472 ___

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

[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

[issue18517] xxlimited extension declared incorrectly in setup.py

2013-08-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18517 ___

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

2013-08-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Interpreter Core, Library (Lib) priority: normal - low type: - enhancement versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18618

[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
Antoine Pitrou added the comment: (note that weakref.finalize indirectly suffers from this problem) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18618 ___

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

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

[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 rep...@bugs.python.org http://bugs.python.org/issue18257 ___

[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

[issue18472] Update PEP 8 to encourage modern conventions

2013-08-01 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18472 ___ ___

[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 rep...@bugs.python.org http://bugs.python.org/issue18472 ___

[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 rep...@bugs.python.org

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

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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue18608

[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

[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 rep...@bugs.python.org

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

2013-08-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18589 ___

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

[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 rep...@bugs.python.org http://bugs.python.org/issue10241 ___

[issue10241] gc fixes for module m_copy attribute

2013-08-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10241 ___

[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

[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 rep...@bugs.python.org

[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 rep...@bugs.python.org

[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

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

[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

[issue1294959] Problems with /usr/lib64 builds.

2013-08-01 Thread Catalin Iacob
Changes by Catalin Iacob iacobcata...@gmail.com: -- nosy: +catalin.iacob ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___ ___

[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? -- ___ Python

[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

[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

[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 function mock_open at 0x10cff9d20 [107974 refs] a = mock.mock_open() [109965 refs] a.reset_mock() ... -- assignee:

[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

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

  1   2   >