[issue24725] test_socket testFDPassEmpty fails on OS X 10.11 DP with "Cannot allocate memory"

2015-11-18 Thread Jeff Ramnani
Jeff Ramnani added the comment: I'm still getting these test failures on OS X 10.11.1. Has a radar been filed with Apple? I'd submit one, but I don't know enough about the issue to create a good bug report. In the meantime, I'm attaching a patch to skip these tests as was done in issue

[issue25655] Python errors related to failures loading DLL's lack information

2015-11-18 Thread Steve Dower
Steve Dower added the comment: I don't know that we can necessarily provide correct information for those errors as it depends where they actually fail. If we're simply passing on an error from the loader, then there's very little we can do. We may be able to make an educated guess based on

[issue25589] test_ascii_formatd fails on Mac when built with Intel compiler

2015-11-18 Thread Chris Hogan
Changes by Chris Hogan : -- resolution: not a bug -> status: closed -> open ___ Python tracker ___

[issue25652] collections.UserString.__rmod__() raises NameError

2015-11-18 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___

[issue25658] PyThread assumes pthread_key_t is an integer, which is against POSIX

2015-11-18 Thread Ed Schouten
New submission from Ed Schouten: While trying to port Python over to a new platform (CloudABI), I noticed a couple of compiler errors in PyThread_create_key(), PyThread_delete_key(), PyThread_delete_key_value() and PyThread_set_key_value() caused by fact that pthread_key_t is converted to an

[issue25304] Add run_coroutine_threadsafe() to asyncio

2015-11-18 Thread R. David Murray
R. David Murray added the comment: I think the 'versionchanged' should say "3.4.4, 3.5.1". We've already had one user confused by the fact that it isn't in 3.5.0. -- ___ Python tracker

[issue25659] ctypes.Array.from_buffer segmentation fault when trying to create from array.array

2015-11-18 Thread Ely Spears
New submission from Ely Spears: I'm trying to find a way to create a ctypes array from the underlying memory buffer exposed by an array.array object. The ctypes.Array.from_buffer function isn't documented, but I did find the source code in _ctypes.c around line 497. It's not clear to me where

[issue25304] Add run_coroutine_threadsafe() to asyncio

2015-11-18 Thread Yury Selivanov
Yury Selivanov added the comment: Good catch! Fixed in https://hg.python.org/cpython/rev/b34c42e46e7b -- ___ Python tracker ___

[issue25660] tabs don't work correctly in python repl

