[issue14048] calendar bug related to September 2-14, 1752

2012-02-18 Thread Scott Bannert
New submission from Scott Bannert banne...@gmail.com: Note: this is my first time to submit a bug or use this system I might have found an issue with the calendar related to the point of time in history when the date was necessary to correct by 11 days. Anyhow, the correction is made in a

[issue9253] argparse: optional subparsers

2012-02-18 Thread Daniel Neuhäuser
Changes by Daniel Neuhäuser dasdas...@googlemail.com: -- nosy: +DasIch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9253 ___ ___ Python-bugs-list

[issue14027] distutils2 lack of pysetup.bat

2012-02-18 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com added the comment: - Will “@%~dp0\..\python.exe” get the proper path for people who do not install Python to C:\? %~dp0\..\python.exe locates python relative to the batch file (one directory up) so will work as long as the bat file is in Scripts. The @ just

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2012-02-18 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13866 ___ ___

[issue14048] calendar bug related to September 2-14, 1752

2012-02-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This is documented behaviour: see http://docs.python.org/library/calendar.html Most of these functions and classes rely on the datetime module which uses an idealized calendar, the current Gregorian calendar indefinitely extended in both

[issue13999] Queue references in multiprocessing doc points to Queue module and not to self

2012-02-18 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +ezio.melotti type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13999 ___

[issue14003] __self__ on built-in functions is not as documented

2012-02-18 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14003 ___ ___

[issue14034] the example in argparse doc is too complex

2012-02-18 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14034 ___

[issue14042] json.dumps() documentation is slightly incorrect.

2012-02-18 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: See #13770 and #13769. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14042 ___

[issue14027] distutils2 lack of pysetup.bat

2012-02-18 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Also, we normally set .py, and .pyw into the PATHEXT environment variable, so that a script pysetup.py can be invoked from the command-line as just pysetup without the suffix. This gives the same experience as using a pysetup.bat. I

[issue13978] OSError exception in multiprocessing module when using os.remove() on NFS

2012-02-18 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I'm closing, since the manager should be shutdown (and TMPDIR on NFS isn't a good idea). -- resolution: - invalid stage: - committed/rejected status: open - closed type: crash - behavior

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2012-02-18 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de added the comment: Updated. The NEWS line is now at the top of the section. As near as I can tell, the two change block beginning with +In less formal terms, [...] are strictly re-wrapping and no text changes. Correct? Yes. Just a pydev question

[issue11051] system calls per import

