[issue18050] embedded interpreter or virtualenv fails with ImportError: cannot import name MAXREPEAT

2013-05-27 Thread Ned Deily
Ned Deily added the comment: After spending some time investigating this issue, I believe that potential upgrade compatibility issues have been introduced by the changes for Issue13169. How critical they are and, in particular, whether they violate our implicit promises of maintenance

[issue18032] set methods should specify whether they consume iterators lazily

2013-05-27 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18032 ___

[issue18032] set methods should specify whether they consume iterators lazily

2013-05-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: We don't normally document implementation details or the presences or absence of internal optimizations. This gives us freedom to change the implementation and it allows freedom for other implementations (such as Jython, IronPython, and PyPy) to make

[issue1747670] Limiting data copy in xmlrpclib

2013-05-27 Thread Gael Le Mignot
Gael Le Mignot added the comment: It's not something that can be easily benched because it depends a lot of the use case. If some conditions are present (big amount of data sent to XML-RPC, the XML-RPC server taking a long time to answer, end either Python giving back the memory to the OS or

[issue18047] Descriptors get invoked in old-style objects and classes

2013-05-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: IMO nothing should change here (either the docs or the implementation). The OP has observed an implementation detail of old-style classes (which were reimplemented in Python 2.2 using descriptor logic instead of their former hard-wired behaviors).

[issue1747670] Limiting data copy in xmlrpclib

2013-05-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, it would be nice if you provided an example. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1747670 ___

[issue18069] Subprocess picks the wrong executable on Windows

2013-05-27 Thread berdario
berdario added the comment: I found out what's the problem, from the CreateProcess docs: http://msdn.microsoft.com/en-us/library/ms682425.aspx If the file name does not contain a directory path, the system searches for the executable file in the following sequence: The directory from which

[issue672115] Assignment to __bases__ of direct object subclasses

2013-05-27 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: -- versions: +Python 3.4 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue672115 ___

[issue672115] Assignment to __bases__ of direct object subclasses

2013-05-27 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: -- nosy: +lukasz.langa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue672115 ___ ___ Python-bugs-list

[issue18050] embedded interpreter or virtualenv fails with ImportError: cannot import name MAXREPEAT

2013-05-27 Thread Julian Berman
Changes by Julian Berman julian+python@grayvines.com: -- nosy: +Julian ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18050 ___ ___

[issue18050] embedded interpreter or virtualenv fails with ImportError: cannot import name MAXREPEAT

2013-05-27 Thread Samuel John
Samuel John added the comment: Ned, incredibly helpful description. Thanks for investigating! I have nothing to add to that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18050 ___

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2013-05-27 Thread Ed Maste
Changes by Ed Maste carpedd...@gmail.com: -- nosy: +Ed.Maste ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15745 ___ ___ Python-bugs-list mailing

[issue18070] change importlib.util.module_for_loader to unconditionally set attributes

2013-05-27 Thread Brett Cannon
New submission from Brett Cannon: importlib.util.module_for_loader (as well as set_package and set_loader) only set those attributes either when they are not already set or when the module is new. I realized this is a problem as it means a reload won't work the way one might expect. I want

[issue18071] _osx_support compiler_fixup

2013-05-27 Thread Samuel John
New submission from Samuel John: In the `_osx_support.py` module, there seems to be a bug in the method `compiler_fixup` which occurs if * the `customize_compiler` method from `distutils/sysconfig` has been called and after that * `_compile` from `distutils/unixcompiler.py` is called. The

[issue18071] _osx_support compiler_fixup

2013-05-27 Thread Samuel John
Samuel John added the comment: The symptom for the end-user looks kind of weird: running build_ext building 'Cython.Plex.Scanners' extension / A p p l i c a t i o n s / X c o d e . a p p / C o n t e n t s / D e v e l o p e r / T o o l c h a i n s / X c o d e D e f a u l t . x c t o o l c h

[issue18070] change importlib.util.module_for_loader to unconditionally set attributes

