[issue25771] importlib: '.submodule' is not a relative name (no leading dot)

2015-11-30 Thread Martin Panter
New submission from Martin Panter: >>> import importlib.util >>> importlib.util.resolve_name(".submodule", None) Traceback (most recent call last): File "", line 1, in File "/home/proj/python/cpython/Lib/importlib/util.py", line 26, in resolve_name '(no leading dot)'.format(name)) Value

[issue25767] asyncio documentation section 18.5.2.3.1. (Windows) links to French Wikipedia in English docs

2015-11-30 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the report! -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue25767] asyncio documentation section 18.5.2.3.1. (Windows) links to French Wikipedia in English docs

2015-11-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset f475379bf22c by Zachary Ware in branch '3.4': Issue #25767: Link to English Wikipedia instead of French. https://hg.python.org/cpython/rev/f475379bf22c New changeset fee19d2d7713 by Zachary Ware in branch '3.5': Issue #25767: Merge with 3.4 https://

[issue14285] Traceback wrong on ImportError while executing a package

2015-11-30 Thread Martin Panter
Martin Panter added the comment: I suspect a proper solution of this bug would also help with Issue 16217 (provide only the relevant traceback for exceptions from user code). -- ___ Python tracker

[issue25708] runpy hides traceback for some exceptions

2015-11-30 Thread Martin Panter
Martin Panter added the comment: I think there are a couple of related bugs here, with open reports: 1. Issue 14285: runpy catches various exceptions including AttributeError, and incorrectly assumes this means you gave it a bad module or package name. 2. Issue 19771: runpy incorrectly interpr

[issue25764] PyObject_Call() is called with an exception set in subprocess

2015-11-30 Thread Martin Panter
Martin Panter added the comment: This patch fixes the exception when releasing the import lock. I also moved the Py_XDECREF(gc_module) back out to where it was to keep the patch to a minimum, but I don’t really see a way to simplify it much more. Apparently Solaris supports posix_spawn(), whic

[issue25770] expose name, args, and kwargs from methodcaller

2015-11-30 Thread Emanuel Barry
Changes by Emanuel Barry : -- nosy: +ebarry stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue25770] expose name, args, and kwargs from methodcaller

2015-11-30 Thread Joe Jevnik
New submission from Joe Jevnik: This patch adds 3 properties to methodcaller objects for inspecting the object at runtime: 1. 'name': the name of the method to call 2. 'args': the position arguments to pass to the method 3. 'keywords': the keyword arguments to pass to the method args and keywo

[issue22636] avoid using a shell in ctypes.util: replace os.popen with subprocess

2015-11-30 Thread Martin Panter
Martin Panter added the comment: Marking for bug fix in 2.7, requested in Issue 25751. -- type: enhancement -> behavior versions: +Python 2.7, Python 3.4, Python 3.6 ___ Python tracker _

[issue25751] ctypes.util , Shell Injection in find_library()

2015-11-30 Thread Martin Panter
Martin Panter added the comment: I do not believe 3.5 is fixed either: $ python3.5 Python 3.5.0 (default, Sep 20 2015, 11:28:25) [GCC 5.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ctypes.util >>> ctypes.util.find_library("; echo Hello shell >&

[issue25751] ctypes.util , Shell Injection in find_library()

2015-11-30 Thread Dimitri John Ledkov
Dimitri John Ledkov added the comment: Whilst fixed in 3.5, it is not fixed in 2.7. And the reporter believes this is a security vulnerability. Can this be cherry-picked into the 2.7 branch? -- nosy: +xnox ___ Python tracker

[issue25698] test regressions introduced with the fix for #22995

2015-11-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: ... for protocols < 2. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue25698] test regressions introduced with the fix for #22995

2015-11-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Default __reduce_ex__ and __reduce__ implementations call copy_reg._reduce_ex. cPickle.dumps({}) works because __reduce_ex__ is not called, dict is supported by pickle directly. -- ___ Python tracker

[issue25698] test regressions introduced with the fix for #22995

2015-11-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I set a breakpoint where the error occurs. I'm in test_cpickle.py dumps(). Doing cPickle.dumps(arg) in the bp, I get the error. arg is: (Pdb) arg {<__main__.H object at 0x7ff8e2a870d0>: None} (Pdb) type(arg) Look again at the AttributeError: (Pdb) cPick

[issue25698] test regressions introduced with the fix for #22995

2015-11-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please add debugging output to check that the copy_reg module is empty if tests failed? -- ___ Python tracker ___ _

[issue25698] test regressions introduced with the fix for #22995

2015-11-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: But if I just run test_cpickle.py, it succeeds! -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue25698] test regressions introduced with the fix for #22995

2015-11-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: First failure in test run afaict: == ERROR: test_recursive_dict_subclass_and_inst (test.test_cpickle.cStringIOCPicklerFastTests) ---

