[issue14208] No way to recover original argv with python -m

2012-03-06 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14191] argparse: nargs='*' doesn't get out-of-order positional parameters

2012-03-06 Thread Steven Bethard
Steven Bethard added the comment: This behavior is intentional - positional arguments must be sequential, not broken up with optional (flag) arguments between. So this is a documentation bug. Allowing positional arguments to be broken up with optional (flag) arguments between them would be a

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-06 Thread Vlastimil Brom
Vlastimil Brom added the comment: Sorry for mixing the different problems, these were somehow things I noticed "at once" in the new python version, but I should have noticed the different domains myself. I still might not understand the term "crash" properly - I just meant to distinguish betw

[issue13183] pdb skips frames after hitting a breakpoint and running step

2012-03-06 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue14196] Unhandled exceptions in pdb return value display

2012-03-06 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12913] Add a debugging howto

2012-03-06 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue10369] tarfile requires an actual file on disc; a file-like object is insufficient

2012-03-06 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue6715] xz compressor support

2012-03-06 Thread Nadeem Vawda
Nadeem Vawda added the comment: I had intended to wait until the code had been tested on all of the buildbots before closing it. However, it's taking a while to get xz-utils installed on the last few bots, so it doesn't make sense to keep the issue open for this. -- resolution: -> fixe

[issue5689] Support xz compression in tarfile module

2012-03-06 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue14206] multiprocessing.Queue documentation is lacking important details

2012-03-06 Thread sbt
sbt added the comment: What you were told on IRC was wrong. By default the queue *does* have infinite size. When a process puts an item on the queue for the first time, a background thread is started which is responsible for writing items to the underlying pipe. This does mean that, on exi

[issue14181] Support getbuffer redirection scheme in memoryview

2012-03-06 Thread Stefan Krah
Stefan Krah added the comment: > Then I'm abusing this ticket to say: thanks for verifying this. I would still like to sweep this fact under the rug. :) Could you have a look at the documentation patch and see if it's clearer? -- keywords: +patch Added file: http://bugs.python.org/fi

[issue14181] Support getbuffer redirection scheme in memoryview

2012-03-06 Thread Stefan Behnel
Stefan Behnel added the comment: Yes, I think this is much clearer. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue14006] Improve the documentation of xml.etree.ElementTree

2012-03-06 Thread Eli Bendersky
Eli Bendersky added the comment: > BTW, the issue 6488 is still opened. I did not check if there's something > left to do before to close it. The fundamental problem issue #6488 was opened for still exists - the docs use the term "path" without defining it. This should be addressed.

[issue14181] Support getbuffer redirection scheme in memoryview

2012-03-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset da2aaced21bd by Stefan Krah in branch 'default': Issue #14181: Improve clarity in the documentation for the multi-purpose http://hg.python.org/cpython/rev/da2aaced21bd -- ___ Python tracker

[issue1641544] rlcompleter tab completion in pdb

2012-03-06 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue14181] Support getbuffer redirection scheme in memoryview

2012-03-06 Thread Stefan Krah
Stefan Krah added the comment: OK, for me the view->obj issues are done. The new tests indicate that we can silently keep backwards compatibility for view->obj==NULL, but I suppressed that fact in the documentation because it's already complicated enough. Perhaps we might want to deprecate (if

[issue14208] No way to recover original argv with python -m

2012-03-06 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +brett.cannon, eric.araujo, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue13719] bdist_msi upload fails

2012-03-06 Thread Éric Araujo
Éric Araujo added the comment: I’m working on this. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue14209] pkgutil.iter_zipimport_modules ignores the prefix parameter for packages

2012-03-06 Thread James Pickering
New submission from James Pickering : If you run pkgutil.iter_zipimport_modules with a prefix parameter, and the module in question is a package, then the prefix parameter is ignored. The most visible symptom of this is when running pkgutil.walk_packages for a zipfile. Imagine we have a module

[issue14191] argparse: nargs='*' doesn't get out-of-order positional parameters

2012-03-06 Thread guilherme-pg
guilherme-pg added the comment: I uploaded an incomplete patch that might address the issue so it can be discussed. This patch introduces 'greedy_star', a new constructor parameter to ArgumentParser that makes "*" positional arguments behave as expected in the test case. The patch doesn't y