2013-05-27 Thread Eric V. Smith
Eric V. Smith added the comment: I don't think anyone would (or should!) write code that cares, so I think your proposed change is a good one. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18070

[issue18072] Add an implementation of importlib.abc.InspectLoader.get_code

2013-05-27 Thread Brett Cannon
New submission from Brett Cannon: I'm contemplating adding an implementation of importlib.abc.InspectLoader.get_code() which relies on get_source() (and then another version in ExecutionLoader which uses get_filename()). The reason I'm hesitant is get_source() is often an expensive operation

[issue18072] Add an implementation of importlib.abc.InspectLoader.get_code

2013-05-27 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18072 ___ ___ Python-bugs-list

[issue18070] change importlib.util.module_for_loader to unconditionally set attributes

2013-05-27 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18070 ___ ___

[issue18072] Add an implementation of importlib.abc.InspectLoader.get_code

2013-05-27 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18072 ___ ___

[issue15392] Create a unittest framework for IDLE

2013-05-27 Thread R. David Murray
R. David Murray added the comment: Heh. Yeah, I use patch because I don't just work with mercurial/python, and I find the patch command simpler to use for applying patches in general, since I never want an autocommit. (The exception would be if I'm applying a patch that involves extended

[issue8083] urllib proxy interface is too limited

2013-05-27 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- assignee: - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8083 ___

[issue17656] Python 2.7.4 breaks ZipFile extraction of zip files with unicode member paths

2013-05-27 Thread Markus bela
Changes by Markus bela domla...@yahoo.com: -- components: +Windows -Library (Lib), Unicode ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17656 ___

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-05-27 Thread Shriramana Sharma
Shriramana Sharma added the comment: I'm sorry but I don't get why this is a WONTFIX. I reported what is (now) apparently a dup: issue 18067. Just like the OP of this bug, I feel that in doing testing and such, one would naturally symlink and expect the library in the *current* directory to

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-05-27 Thread R. David Murray
R. David Murray added the comment: When a script is executed by python, it does *not* import from the CWD, it imports from the *location of the script*. From this, then, you can see that there are two possible interpretations of the location of the script when the script is a symlink, and we

[issue17987] test.support.captured_stderr, captured_stdin not documented

2013-05-27 Thread Dmi Baranov
Dmi Baranov added the comment: Added a patch -- keywords: +patch nosy: +dmi.baranov Added file: http://bugs.python.org/file30387/issue17987.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17987

[issue18015] python 2.7.5 fails to unpickle namedtuple pickled by 2.7.3 or 2.7.4

2013-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 687295c6c8f2 by Raymond Hettinger in branch '2.7': Issue #18015: Fix unpickling of 2.7.3 and 2.7.4 namedtuples. http://hg.python.org/cpython/rev/687295c6c8f2 -- nosy: +python-dev ___ Python tracker

[issue18073] pickle.Unpickler may read too many bytes, causing hangs with blocking input stream

2013-05-27 Thread Julien Muchembled
New submission from Julien Muchembled: I use pickle over sockets to make 2 processes communicate and I experience hangs when the resulting pickle message is exactly 4097 bytes. Attached file is a small script reproducing the issue, trying a few values around 4096. It runs on both Python 2.7

[issue17987] test.support.captured_stderr, captured_stdin not documented

2013-05-27 Thread Dmi Baranov
Dmi Baranov added the comment: Sorry for noise, missed changes in Doc/library/test.rst. Updated patch added -- hgrepos: +192 Added file: http://bugs.python.org/file30389/issue17987_2.patch ___ Python tracker rep...@bugs.python.org

[issue18073] pickle.Unpickler may read too many bytes, causing hangs with blocking input stream

2013-05-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +alexandre.vassalotti, pitrou, serhiy.storchaka versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18073 ___

[issue17987] test.support.captured_stderr, captured_stdin not documented

2013-05-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Print to stdin? -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17987 ___ ___

[issue17987] test.support.captured_stderr, captured_stdin not documented