2015-11-18 Thread Yury Selivanov
New submission from Yury Selivanov: When Python is compiled with readline, repeatedly pressing key in repl breaks the repl prompt. Below is what I see when I hit 4 times. yury@ysmac ~/dev/py/cpython $ ./python.exe Python 3.5.0+ (3.5:4ae62ddf7bc7+, Nov 18 2015, 14:52:57) [GCC

[issue15564] cgi.FieldStorage should not call read_multi on files

2015-11-18 Thread Mark Bordas
Mark Bordas added the comment: Was this ever addressed or resolved? I just ran into this bug and it looks like there's a solution, but was never fixed? -- nosy: +Mark Bordas versions: +Python 2.7 -Python 3.2 ___ Python tracker

[issue25659] ctypes.Array.from_buffer segmentation fault when trying to create from array.array

2015-11-18 Thread Eryk Sun
Eryk Sun added the comment: You have to subclass ctypes.Array with a _type_ and _length_. But ctypes types also implement sequence repetition (*) to facilitate creating array types. For example: import array, ctypes a1 = array.array('l') a1.fromlist(range(10)) c1 =

[issue25612] nested try..excepts don't work correctly for generators

2015-11-18 Thread Yury Selivanov
Yury Selivanov added the comment: > Thinking about the __context__ thing some more, I guess it might make sense > for __context__ to be overwritten by the generator context. The same way it > gets overwritten when you execute “raise” inside an exception handler. Not sure I understand what

[issue25660] tabs don't work correctly in python repl

2015-11-18 Thread R. David Murray
R. David Murray added the comment: This was reported (on twitter) by David Beazly as well, as applying to the OSX downloaded from python.org. It works fine on linux for me. Is it readline-version dependent, or a bug in the readline shipped with OSX? -- components: +Macintosh nosy:

[issue23200] Deprecate the zlib decompressor’s flush() method

2015-11-18 Thread Martin Panter
Martin Panter added the comment: For the bz2 and lzma modules, neither decompressor classes have a flush() method, only the compressors. -- ___ Python tracker

[issue23661] Setting a exception side_effect on a mock from create_autospec does not work

2015-11-18 Thread Dmitry Andreychuk
Dmitry Andreychuk added the comment: python 3.4.3 is also affected. Is it possible to fix this in branch 3.4? -- nosy: +and versions: +Python 3.4 ___ Python tracker

[issue25654] test_multiprocessing_spawn ResourceWarning with -Werror

2015-11-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: sys.stdin is set to open(os.devnull) in multiprocessing.forkserer and multiprocessing.process (see issue5313). At shutdown stage sys.std* streams are restored to sys.__std*__. Here the resource warning is emitted. An example that demonstrates similar issue:

[issue23200] Deprecate the zlib decompressor’s flush() method

2015-11-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Besides unconsumed_tail there is an internal buffer. Even if flush() is no longer needed in the zlib decompresser (I don't know), I doubt about bz2 and lzma. -- nosy: +serhiy.storchaka ___ Python tracker

[issue25655] Python errors related to failures loading DLL's lack information

2015-11-18 Thread never-eat-yellow-snow
New submission from never-eat-yellow-snow: Currently you get errors like this: ImportError: DLL load failed: The specified procedure could not be found. ImportError: DLL load failed: The specified module could not be found. It would be nice to include more information, at least the name of the

[issue10128] multiprocessing.Pool throws exception with __main__.py

2015-11-18 Thread Marc Schlaich
Marc Schlaich added the comment: Please see my latest comments to https://github.com/pypa/pip/issues/1891. tl;dr It is related to the -m switch as pip's wheel launcher does PYTHONPATH=script.exe python -m __main__ -- ___ Python tracker

[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2015-11-18 Thread Chris Withers
Chris Withers added the comment: Cool, what needs to happen for __wrapped__ in to be blacklisted in call? Separately, inspect.unwrap probably needs to use something less fragile than a set of ids to track whether it's stuck in a loop. What is the actual usecase for __wrapped__ how deeply

[issue25653] ctypes+callbacks+fork+selinux = crash

2015-11-18 Thread Eryk Sun
Changes by Eryk Sun : -- nosy: +eryksun ___ Python tracker ___ ___ Python-bugs-list

[issue25657] virtualenv's activate does not update LD_LIBRARY_PATH

2015-11-18 Thread serge-sans-paille
New submission from serge-sans-paille: My use cas of virtual env was the following: 1. create a virtual env 2. install a third party shared library and its python wrapper 3. import the wrapper that itself loads the shared library The problem is that the shared library gets install into /lib

[issue25656] multiprocessing.dummy: pool.map hangs on empty list

2015-11-18 Thread Tomer
New submission from Tomer: Hi, In multiprocessing.dummy module I noticed when you send a zero-length iterator to pool.map it hang forever, Code example: import urllib2 from multiprocessing.dummy import Pool as ThreadPool def start_multithreading_urlopen(threads_num): pool =

[issue20387] tokenize/untokenize roundtrip fails with tabs

2015-11-18 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- status: open -> closed ___ Python tracker ___ ___

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-11-18 Thread Martin Panter
Martin Panter added the comment: The fix here doesn’t work perfectly with the Editline (libedit) version of Readline; see Issue 25660. -- ___ Python tracker

[issue25660] tabs don't work correctly in python repl

2015-11-18 Thread Martin Panter
Martin Panter added the comment: I think this might just be a side effect of the way we abuse the tab completer to insert a literal tab (Issue 23441, revision 82ccdf2df5ac). If I change the code to insert the letter T instead of tabs: if not text.strip('T'): if state == 0: return

[issue25533] Make pkgutil.iter_modules() yield built-in modules

2015-11-18 Thread Martin Panter
Martin Panter added the comment: I did some work on adding support for frozen modules, but I got stuck. The low level is fine: >>> pprint(sys.get_frozen_modules()) # (name, ispkg) pairs (('_frozen_importlib', False), ('_frozen_importlib_external', False), ('__hello__', False),

[issue19217] Calling assertEquals for moderately long list takes too long

2015-11-18 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___

[issue10845] test_multiprocessing failure under Windows

2015-11-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5d88c1d413b9 by Nick Coghlan in branch '2.7': Close #10128: don't rerun __main__.py in multiprocessing https://hg.python.org/cpython/rev/5d88c1d413b9 -- nosy: +python-dev ___ Python tracker

[issue10128] multiprocessing.Pool throws exception with __main__.py

2015-11-18 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for the investigation Marc. I'd been hesitant to backport the mitigation patch in #10845 to 2.7.x, (as it *does* represent a behavioural change), but if that code path is currently hitting an assert statement anyway, it seems reasonable to make the

[issue25660] tabs don't work correctly in python repl

2015-11-18 Thread Martin Panter
Martin Panter added the comment: Applying my patch at Issue 13501, then building with “autoreconf && ./configure --with-readline=editline”, I can reproduce the funny tab behaviour on Linux. -- ___ Python tracker

[issue25662] _tkinter.TclError: bad event type or keysym "Alt"

2015-11-18 Thread Chesqa Yen
Chesqa Yen added the comment: Under the users .idlerc folder: C:\Users\Francesca\.idlerc edit config-extensions.cfg in notepad (don't select always open with) The code should look like this: [CodeContext] visible = False [ScriptBinding_cfgBindings] run-module = So edited mine to be like

[issue25612] nested try..excepts don't work correctly for generators

2015-11-18 Thread Larry Hastings
Larry Hastings added the comment: I don't plan to hold up 3.5.1 for this. -- priority: release blocker -> normal ___ Python tracker ___

[issue25663] Make rlcompleter avoid duplicate global names

2015-11-18 Thread Martin Panter
New submission from Martin Panter: When playing with the Editline alternative to Readline, I noticed that “global” name completions can include duplicates: >>> No None NotADirectoryError( NotImplementedError( None NotImplemented >>> None None None It

[issue10128] multiprocessing.Pool throws exception with __main__.py

2015-11-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5d88c1d413b9 by Nick Coghlan in branch '2.7': Close #10128: don't rerun __main__.py in multiprocessing https://hg.python.org/cpython/rev/5d88c1d413b9 -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open -> closed

[issue25472] Typing: Specialized subclasses of generics cannot be unpickled

2015-11-18 Thread Guido van Rossum
Guido van Rossum added the comment: Update: I have not forgotten this, but it's a tough case and I haven't made much progress. I don't think I'll make the deadline for 3.5.1. -- assignee: -> gvanrossum ___ Python tracker

[issue25660] tabs don't work correctly in python repl

2015-11-18 Thread Martin Panter
Martin Panter added the comment: Is this related to the BSD editline library (libedit), or is the actual Gnu Readline library being used? Apparently you can check for "libedit" in readline.__doc__ to tell the difference. -- nosy: +martin.panter ___

[issue25660] tabs don't work correctly in python repl

2015-11-18 Thread Martin Panter
Martin Panter added the comment: David Beazley’s description of the bug: “hitting tab inserts spaces and a carriage return at the same time.” -- ___ Python tracker

[issue25637] Move non-collections-related ABCs out of collections.abc

2015-11-18 Thread Yury Selivanov
Yury Selivanov added the comment: > I guess is the objection of putting concrete ABCs in the abc module is that > the abc module contains the actual code to implement ABCs and not ABCs > themselves. I think it's a rather weak objection. Having some basic (and fundamental!) ABCs defined

[issue25612] nested try..excepts don't work correctly for generators

2015-11-18 Thread Martin Panter
Martin Panter added the comment: I was making an analogy between how the “raise” statement works, and how the throw() method could work. In this example, there are three exception objects (MainError, SubError, and ValueError). I was suggesting that it is okay for the context to be set to the

[issue20387] tokenize/untokenize roundtrip fails with tabs

2015-11-18 Thread Martin Panter
Martin Panter added the comment: It seems the problem with tabs in the indentation is fixed. Can we close this? For the problem with tabs between tokens in a line, I think that would be better handled in separate report. But I suspect it is at worst a documentation problem. You can’t

[issue25659] ctypes.Array.from_buffer segmentation fault when trying to create from array.array

2015-11-18 Thread Xiang Zhang
Changes by Xiang Zhang <18518281...@126.com>: -- nosy: +xiang.zhang ___ Python tracker ___ ___

[issue25660] tabs don't work correctly in python repl

2015-11-18 Thread Yury Selivanov
Yury Selivanov added the comment: > Is this related to the BSD editline library (libedit), or is the actual Gnu > Readline library being used? Apparently you can check for "libedit" in > readline.__doc__ to tell the difference. Great suggestion. So on my machine, macports version (no bug)

[issue25662] _tkinter.TclError: bad event type or keysym "Alt"

2015-11-18 Thread Chesqa Yen
New submission from Chesqa Yen: For a while now my python IDLE has not been working, mostly due to me trying and failing to reconfigure the button assignment to tailor me. Now when i try to open idle it does not open. I tried using some sites for help

[issue25654] test_multiprocessing_spawn ResourceWarning with -Werror

2015-11-18 Thread Martin Panter
Martin Panter added the comment: Perhaps we don’t normally see a warning because stdin normally has closefd=False set? -- ___ Python tracker ___

[issue25626] Gzip fails for file over 2**32 bytes

2015-11-18 Thread Martin Panter
Martin Panter added the comment: I am inclined to commit my patch to get this fixed in the upcoming 3.5.1 release, unless anyone thinks that could be a problem. -- components: +Extension Modules ___ Python tracker

[issue25472] Typing: Specialized subclasses of generics cannot be unpickled

2015-11-18 Thread Guido van Rossum
Guido van Rossum added the comment: Actually, I just found an embarrassingly simple fix: diff --git a/src/typing.py b/src/typing.py index d900036..49c4a06 100644 --- a/src/typing.py +++ b/src/typing.py @@ -981,7 +981,7 @@ class GenericMeta(TypingMeta, abc.ABCMeta):

[issue25472] Typing: Specialized subclasses of generics cannot be unpickled

2015-11-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1d37f7dbbb37 by Guido van Rossum in branch '3.5': Issue #25472: In B[], insert B in front of __bases__, to make the __dict__ descriptor work. https://hg.python.org/cpython/rev/1d37f7dbbb37 New changeset 63c261185fc7 by Guido van Rossum in branch

[issue25664] Unexpected UnicodeDecodeError in logging module

2015-11-18 Thread Zephor Wu
New submission from Zephor Wu: # coding=utf-8 import logging logger = logging.getLogger(u'测试') logger.error(u'测试') # these code will get an unexpected error # because getLogger encode the unicode to utf-8 while _log don't # see line 474 in logging/__init__.py # my suggestion is to keep the

[issue25472] Typing: Specialized subclasses of generics cannot be unpickled

2015-11-18 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks for the report! Made it before the 3.5.1 (rc1) deadline. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue25664] Unexpected UnicodeDecodeError in logging module

2015-11-18 Thread Zephor Wu
Changes by Zephor Wu : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list

[issue25663] Make rlcompleter avoid duplicate global names

2015-11-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue25661] tokenize.untokenize does not maintain the order of tabbed indentations and leading spaces

2015-11-18 Thread Blake Hilliard
New submission from Blake Hilliard: Here's a simple test case that shows the bug: # python Python 2.7.9 (default, Apr 2 2015, 14:49:18) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import StringIO, tokenize >>> code = "if False:\n\tx=3\n