2012-02-18 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: As noted by Antoine somewhere else (don't remember if it was on the bug tracker or mailing list), most of the startup time is due to site import: cf@neobox:~/python/cpython$ time ./python -c '' [44249 refs] real0m0.445s user

[issue14049] execfile() fails on files that use global variables inside functions

2012-02-18 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: main.py below fails to execute local.py, which work ok (outputs '2') when processed directly in console. Docs are not explaining anything. They spread fear and uncertainty around locals, but nothing is said why globals may fail.

[issue14001] CVE-2012-0845 Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request

2012-02-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 24244a744d01 by Charles-François Natali in branch '2.6': Issue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer http://hg.python.org/cpython/rev/24244a744d01 New changeset 0c02f30b2538 by

[issue13997] Clearly explain the bare minimum Python 3 users should know about Unicode

2012-02-18 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The other thing that came out of the rambling Unicode thread on python-ideas is that we should clearly articulate the options for processing files in a task-based fashion and describe the trade-offs for the different alternatives. I started

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2012-02-18 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: On Sat, Feb 18, 2012 at 10:10 PM, Francisco Martín Brugué rep...@bugs.python.org wrote: ./python ./Tools/scripts/patchcheck.py Getting the list of files that have been added/changed ... 0 files Fixing whitespace ... 0 files Fixing C file

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-18 Thread Jason Yeo
Jason Yeo jasonye...@gmail.com added the comment: Just define a list of example args as a module global, append them to the run_args in _check_script, and check them against sys.argv[1:] with assertEqual() in the test script. Okay I have done that but the assertion passes in all the tests

[issue14012] Misc tarfile fixes

2012-02-18 Thread Lars Gustäbel
Changes by Lars Gustäbel l...@gustaebel.de: -- assignee: - lars.gustaebel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14012 ___ ___

[issue14050] Tutorial, list.sort() and items comparability

2012-02-18 Thread Sandro Tosi
New submission from Sandro Tosi sandro.t...@gmail.com: I'm providing patches for what reported at http://mail.python.org/pipermail/docs/2012-February/007481.html . I'm not sure on wording or even if we want them in the tutorial section, but I think it would be nice to have it documented

[issue14050] Tutorial, list.sort() and items comparability

2012-02-18 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: Added file: http://bugs.python.org/file24558/list_sort-py32.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14050 ___

[issue14051] Cannot set attributes on staticmethod

2012-02-18 Thread Alex Gaynor
New submission from Alex Gaynor alex.gay...@gmail.com: This is inconsistant with regular functions, which unfortunately prevents them from being used interchangeably. -- messages: 153649 nosy: alex priority: normal severity: normal status: open title: Cannot set attributes on

[issue14013] tarfile should expose supported formats

2012-02-18 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: I think this is a reasonable proposal. I think it is good style to let tarfile figure out which supported compression methods are available instead of shutil or the user. So far I have no objections. Following 3.3's crypt module, I think the

[issue14040] Deprecate some of the module file formats

2012-02-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch with tests. -- Added file: http://bugs.python.org/file24559/impsuffix2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14040

[issue14040] Deprecate some of the module file formats

2012-02-18 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: In this case, I propose to drop the feature without deprecation. It is very easy to adjust the build process of packages that still use the feature, and even end users can rename the files. If you want to improve ease-of-use, you could

[issue14051] Cannot set attributes on staticmethod

2012-02-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14051 ___

[issue14040] Deprecate some of the module file formats

2012-02-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14040 ___

[issue14040] Deprecate some of the module file formats

2012-02-18 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14040 ___ ___ Python-bugs-list

[issue14003] __self__ on built-in functions is not as documented

2012-02-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14003 ___

[issue13997] Clearly explain the bare minimum Python 3 users should know about Unicode

2012-02-18 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Yes, the 'how to' alternatives, with + and -, should be included in the doc addition. I thought it the best thing to come out of the python-ideas thread. -- ___ Python tracker rep...@bugs.python.org

[issue14051] Cannot set attributes on staticmethod

2012-02-18 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Interpreter Core nosy: +benjamin.peterson stage: - needs patch type: - enhancement versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14051

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t understand why you import the module inside the same module. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14026 ___

[issue14043] Speed-up importlib's _FileFinder

2012-02-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Another possibility would be to include an explicit invalidate_caches() function in importlib. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14043

[issue14052] importlib mixes up '.' and os.getcwd()

2012-02-18 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: An empty sys.path string means the current directory in relative terms: $ touch foo.py $ python3 -c import foo; print(foo.__file__) foo.py But importlib uses os.getcwd() instead in PathFinder._path_importer_cache(). This impacts semantics of

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-18 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Test output: test test_distutils failed -- Traceback (most recent call last): File C:\Users\Nadeem\Code\python2\python27\lib\distutils\tests\test_filelist.py, line 230, in test_process_template

[issue14043] Speed-up importlib's _FileFinder

2012-02-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This is a patch demonstrating invalidate_caches(). As for test_runpy, it seems runpy uses imp.get_loader(), so I don't see how it can remain synchronized with importlib's state. -- Added file:

[issue14051] Cannot set attributes on staticmethod

2012-02-18 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14051 ___ ___ Python-bugs-list

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-18 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: Any news on this? Just as a note, pickletools.py also does not reflect the current behaviour; pickle types STRING, BINSTRING and SHORT_BINSTRING are all defined with stack_after=[pystring]: [1, line 992] I(name='STRING',

[issue14043] Speed-up importlib's _FileFinder

2012-02-18 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I wouldn't worry too much about test_runpy as it has always been a touchy test for me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14043

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-18 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The second instance is inside the source code string that's written out as the script to be run in the subprocess. Not a bad idea actually: - it avoids writing the example args twice (which is what I was thinking of doing) - it avoids turning

[issue14040] Deprecate some of the module file formats

2012-02-18 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I like Martin's suggestion of simply throwing an error. But then again I also really like his idea of simply not warning since it's easier. =) -- ___ Python tracker rep...@bugs.python.org

[issue14052] importlib mixes up '.' and os.getcwd()

2012-02-18 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: It's surprisingly difficult to get right because tests will fail if you keep the path relative in other situations (such as test_cmd_line_script). It was an absolute pain to get it to where it is now. If you can make it keep the relative path

[issue12627] Implement PEP 394: The python Command on Unix-Like Systems

2012-02-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 499796937b7a by Ned Deily in branch '2.7': Issue #12627: Implement PEP 394 for OS X framework builds. http://hg.python.org/cpython/rev/499796937b7a -- nosy: +python-dev

[issue12627] Implement PEP 394: The python Command on Unix-Like Systems

2012-02-18 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Changeset 499796937b7a implements PEP 394 for OS X framework builds on Python 2.7. OS X framework builds already created versioned symlinks for all executables and scripts installed in the framework bin directory, of the general form ${cmd} -

[issue13500] Hitting EOF gets cmd.py into a infinite EOF on return loop

2012-02-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5af5e6b2c053 by Jesus Cea in branch 'default': Test for issue #13500 http://hg.python.org/cpython/rev/5af5e6b2c053 -- ___ Python tracker rep...@bugs.python.org

[issue13500] Hitting EOF gets cmd.py into a infinite EOF on return loop

2012-02-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0d442e166c8f by Jesus Cea in branch '2.7': Test for issue #13500 http://hg.python.org/cpython/rev/0d442e166c8f New changeset 3a40af30449e by Jesus Cea in branch '3.2': Test for issue #13500

[issue13500] Hitting EOF gets cmd.py into a infinite EOF on return loop

2012-02-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2909e60e7e13 by Jesus Cea in branch '2.7': Fix Test for issue #13500 http://hg.python.org/cpython/rev/2909e60e7e13 -- ___ Python tracker rep...@bugs.python.org

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2012-02-18 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/issue7475 ___ ___ Python-bugs-list mailing list

[issue14030] Be more careful about selecting the compiler in distutils

2012-02-18 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/issue14030 ___ ___ Python-bugs-list mailing list

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2012-02-18 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de added the comment: I suspect mq will confuse make patchcheck (since it looks for differences between the working copy and the hg branch tip, and there are no such differences for an applied mq patch). Does it makes sense to open a feature request

[issue14051] Cannot set attributes on staticmethod

2012-02-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f46deae68e34 by Benjamin Peterson in branch 'default': allow arbitrary attributes on classmethod and staticmethod (closes #14051) http://hg.python.org/cpython/rev/f46deae68e34 -- nosy: +python-dev

[issue12393] Packaging should provide support for extensible categories

2012-02-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ve had a look at your implementation. It is an interesting use of properties, but doesn’t quite fit into how packaging works. Most of the options parsing and validation (from config files and command-line alike) is done in each command’s