[issue14210] add filename completion to pdb

2012-03-06 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe : This would be extra nice because I would not have to fill in the entire path manually when I'm setting a b(reak). -- components: Library (Lib) messages: 155020 nosy: tshepang priority: normal severity: normal status: open title: add filename co

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-06 Thread Jim Jewett
Jim Jewett added the comment: Can't this be triggered by non-malicious code that just happened to have a python comparison and get hit with a thread switch? I'm not sure how often it happens, but today it would not be visible to the user; after the patch, users will see a sporadic failure tha

[issue13860] PyBuffer_FillInfo() return value

2012-03-06 Thread Stefan Krah
Changes by Stefan Krah : -- dependencies: -bytearray_getbuffer: unnecessary code resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> adapt sphinx-quickstart for windows ___ Python tracker

[issue13860] PyBuffer_FillInfo() return value

2012-03-06 Thread Stefan Krah
Changes by Stefan Krah : -- superseder: adapt sphinx-quickstart for windows -> bytearray_getbuffer: unnecessary code ___ Python tracker ___ _

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-06 Thread STINNER Victor
STINNER Victor added the comment: > Can't this be triggered by non-malicious code that just happened to have a > python comparison and get hit with a thread switch? The issue was triggered without threads.If the __eq__ method of the objects used for keys use C functions releasing the GIL, you

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-06 Thread Mark Shannon
Mark Shannon added the comment: Jim Jewett wrote: > Jim Jewett added the comment: > > Can't this be triggered by non-malicious code that just happened to have a > python comparison and get hit with a thread switch? So, they are writing to a dict in one thread while reading from the same dict

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-06 Thread STINNER Victor
STINNER Victor added the comment: > If the __eq__ method of the > objects used for keys use C functions releasing the GIL, you may > trigger the issue. Oh, I mean: trigger the issue with threads. I hope that your objects don't call C functions like open() in their __eq__() method! --

[issue14211] Don't rely on borrowed _PyType_Lookup() reference in PyObject_GenericSetAttr()

2012-03-06 Thread STINNER Victor
New submission from STINNER Victor : PyObject_GenericSetAttr() doesn't keep a reference to the descriptor: Python does crash if the descriptor is destroyed while the attribute is set. Attached patch keeps a reference to the desriptor to avoid the crash. A smililar was done in PyObject_GenericG

[issue14211] Don't rely on borrowed _PyType_Lookup() reference in PyObject_GenericSetAttr()

2012-03-06 Thread STINNER Victor
Changes by STINNER Victor : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14211] Don't rely on borrowed _PyType_Lookup() reference in PyObject_GenericSetAttr()

2012-03-06 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Interpreter Core versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-06 Thread Guido van Rossum
Guido van Rossum added the comment: On Tue, Mar 6, 2012 at 8:56 AM, Mark Shannon wrote: > > Mark Shannon added the comment: > > Jim Jewett wrote: >> Jim Jewett added the comment: >> >> Can't this be triggered by non-malicious code that just happened to have a >> python comparison and get hit

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-06 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-06 Thread Jim Jewett
Jim Jewett added the comment: On Tue, Mar 6, 2012 at 11:56 AM, Mark Shannon wrote: > Jim Jewett: >> Can't this be triggered by non-malicious code that just happened >> to have a python comparison and get hit with a thread switch? > So, they are writing to a dict in one thread while reading fro

[issue14212] Segfault when using re.finditer over mmap

2012-03-06 Thread Maciej Fijalkowski
New submission from Maciej Fijalkowski : Example to get a segfault attached. Crashes under python3 as well. -- files: x.py messages: 155028 nosy: fijall priority: normal severity: normal status: open title: Segfault when using re.finditer over mmap type: crash versions: Python 2.7 Added

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-06 Thread Guido van Rossum
Guido van Rossum added the comment: On Tue, Mar 6, 2012 at 9:43 AM, Jim Jewett wrote: > > Jim Jewett added the comment: > > On Tue, Mar 6, 2012 at 11:56 AM, Mark Shannon wrote: > >> Jim Jewett: >>> Can't this be triggered by non-malicious code that just happened >>> to have a python comparison