[issue25698] test regressions introduced with the fix for #22995

2015-11-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: This seems entirely reproducible in a local Xenial sbuild using the source packages in https://launchpad.net/~doko/+archive/ubuntu/toolchain/+packages Interestingly, inspection of the built artifacts in the schroot after all is done yields: # find . -name co

[issue25718] itertools.accumulate __reduce__/__setstate__ bug

2015-11-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The bug in the copy module is fixed. As for accumulate's __reduce__, I don't think we can do something. -- ___ Python tracker ___ ___

[issue25765] Installation error

2015-11-30 Thread Eryk Sun
Eryk Sun added the comment: > The error code is from Windows Update (which we sometimes need to > run as part of the install), and there's so much spam out there > these days that it is impossible to find out what it means. The error is WU_E_NOT_INITIALIZED [1], "the object could not be initia

[issue25765] Installation error

2015-11-30 Thread Steve Dower
Steve Dower added the comment: Hard to tell, but you may just need to reboot. I'd also make sure you've installed all Windows Updates that you need, as the one we're trying to install should be in there (which means our installer doesn't have to do it). The error code is from Windows Update (w

[issue25718] itertools.accumulate __reduce__/__setstate__ bug

2015-11-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 095d21df9374 by Serhiy Storchaka in branch '3.4': Issue #25718: Fixed copying object with state with boolean value is false. https://hg.python.org/cpython/rev/095d21df9374 New changeset 3d39e1e2dcb3 by Serhiy Storchaka in branch '2.7': Issue #25718:

[issue25759] Python 2.7.11rc1 not building with Visual Studio 2015

2015-11-30 Thread Kovid Goyal
Kovid Goyal added the comment: No worries, as I said, I understand, I would probably do the same, were I in your shoes. I have found that being a maintainer of a complex software project tends to naturally increase conservatism :) -- ___ Python trac

[issue15500] Python should support exporting thread names to the OS

2015-11-30 Thread R. David Murray
Changes by R. David Murray : -- stage: -> needs patch title: Python should support naming threads -> Python should support exporting thread names to the OS versions: +Python 3.6 -Python 3.4 ___ Python tracker ___

[issue25759] Python 2.7.11rc1 not building with Visual Studio 2015

2015-11-30 Thread R. David Murray
R. David Murray added the comment: Unfortunately it is unlikely we'll merge it, since because of the compiled extension issue we have a negative motivation for supporting anything other than the release compiler currently used. -- ___ Python tracker

[issue25769] Crash due to using weakref referent without acquiring a strong reference

2015-11-30 Thread Armin Rigo
Armin Rigo added the comment: Actually, Py_DECREF() may also release the GIL by calling a Python __del__() method; it doesn't have to directly decref the exact object. -- ___ Python tracker ___

[issue25627] distutils : file "bdist_rpm.py" does not quote filenames when executing the rpm command

2015-11-30 Thread SilentGhost
SilentGhost added the comment: Updated version of the patch including Martin's suggestions. -- Added file: http://bugs.python.org/file41197/issue25627_5.diff ___ Python tracker _

[issue25769] Crash due to using weakref referent without acquiring a strong reference

2015-11-30 Thread Armin Rigo
Armin Rigo added the comment: PyWeakref_GET_OBJECT() is inherently dangerous: the weakref might go away not only the next time the GIL is released, but also the next time the code does any seemingly unrelated Py_DECREF() (which might decref the object into inexistence) or memory allocation (wh

[issue25627] distutils : file "bdist_rpm.py" does not quote filenames when executing the rpm command

2015-11-30 Thread Martin Panter
Martin Panter added the comment: I left some comments on the code review. I think this definitely needs someone able to test it; I don’t think I am up to it. -- ___ Python tracker _

[issue25759] Python 2.7.11rc1 not building with Visual Studio 2015

2015-11-30 Thread Kovid Goyal
Kovid Goyal added the comment: I take it back, my methodology in reproducing the function calls used by the gzip module was flawed. It does look like a bug in the CRT, but I have not been able to isolate a simple way of reproducing it. I have however, found a workaround for it, that has an a

[issue25764] PyObject_Call() is called with an exception set in subprocess

2015-11-30 Thread Martin Panter
Martin Panter added the comment: Couldn’t re-enabling garbage collection cause errno to be overwritten? Even if I saved errno until later, there is still the RuntimeError from releasing the import lock to worry about. Now that I look closer, I see the lock release code path sets this exception

[issue25764] PyObject_Call() is called with an exception set in subprocess

2015-11-30 Thread STINNER Victor
STINNER Victor added the comment: > Assertion failed: !PyErr_Occurred(), file Objects/abstract.c, line 2158 Quick reminder: it's not a major bug if PyObject_Call() is called with an exception set. The exception will be kept in some cases. But I added the assertion because the exception is lost