[issue16581] define PEP editor in PEP 1

2012-12-05 Thread Chris Jerdonek
Chris Jerdonek added the comment: Are there any comments on the patch from the PEP 1 authors? PEP 1 says that I should assign this to one of the PEP authors. Any takers, or is this something I can commit on the authors' behalf? -- ___ Python

[issue16123] IDLE - deprecate running without a subprocess

2012-12-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think that usage is not officially supported, so we cannot grant this way will work forever. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16123 ___

[issue15346] Tkinter extention modules have no documentation

2012-12-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Patch is welcome! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15346 ___ ___ Python-bugs-list mailing list

[issue16613] ChainMap.new_child could use improvement

2012-12-05 Thread Vinay Sajip
New submission from Vinay Sajip: ChainMap.new_child could IMO be improved through allowing an optional dict to be passed, which is used to create the child. The use case is that you sometimes need to temporarily push a new non-empty mapping in front of an existing chain. This could be

[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk

2012-12-05 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16612 ___ ___

[issue8865] select.poll is not thread safe

2012-12-05 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8865 ___ ___ Python-bugs-list

[issue12268] file readline, readlines readall methods can lose data on EINTR

2012-12-05 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12268 ___ ___

[issue16602] weakref can return an object with 0 refcount

2012-12-05 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16602 ___ ___

[issue14913] tokenize the source to manage Pdb breakpoints

2012-12-05 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14913 ___ ___

[issue14728] trace function not set, causing some Pdb commands to fail

2012-12-05 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14728 ___ ___

[issue14743] on terminating, Pdb debugs itself

2012-12-05 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14743 ___ ___

[issue16180] cannot quit pdb when there is a syntax error in the debuggee (must kill it)

2012-12-05 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16180 ___ ___

[issue13044] pdb throws AttributeError at end of debugging session

2012-12-05 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13044 ___ ___

[issue14912] Pdb does not stop at a breakpoint after a restart command and source changes

2012-12-05 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14912 ___ ___

[issue16482] pdb.set_trace() clobbering traceback on error

2012-12-05 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16482 ___ ___

[issue9633] pdb go stack up/down

2012-12-05 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9633 ___ ___ Python-bugs-list

[issue16605] test_posix.test_fs_holes() fails on FreeBSD 9.0

2012-12-05 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: FreeBSD Buildbot has been updated to 9.1, and the issue is solved. This was clearly a 9.0 kernel bug. Closing bug as Invalid. Thanks for triaging this, Koobs. -- resolution: - invalid status: open - closed ___

[issue16605] test_posix.test_fs_holes() fails on FreeBSD 9.0

2012-12-05 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16605 ___ ___

[issue16605] test_posix.test_fs_holes() fails on FreeBSD 9.0

2012-12-05 Thread koobs
koobs added the comment: I have just upgraded the buildbot host to FreeBSD 9.1-RELEASE and cannot see failures in the 3.x and 3.3 branches over the last couple of builds. I have been unable to isolate the commit that fixed it, but the relevant revision log is here if anybody wants to cast an

[issue13120] Default nosigint option to pdb.Pdb() prevents use in non-main thread

2012-12-05 Thread Stefan Krah
Stefan Krah added the comment: I think this commit broke the --without-threads buildbot: http://buildbot.python.org/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/3581/steps/test/logs/stdio -- nosy: +skrah ___ Python tracker

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

2012-12-05 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15745 ___ ___ Python-bugs-list mailing list

[issue16287] Sporadic test_utime() failures on Solaris

2012-12-05 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Doing ./python Lib/test/regrtest.py test_os for current default in Solaris 10 Update 10, I don't see any test failure. I have run it 10.000 times. I can't reproduce this. What Solaris 10 version are you using, Trent? --

[issue13120] Default nosigint option to pdb.Pdb() prevents use in non-main thread

2012-12-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Will take a look. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13120 ___ ___ Python-bugs-list mailing list

[issue13120] Default nosigint option to pdb.Pdb() prevents use in non-main thread

2012-12-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 26056f8a0afe by Andrew Svetlov in branch '3.2': Skip pdb test for #13120 if threading is not available. http://hg.python.org/cpython/rev/26056f8a0afe New changeset 328a8824c1a7 by Andrew Svetlov in branch '3.3': Merge: skip pdb test for #13120 if

[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk

2012-12-05 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16612 ___ ___

[issue16614] argparse accepts partial parameters

2012-12-05 Thread Michael Edwards
New submission from Michael Edwards: When running parse_args, ArgumentParser is liberal in accepting parameters. Partial matches will be accepted as arguments (in the included example, --test bob, --tester bob, --testers bob all set the testers argument) Perhaps this is documented, but it

[issue16588] gcc 4.7 unused-but-set warnings on Python/thread_pthread.h

2012-12-05 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- resolution: fixed - stage: committed/rejected - patch review status: closed - open type: compile error - versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16588

[issue16588] gcc 4.7 unused-but-set warnings on Python/thread_pthread.h

2012-12-05 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed type: - compile error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16588

[issue16588] gcc 4.7 unused-but-set warnings on Python/thread_pthread.h

2012-12-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0adfbafe8a99 by Jesus Cea in branch '2.7': Closes #16588: Silence unused-but-set warnings in Python/thread_pthread.h http://hg.python.org/cpython/rev/0adfbafe8a99 -- ___ Python tracker

[issue13120] Default nosigint option to pdb.Pdb() prevents use in non-main thread

2012-12-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Failed test is skipped if there are no threads. Thanks for report, Stefan! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13120 ___

[issue16615] gcc 4.7 unused-but-set warnings

2012-12-05 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Spin-off of Issue #16588. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16615 ___ ___ Python-bugs-list

[issue16615] gcc 4.7 unused-but-set warnings

2012-12-05 Thread Jesús Cea Avión
New submission from Jesús Cea Avión: GCC 4.7 is showing some compilation warning about setting variables never read. -- assignee: jcea messages: 176984 nosy: jcea priority: normal severity: normal status: open title: gcc 4.7 unused-but-set warnings type: compile error versions: Python

[issue16614] argparse should have an option to require un-abbreviated option names

2012-12-05 Thread R. David Murray
R. David Murray added the comment: It is both documented (http://docs.python.org/dev/library/argparse.html#argument-abbreviations) and an important feature. I thought there was an enhancement request in this tracker for making the behavior optional, but I couldn't find it when I looked, so

[issue13328] pdb shows code from wrong module

2012-12-05 Thread Xavier de Gaye
Changes by Xavier de Gaye xdeg...@gmail.com: -- nosy: +xdegaye ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13328 ___ ___ Python-bugs-list

[issue16596] Skip stack unwinding when next, until and return pdb commands executed in generator context

2012-12-05 Thread Xavier de Gaye
Changes by Xavier de Gaye xdeg...@gmail.com: -- nosy: +xdegaye ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16596 ___ ___ Python-bugs-list

[issue16615] gcc 4.7 unused-but-set warnings

2012-12-05 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- assignee: jcea - nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16615 ___ ___

[issue13044] pdb throws AttributeError at end of debugging session

2012-12-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Do we need to fix it at all? On finalizing pdb can stop working at some time, but debugging on finalization stage can be still useful in certain cases. Xavier, your proposition noticeably changes current behavior as I understand it. For now set_trace() works

[issue1209447] os.path.join() fails if 2nd arg is a UNC path

2012-12-05 Thread Pekka Klärck
Pekka Klärck added the comment: It seems that joining UNC path to a directory root fails: Python 2.7.3 (default, Sep 26 2012, 21:51:14) [GCC 4.7.2] on linux2 Type help, copyright, credits or license for more information. from ntpath import join join('c:\\', 'server\\mount\\dir')

[issue16616] test_poll.PollTests.poll_unit_tests() is dead code

2012-12-05 Thread Richard Oudkerk
New submission from Richard Oudkerk: PollTests.poll_unit_tests() is not run because its method name does not begin with test. It looks it was accidentally disabled when test_poll() was converted to unittest in f56b25168142. Renaming it test_poll_unit_tests() makes it run successfully (at

[issue15516] exception-handling bug in PyString_Format

2012-12-05 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15516 ___ ___

[issue16617] mimetypes.py UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

2012-12-05 Thread Vladimir Kotulskiy
New submission from Vladimir Kotulskiy: File C:\DevTools\Python27\lib\mimetypes.py, line 355, in init db.read_windows_registry() File C:\DevTools\Python27\lib\mimetypes.py, line 259, in read_windows_registry for ctype in enum_types(mimedb): File

[issue16618] Different glob() results for strings and bytes

2012-12-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: glob ignores names which starts with dot if pattern is not starts with dot. But this is wrong for bytes pattern in Python 3. import glob glob.glob('*hg') [] glob.glob(b'*hg') [b'.hg'] The proposed patch fixes this inconsistency. Also it contains new

[issue16618] Different glob() results for strings and bytes

2012-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Python 2.7 is not needed the fix, however additional tests can be useful. Here is a patch. -- components: +Tests versions: +Python 2.7 Added file: http://bugs.python.org/file28212/glob_tests-2.7.patch ___ Python

[issue16602] weakref can return an object with 0 refcount

2012-12-05 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16602 ___ ___ Python-bugs-list mailing list

[issue13044] pdb throws AttributeError at end of debugging session

2012-12-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: On finalizing pdb can stop working at some time, but debugging on finalization stage can be still useful in certain cases. Agreed that debugging on finalization stage is useful. Debugging on finalization stage does not seem to work though:

[issue16617] mimetypes.py UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

2012-12-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This is a duplicate of issue9291. -- nosy: +amaury.forgeotdarc resolution: - duplicate status: open - closed superseder: - mimetypes initialization fails on Windows because of non-Latin characters in registry

[issue16614] argparse should have an option to require un-abbreviated option names

2012-12-05 Thread Chris Jerdonek
Chris Jerdonek added the comment: David, is issue 14910 the one you were thinking of? -- nosy: +chris.jerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16614 ___

[issue13968] Support recursive globs

2012-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which implements recursive globbing which conforms to Bash globbing with globstar option. For backward compatibility recursive globbing off by default and works only if new argument recursive is true (default is False). I am not sure this is

[issue16618] Different glob() results for strings and bytes

2012-12-05 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16618 ___ ___ Python-bugs-list mailing list

[issue14910] argparse: disable abbreviation

2012-12-05 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +Michael.Edwards ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14910 ___ ___

[issue16614] argparse should have an option to require un-abbreviated option names

2012-12-05 Thread R. David Murray
R. David Murray added the comment: It is indeed. And it even has a patch. Don't know how I missed it. -- resolution: - duplicate stage: needs patch - committed/rejected superseder: - argparse: disable abbreviation ___ Python tracker

[issue8865] select.poll is not thread safe

2012-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Test should check changed behavior. I.e. it should test that calling poll concurrently raises an exception. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8865

[issue16597] file descriptor not being closed with context manager on IOError when device is full

2012-12-05 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16597 ___ ___ Python-bugs-list mailing list

[issue16619] LOAD_GLOBAL used to load `None` under certain circumstances

2012-12-05 Thread Bruno Dupuis
New submission from Bruno Dupuis: We found some strange behaviour of the compiler in this discussion on python-list: http://mail.python.org/pipermail/python-list/2012-December/636104.html The fact is, `return` and `return None` result in inconsistent bytecode depending on the context.

[issue8402] Add a function to escape metacharacters in glob/fnmatch

2012-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is good, if stdlib has function for escaping any special characters, even if this function is simple. There are already escape functions for re and sgml/xml/html. Private function glob.glob1 used in Lib/msilib and Tools/msi to prevent unexpected

[issue16620] Avoid using private function glob.glob1() in msi module and tools

2012-12-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Private function glob.glob1() used in Lib/msilib and Tools/msi to prevent unexpected globbing in parent directory name. ``glob.glob1(dirname, pattern)`` should be replaced by ``glob.glob(os.path.join(fnmatch.escape(dirname), pattern)`` in external code.

[issue16620] Avoid using private function glob.glob1() in msi module and tools

2012-12-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Add a function to escape metacharacters in glob/fnmatch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16620 ___

[issue16621] sched module enhancement request

2012-12-05 Thread Carlos Ferreira
New submission from Carlos Ferreira: The sched module available in the Python core lacks a simple but very useful which is waiting for new events scheduling. Current version only process events that are present in the queue before the schedule.run() is issued or for events that are schedule

[issue16621] sched module enhancement request

2012-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue16165. -- nosy: +serhiy.storchaka versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16621 ___

[issue13390] Hunt memory allocations in addition to reference leaks

2012-12-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13390 ___ ___

[issue16621] sched module enhancement request

2012-12-05 Thread Carlos Ferreira
Changes by Carlos Ferreira carlosmf...@gmail.com: Removed file: http://bugs.python.org/file28214/sched2.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16621 ___

[issue16621] sched module enhancement request

2012-12-05 Thread Carlos Ferreira
Carlos Ferreira added the comment: Sorry, wrong file issued before... -- Added file: http://bugs.python.org/file28215/sched2.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16621 ___

[issue13390] Hunt memory allocations in addition to reference leaks

2012-12-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an updated patch. test_ctypes still leaks memory blocks with it: $ ./python -m test -R 3:8 test_ctypes [1/1] test_ctypes beginning 11 repetitions 12345678901 ... test_ctypes leaked [2, 2, 1, 1, 1, 1, 1, 1] memory blocks, sum=10 -- nosy:

[issue16569] Preventing errors of simultaneous access in zipfile

2012-12-05 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Seek can be very cheap. Anybody could actually measure it??? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16569 ___

[issue16601] Restarting iteration over tarfile continues from where it left off.

2012-12-05 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16601 ___ ___ Python-bugs-list mailing list

[issue16619] LOAD_GLOBAL used to load `None` under certain circumstances

2012-12-05 Thread Matthew Barnett
Matthew Barnett added the comment: The same problem occurs with both `False` and `True`. -- nosy: +mrabarnett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16619 ___

[issue16619] LOAD_GLOBAL used to load `None` under certain circumstances

2012-12-05 Thread Bruno Dupuis
Bruno Dupuis added the comment: To me, the whole issue is at line ~ 480 in peehole.c in the LOAD_NAME/LOAD_GLOBAL switch case. This explains the difference between `return` and `return None` as the former is actually compiled to LOAD_CONST. OTOH, `return None` has to pass the optim pass to

[issue16619] LOAD_GLOBAL used to load `None` under certain circumstances

2012-12-05 Thread Bruno Dupuis
Bruno Dupuis added the comment: line 426 in peehole.c : if (codestr[codelen-1] != RETURN_VALUE) goto exitUnchanged; before the optim. I'm quite sure it's here. i patch and see... -- ___ Python tracker rep...@bugs.python.org

[issue16619] LOAD_GLOBAL used to load `None` under certain circumstances

2012-12-05 Thread Alex Gaynor
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16619 ___ ___ Python-bugs-list mailing

[issue16622] IDLE crashes on parentheses

2012-12-05 Thread Steve OBrien
New submission from Steve OBrien: Working in IDLE on Mac OSX 10.8 when I type a parentheses IDLE crashes. Here is the output of the crash report: Process: Python [60507] Path:/Applications/Python 3.3/IDLE.app/Contents/MacOS/Python Identifier: org.python.IDLE Version:

[issue16619] LOAD_GLOBAL used to load `None` under certain circumstances

2012-12-05 Thread Chris Kaynor
Changes by Chris Kaynor ckay...@zindagigames.com: -- nosy: +DragonFireCK versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16619 ___

[issue16619] LOAD_GLOBAL used to load `None` under certain circumstances

2012-12-05 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16619 ___ ___ Python-bugs-list

[issue16619] LOAD_GLOBAL used to load `None` under certain circumstances

2012-12-05 Thread Bruno Dupuis
Bruno Dupuis added the comment: This first patch spots the issue, but doesn't solve it if the bytecode of the function is 32700 (see PyCode_Optimize comment). However with this patch, we get the LOAD_CONST anytime for None, True and False. There is two questions : 1- is it safe to strip all

[issue16623] argparse help formatter does not honor non-breaking space

2012-12-05 Thread Roy Smith
New submission from Roy Smith: Running this code: --- import argparse p = argparse.ArgumentParser() p.add_argument('--foo', help=u'This is a very long help string. ex: --s3\u00A0s3://my.bucket/dir1/dir2') p.parse_args()

[issue16619] LOAD_GLOBAL used to load `None` under certain circumstances

2012-12-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: (2.6 is security fix only) Stripping truly dead code after return is really tricky in general because a) it might be in a conditional block, and b) unreachable yield and assignment can affect compilation. Assignments that make names local are detected on a

[issue16624] subprocess.check_output should allow specifying stdin as a string

2012-12-05 Thread Zack Weinberg
New submission from Zack Weinberg: subprocess.check_output calls Popen.communicate but does not allow you to specify its argument (i.e. data to send to the child process's stdin). It would be nice if it were enhanced to allow this. Proposed patch attached (to the 2.7 subprocess.py; should

[issue16623] argparse help formatter does not honor non-breaking space

2012-12-05 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- nosy: +chris.jerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16623 ___ ___

[issue16622] IDLE crashes on parentheses

2012-12-05 Thread Roger Serwy
Roger Serwy added the comment: Steve, please verify that you are using the correct version of Tkinter with IDLE. See http://www.python.org/download/mac/tcltk/ -- nosy: +ned.deily, serwy ___ Python tracker rep...@bugs.python.org

[issue16619] LOAD_GLOBAL used to load `None` under certain circumstances

2012-12-05 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16619 ___ ___ Python-bugs-list

[issue16622] IDLE crashes on parentheses

2012-12-05 Thread Steve OBrien
Steve OBrien added the comment: I have tried both 8.5.11.1 and 8.5.11.2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16622 ___ ___

[issue16619] LOAD_GLOBAL used to load `None` under certain circumstances

2012-12-05 Thread Bruno Dupuis
Bruno Dupuis added the comment: We definitely need to put the code that loads constants with LOAD_CONST out of the optimization code. It's not optim, it's a language feature: None *is* a 'singleton' constant. I'm trying to figure out how to change compile.c to achieve this, as it's my first

[issue16619] LOAD_GLOBAL used to load `None` under certain circumstances

2012-12-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: Here's what I think we should do for 3.4. Nick, care to commment? -- Added file: http://bugs.python.org/file28219/const-node.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16619

[issue15516] exception-handling bug in PyString_Format

2012-12-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: Wouldn't it be easier to write a Python class that raises an error from __int__() but succeeds in __long__()? -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org

[issue16622] IDLE crashes on parentheses

2012-12-05 Thread Roger Serwy
Roger Serwy added the comment: This looks like a duplicate of issue16177, but for version 3.3.0 instead of 2.7.3. I'm closing this in favor of the prior report. Steve, can you try the suggestion from msg172501 in #16177 ? -- resolution: - duplicate status: open - closed superseder:

[issue16177] IDLE Crash on Open Parens

2012-12-05 Thread Roger Serwy
Roger Serwy added the comment: Added version 3.3 as reported in #16622. -- nosy: +Steve.OBrien versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16177 ___

[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk

2012-12-05 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16612 ___ ___ Python-bugs-list mailing list

[issue16490] inspect.getargspec() and inspect.getcallargs() don't work for builtins

2012-12-05 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: David, please subscribe to Issue #16612. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16490 ___ ___

[issue887237] Machine integers

2012-12-05 Thread Bruno Dupuis
Changes by Bruno Dupuis bdup...@lisael.org: -- nosy: +bruno.dupuis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue887237 ___ ___ Python-bugs-list

[issue11299] Allow deepcopying and pickling paused generators

2012-12-05 Thread Bruno Dupuis
Changes by Bruno Dupuis bdup...@lisael.org: -- nosy: +bruno.dupuis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11299 ___ ___ Python-bugs-list

[issue15045] Make textwrap.dedent() consistent with str.splitlines(True) and str.strip()

2012-12-05 Thread Bruno Dupuis
Changes by Bruno Dupuis bdup...@lisael.org: -- nosy: +bruno.dupuis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15045 ___ ___ Python-bugs-list

[issue1294232] Error in metaclass search order

2012-12-05 Thread Bruno Dupuis
Changes by Bruno Dupuis bdup...@lisael.org: -- nosy: +bruno.dupuis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294232 ___ ___ Python-bugs-list

[issue16619] LOAD_GLOBAL used to load `None` under certain circumstances

2012-12-05 Thread Nick Coghlan
Nick Coghlan added the comment: First reaction is +1 for finally switching to real constant nodes in the AST for 3.4+. This is an inherited behaviour from 2.x where these were ordinary names rather than true keywords, so we weren't able to completely disallow overwriting them. As a smaller

[issue16619] LOAD_GLOBAL used to load `None` under certain circumstances

2012-12-05 Thread Alex Gaynor
Alex Gaynor added the comment: Nick, None was a constant even in 2k -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16619 ___ ___

[issue16531] Allow IPNetwork to take a tuple

2012-12-05 Thread pmoody
pmoody added the comment: on it. I'm not a huge fan of integer args for the first argument because of possible confusion between v4/v6. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16531

[issue16619] LOAD_GLOBAL used to load `None` under certain circumstances

2012-12-05 Thread Nick Coghlan
Nick Coghlan added the comment: True and False weren't, though (and even None wasn't a proper keyword) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16619 ___

[issue16619] LOAD_GLOBAL used to load `None` under certain circumstances

2012-12-05 Thread Nick Coghlan
Nick Coghlan added the comment: The difference in the errors below is the reason the systematic fix in Benjamin's patch simply wasn't practical in 2.x (as it would have required a complex deprecation dance to turn None, True and False into real keywords): Python 2.7.3 (default, Jul 24 2012,

[issue16625] Exception on mode 'br'

2012-12-05 Thread Sworddragon
New submission from Sworddragon: The mode 'br' on open() can cause an exception with the following message: ValueError: mode string must begin with one of 'r', 'w', 'a' or 'U', not 'br'. Curriously most times the mode 'br' is working fine and I'm not able to create a simple test case where it

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2012-12-05 Thread Marius Gedminas
Marius Gedminas added the comment: Considering many existing Python installations out there would it be possible to fix this on the server side? I.e. lowercase the URL while redirecting? -- ___ Python tracker rep...@bugs.python.org

[issue16625] Exception on mode 'br'

2012-12-05 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16625 ___ ___ Python-bugs-list

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2012-12-05 Thread Ben Hoyt
Ben Hoyt added the comment: Ah, thanks for making this an issue of its own! As I commented over at Issue10551, it's a serious problem, and makes mimetypes.guess_type() unusable out of the box on Windows. Yes, the fix in Issue4969 uses MIME\Database\Content Type, which is a mime type - file

  1   2   >