[issue14213] python33.dll not removed on uninstallation

2012-03-06 Thread Vinay Sajip
New submission from Vinay Sajip : I built an MSI for Python 3.3 on Windows 7 and installed from it - the resulting installation seems to work OK in that it passes all tests except test_tcl (intermittent failure). However, when I uninstall, python33.dll is left behind in System32. If I rebuild

[issue7652] Merge C version of decimal into py3k.

2012-03-06 Thread Jim Jewett
Jim Jewett added the comment: (1) I think this module would benefit greatly from a map explaining what each file does, and perhaps from some reorganization. As best I can yet tell, there are about ~130 files, over a dozen directories, but the only ones that directly affect the implementatio

[issue7652] Merge C version of decimal into py3k.

2012-03-06 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: That pythonw suddenly closes is a separate issue: if pythonw attempts to write to stderr, it crashes. To get your example to "run" in pythonw.exe, try pythonw.exe Lib\idlelib\idle.py 2> out.txt I think the behavior of pythonw terminating when it can't write

[issue14212] Segfault when using re.finditer over mmap

2012-03-06 Thread Matthew Barnett
Matthew Barnett added the comment: It segfaults because it attempts to access the buffer of an mmap that has been closed. It would be certainly be more friendly if it checked whether the mmap was still open and, if not, raised an exception instead. -- nosy: +mrabarnett __

[issue7652] Merge C version of decimal into py3k.

2012-03-06 Thread Stefan Krah
Stefan Krah added the comment: Jim, thanks for taking a look at this. Jim Jewett wrote: > (1) I think this module would benefit greatly from a map explaining > what each file does, and perhaps from some reorganization. Just MAP.txt in the top level directory? Amaury suggested moving th

[issue14158] test_mailbox fails if file or dir named by support.TESTFN exists

2012-03-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1112c2f602b3 by Vinay Sajip in branch '2.7': Closes #14158: We now track test_support.TESTFN cleanup, and test_mailbox uses shutil.rmtree for simpler code. http://hg.python.org/cpython/rev/1112c2f602b3 -- status: pending -> closed ___

[issue7652] Merge C version of decimal into py3k.

2012-03-06 Thread Stefan Krah
Stefan Krah added the comment: STINNER Victor wrote: > How can I help to integrate this module into CPython? It would be fantastic if you could take a look at _decimal.c, for example to find some incompatibilities between _decimal.c and decimal.py. mpdecimal.c could also always profit from an

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-06 Thread Jim Jewett
Jim Jewett added the comment: On Tue, Mar 6, 2012 at 1:05 PM, Guido van Rossum Jim Jewett: >>...  If they're just adding new keys, or even deleting other >> (==> NOT the one being looked up) keys, why should that >> keep them from finding the existing, unchanged keys? >> ... The chain terminat

[issue14213] python33.dll not removed on uninstallation

2012-03-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: I guess this is a misconfiguration for your system. This DLL is reference-counted, and you must have arranged the reference count to be >1 somehow. Inspect the MSI log for details. -- ___ Python tracker

[issue14191] argparse: nargs='*' doesn't get out-of-order positional parameters

2012-03-06 Thread Glenn Linderman
Glenn Linderman added the comment: Interesting that the behavior is intentional, yet it accepts positional parameters either before, or after, or between optional (flag) parameters. This seems to me to be a case where proper documentation of the intention would have led to the realization tha

[issue14213] python33.dll not removed on uninstallation

2012-03-06 Thread Vinay Sajip
Vinay Sajip added the comment: Yes, the refcount was 1 after uninstallation - possibly it's been like that for a long time. I'll close the issue, but one thing occurs to me - isn't the DLL's version resource updated when you rebuild? Why wouldn't the newer version in an MSI being installed ov

[issue14213] python33.dll not removed on uninstallation

2012-03-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: The version number is not changed on every rebuild, only when patchlevel.h changes. -- ___ Python tracker ___ ___

[issue14202] The docs of xml.dom.pulldom are almost nonexistent

