[issue12393] Packaging should provide support for extensible categories

2012-02-18 Thread Éric Araujo
Éric Araujo 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 finalize_options met

[issue14051] Cannot set attributes on staticmethod

2012-02-18 Thread Roundup Robot
Roundup Robot 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 resolution: -> fixed stage: needs patch ->

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

2012-02-18 Thread Francisco Martín Brugué
Francisco Martín Brugué 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 for that? ---

[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 : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[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 : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2012-02-18 Thread Roundup Robot
Roundup Robot 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 _

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

2012-02-18 Thread Roundup Robot
Roundup Robot 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 http://hg.python.org/cpython/rev/3a40af30449e New changes

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

2012-02-18 Thread Roundup Robot
Roundup Robot 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 _

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

2012-02-18 Thread Ned Deily
Ned Deily 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} - ${cmd}2.7. This is

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

2012-02-18 Thread Roundup Robot
Roundup Robot 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 ___ Python tracker

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

2012-02-18 Thread Brett Cannon
Brett Cannon 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 and pass the test

[issue14040] Deprecate some of the module file formats

2012-02-18 Thread Brett Cannon
Brett Cannon 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 ___

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-18 Thread Nick Coghlan
Nick Coghlan 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 the test_script int

[issue14043] Speed-up importlib's _FileFinder

2012-02-18 Thread Brett Cannon
Brett Cannon added the comment: I wouldn't worry too much about test_runpy as it has always been a touchy test for me. -- ___ Python tracker ___ ___

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

2012-02-18 Thread Merlijn van Deen
Merlijn van Deen 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', code='S', arg=strin

[issue14051] Cannot set attributes on staticmethod

2012-02-18 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue14043] Speed-up importlib's _FileFinder

2012-02-18 Thread Antoine Pitrou
Antoine Pitrou 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: http://bugs.python.org/file24560/listdir_cache3.patch

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

2012-02-18 Thread Nadeem Vawda
Nadeem Vawda 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 self.assertEqual(file_list.files, ['d/b.py', 'd

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

2012-02-18 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 path searchi

[issue14043] Speed-up importlib's _FileFinder

2012-02-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Another possibility would be to include an explicit invalidate_caches() function in importlib. -- ___ Python tracker ___ _

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-18 Thread Éric Araujo
Éric Araujo added the comment: I don’t understand why you import the module inside the same module. -- ___ Python tracker ___ ___ Pyt

[issue14051] Cannot set attributes on staticmethod

2012-02-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Interpreter Core nosy: +benjamin.peterson stage: -> needs patch type: -> enhancement versions: +Python 3.3 ___ Python tracker ___ __

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

2012-02-18 Thread Terry J. Reedy
Terry J. Reedy 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 __

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

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

[issue14040] Deprecate some of the module file formats

2012-02-18 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue14040] Deprecate some of the module file formats

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

[issue14051] Cannot set attributes on staticmethod

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

[issue14040] Deprecate some of the module file formats

2012-02-18 Thread Martin v . Löwis
Martin v. Löwis 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 still do the stat call

[issue14040] Deprecate some of the module file formats

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

[issue14013] tarfile should expose supported formats

2012-02-18 Thread Lars Gustäbel
Lars Gustäbel 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 name `methods' is

[issue14051] Cannot set attributes on staticmethod

2012-02-18 Thread Alex Gaynor
New submission from Alex Gaynor : 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 staticmethod _

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

2012-02-18 Thread Sandro Tosi
Changes by Sandro Tosi : Added file: http://bugs.python.org/file24558/list_sort-py32.diff ___ Python tracker ___ ___ Python-bugs-list mailing

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

2012-02-18 Thread Sandro Tosi
New submission from Sandro Tosi : 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 nonetheless. -- as

[issue14012] Misc tarfile fixes

2012-02-18 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- assignee: -> lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-18 Thread Jason Yeo
Jason Yeo 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 except in test_issue

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

2012-02-18 Thread Nick Coghlan
Nick Coghlan added the comment: On Sat, Feb 18, 2012 at 10:10 PM, Francisco Martín Brugué 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 whitespace ... 0 files > Fixing docs whi

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

2012-02-18 Thread Nick Coghlan
Nick Coghlan 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 writing up my notes

[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 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 Charles-François Natali in branch '2

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

2012-02-18 Thread anatoly techtonik
New submission from anatoly techtonik : 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. http://docs.python.org/li

[issue11051] system calls per import

2012-02-18 Thread Charles-François Natali
Charles-François Natali 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 user0m0.376s sys

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

2012-02-18 Thread Francisco Martín Brugué
Francisco Martín Brugué 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 here: I now this re

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

2012-02-18 Thread Charles-François Natali
Charles-François Natali 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 ___ Python tr

[issue14027] distutils2 lack of pysetup.bat

2012-02-18 Thread Vinay Sajip
Vinay Sajip 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 would say that pys

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

2012-02-18 Thread Ezio Melotti
Ezio Melotti added the comment: See #13770 and #13769. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14034] the example in argparse doc is too complex

2012-02-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

2012-02-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2012-02-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy nosy: +ezio.melotti type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mai

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

2012-02-18 Thread Mark Dickinson
Mark Dickinson 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 directions. This

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

2012-02-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14027] distutils2 lack of pysetup.bat

2012-02-18 Thread Paul Moore
Paul Moore 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 suppresses echo of th

[issue9253] argparse: optional subparsers

2012-02-18 Thread Daniel Neuhäuser
Changes by Daniel Neuhäuser : -- nosy: +DasIch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

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

2012-02-18 Thread Scott Bannert
New submission from Scott Bannert : 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 GNU+linux machine, so