2013-05-27 Thread Dmi Baranov
Dmi Baranov added the comment: Yes, I agree that this is not an obvious sample, but: $ ./python -m test.test_support | grep test_captured_stdin test_captured_stdin (__main__.TestSupport) ... ok What's about that? with captured_stdin() as s: s.write('hello\n') s.seek(0) captured =

[issue18033] Example for Profile Module shows incorrect method

2013-05-27 Thread Dmi Baranov
Dmi Baranov added the comment: Added py3 patch -- keywords: +patch nosy: +dmi.baranov versions: +Python 3.4 Added file: http://bugs.python.org/file30390/issue18033_py3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18033

[issue18033] Example for Profile Module shows incorrect method

2013-05-27 Thread Dmi Baranov
Dmi Baranov added the comment: py2 -- Added file: http://bugs.python.org/file30391/issue18033_py2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18033 ___

[issue18045] get_python_version is not import in bdist_rpm.py

2013-05-27 Thread Dmi Baranov
Dmi Baranov added the comment: Added a patch. Not covered by test, because this case require external module in test package definition. -- keywords: +patch nosy: +dmi.baranov Added file: http://bugs.python.org/file30392/issue18045.patch ___ Python

[issue17206] Py_XDECREF() expands its argument multiple times

2013-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset aff41a6421c2 by Benjamin Peterson in branch 'default': don't expand the operand to Py_XINCREF/XDECREF/CLEAR/DECREF multiple times (closes #17206) http://hg.python.org/cpython/rev/aff41a6421c2 -- nosy: +python-dev resolution: - fixed

[issue18074] argparse: Namespace can contain critical characters

2013-05-27 Thread Sworddragon
New submission from Sworddragon: Positional arguments which have no dest attribute doesn't replace any - with _. In the attachments is an example script which demonstrate this. The output looks like this: sworddragon@ubuntu:~$ ./args.py foo Namespace(foo-bar2='foo', foo_bar1=None) --

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-05-27 Thread Nick Coghlan
Nick Coghlan added the comment: The current behaviour is also needed to sanely support Python scripts symlinked from Linux /bin directories. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6386

[issue18071] _osx_support compiler_fixup

2013-05-27 Thread Ned Deily
Ned Deily added the comment: Sorry, I am unable to reproduce the problem with a vanilla Python 2.7.5 and a downloaded Cython 0.19.1 either installing directly with Cython's setup.py or using Pip 1.3.1. customize_compiler is used as part of every extension module build in Distutils; it is not

[issue18074] argparse: Namespace can contain critical characters

2013-05-27 Thread Sworddragon
Sworddragon added the comment: I have found another report about this: http://bugs.python.org/issue15125 -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18074

[issue18074] argparse: Namespace can contain critical characters

2013-05-27 Thread Sworddragon
Changes by Sworddragon sworddrag...@aol.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18074 ___ ___ Python-bugs-list

[issue18072] Add an implementation of importlib.abc.InspectLoader.get_code

2013-05-27 Thread Brett Cannon
Brett Cannon added the comment: So it turns out I will simply have to make the methods not abstract anymore. Thanks to multiple inheritance I can't implement the method in ExecutionLoader and keep it abstract in case someone subclasses InspectLoader and then creates another subclass of

[issue18074] argparse: Namespace can contain critical characters

2013-05-27 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- superseder: - argparse: positional arguments containing - in name not handled well ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18074

[issue18075] Infinite recursion tests triggering a segfault

2013-05-27 Thread Brett Cannon
New submission from Brett Cannon: If you run any test that has infinite recursion (test_json test_exceptions test_sys test_runpy) it will segfault with a fresh checkout under OS X 10.8.3 using Clang. Not sure how widespread this is. I did check that I am using a clean checkout of the default

[issue18072] Add an implementation of importlib.abc.InspectLoader.get_code

2013-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 11510db74223 by Brett Cannon in branch 'default': Issue #18072: Implement get_code() for importlib.abc.InspectLoader and http://hg.python.org/cpython/rev/11510db74223 New changeset 2ea849fde22b by Brett Cannon in branch 'default': NEWS entry for