2012-03-06 Thread Florian M
Florian M added the comment: I wrote some documentation with the information I found on http://wiki.python.org/moin/PullDom and some custom examples. -- nosy: +flomm Added file: http://bugs.python.org/file24750/xml.dom.pulldom.rst ___ Python tracker

[issue14208] No way to recover original argv with python -m

2012-03-06 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue14214] test_concurrent_futures hangs

2012-03-06 Thread Miki Tebeka
New submission from Miki Tebeka : Running "make test" on 3.3a source tree on Ubuntu 11.10 (64bit) hangs at test_concurrent_futures -- components: Tests messages: 155043 nosy: tebeka priority: normal severity: normal status: open title: test_concurrent_futures hangs versions: Python 3.3

[issue14208] No way to recover original argv with python -m

2012-03-06 Thread Nick Coghlan
Nick Coghlan added the comment: This is closely related to PEP 395, since multiprocessing currently hits the same issue in trying to figure out the correct setting for sys.argv0. I quite like the sys.__argv__ idea for preserving the *exact* underlying command line (Alex Gaynor was recently as

[issue7652] Merge C version of decimal into py3k.

2012-03-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: The scripts for generating code would preferably go in a Tools/decimal directory. -- nosy: +benjamin.peterson ___ Python tracker ___ ___

[issue7652] Merge C version of decimal into py3k.

2012-03-06 Thread Jim Jewett
Jim Jewett added the comment: On Tue, Mar 6, 2012 at 3:07 PM, Stefan Krah > Jim Jewett wrote: >> (1)  I think this module would benefit greatly from a map explaining >>      what each file does, and perhaps from some reorganization. > Just MAP.txt in the top level directory? That should work

[issue7652] Merge C version of decimal into py3k.

2012-03-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: Speaking of inline, the "inline" keyword will have to go because it's not C89. -- ___ Python tracker ___

[issue14202] The docs of xml.dom.pulldom are almost nonexistent

2012-03-06 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks, Florian - I will review the patch. At first sight it looks much better than what exists. -- ___ Python tracker ___

[issue13897] Move fields relevant to sys.exc_info out of frame into generator/threadstate

2012-03-06 Thread Jim Jewett
Jim Jewett added the comment: I think the latest patch is indeed cleaner. -- nosy: +Jim.Jewett ___ Python tracker ___ ___ Python-bugs

[issue7652] Merge C version of decimal into py3k.

2012-03-06 Thread Ramchandra Apte
Ramchandra Apte added the comment: But we could check if the compiler supports the inline keyword and use it if available. -- nosy: +ramchandra.apte ___ Python tracker ___ _

[issue14215] http://www.python.org/dev/peps/ title is python.org

2012-03-06 Thread Ramchandra Apte
New submission from Ramchandra Apte : The http://www.python.org/dev/peps browser title is python.org I suggest it should be changed to "PEP Index". -- messages: 155051 nosy: ramchandra.apte priority: normal severity: normal status: open title: http://www.python.org/dev/peps/ title is pyt

[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2012-03-06 Thread Nicholas Cole
Nicholas Cole added the comment: I hope that this is the right bug to file this on (I'm getting lost in all of the curses bugs!). I'm testing out the 3.3a1, and I've run into the following issue. On previous releases addch() could accept curses.ACS_HLINE and similar. Attempting to use the s

[issue14208] No way to recover original argv with python -m

2012-03-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Instead of sys.__argv__, may I suggest sys.argv_original or somesuch. -- nosy: +rhettinger ___ Python tracker ___ __

[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2012-03-06 Thread R. David Murray
R. David Murray added the comment: Since this bug is about adding a new feature, it is unlikely to be the correct bug for this to be against. Given that you've identified a regression, I suggest you open a new bug with a reproducer, and we'll set it to release blocker. -- __

[issue14216] ImportError: No module named binascii

2012-03-06 Thread Qian Liu
New submission from Qian Liu : File "~/PythonInstall/lib/python2.7/multiprocessing/process.py", line 129, in start from .forking import Popen File "~/PythonInstall/lib/python2.7/multiprocessing/forking.py", line 58, in from pickle import Pickler File "~/PythonInstall/lib/python2.7/