[issue18072] Add an implementation of importlib.abc.InspectLoader.get_code

2013-05-27 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18072 ___

[issue18076] Implement importlib.util.decode_source_bytes()

2013-05-27 Thread Brett Cannon
New submission from Brett Cannon: Right now importlib.abc.SourceLoader implements get_source(), but most of it is decoding bytes properly. That should probably be abstracted out to importlib.util so that it's available even for loaders which don't provide get_data() or get_filename().

[issue18055] Stop using imp in IDLE

2013-05-27 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18055 ___ ___

[issue15392] Create a unittest framework for IDLE

2013-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 24c3e7e08168 by Terry Jan Reedy in branch '3.3': Issue #15392: Create a unittest framework for IDLE. http://hg.python.org/cpython/rev/24c3e7e08168 -- nosy: +python-dev ___ Python tracker

[issue15392] Create a unittest framework for IDLE

2013-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Before committing, I experimented with disabling test/test_idle. The simple and safe method is to comment out the 'load_tests' line. With no tests discovered, all pass ;-). Without verbosity, there is no indication that there were none. A little harder, and

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-05-27 Thread Shriramana Sharma
Shriramana Sharma added the comment: The current behaviour is also needed to sanely support Python scripts symlinked from Linux /bin directories. OK that clinched it for me -- I can't argue against that! And obviously it is not meaningful to copy/symlink *all* the current-directory modules

[issue13772] listdir() doesn't work with non-trivial symlinks

2013-05-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: Ugh. So it seems the 3.3 implementation of win_symlink, which is now been renamed to posix_symlink, is now much more complicated. Not only does it handle symlink arguments on Unix platforms, providing abstraction for a couple of underlying system calls, but

[issue18077] dis.dis throws IndexError

2013-05-27 Thread Elazar Gershuni
New submission from Elazar Gershuni: dis.dis('pass') Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python2.7/dis.py, line 45, in dis disassemble_string(x) File /usr/lib/python2.7/dis.py, line 112, in disassemble_string labels = findlabels(code)

[issue18077] dis.dis throws IndexError

2013-05-27 Thread Elazar Gershuni
Elazar Gershuni added the comment: it happens that: (code, i) == ('pass', 4) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18077 ___ ___

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-05-27 Thread Nick Coghlan
Nick Coghlan added the comment: That's fair - reopening this as a docs bug. -- assignee: brett.cannon - components: +Documentation resolution: wont fix - stage: test needed - needs patch status: closed - open type: behavior - enhancement versions: -Python 3.2

[issue13772] listdir() doesn't work with non-trivial symlinks

2013-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 29a2557d693e by Jason R. Coombs in branch '3.3': Issue #13772: Restored directory detection of targets in `os.symlink` on Windows, which was temporarily removed in Python 3.2.3 due to an incomplete implementation. The implementation now works even

[issue18078] threading.Condition to allow notify on a specific waiter

2013-05-27 Thread João Bernardo
New submission from João Bernardo: If users could provide an inner lock for `threading.Condition` acquire when making a thread wait, it would allow for notifying a specific waiter. Because of race conditions, using: cond.notify(1) may not wake the thread I want. Also, I may not want to

[issue15392] Create a unittest framework for IDLE

2013-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Last I checked, test_idle passes on the stable buildbots. But it fails on a machine without threads, such as http://buildbot.python.org/all/builders /AMD64%20Fedora%20without%20threads%203.3/builds/752/steps/test/logs/stdio On this machine, thread-related

[issue5664] 2to3 wont convert Cookie.Cookie properly

2013-05-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: Not actually, It is still translating to http.cookies.Cookie - which does not exist. $ ./cpythonvenv/bin/2to3-3.4 bug-fixes/test1.py RefactoringTool: Refactored bug-fixes/test1.py --- bug-fixes/test1.py (original) +++ bug-fixes/test1.py (refactored) @@ -1,2