[RELEASED] Second release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3

2012-03-18 Thread Benjamin Peterson
We're chuffed to announce the immediate availability of the second release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3. The only change from the first release candidates is the patching of an additional security hole. The security issue fixed in the second release candidates is in the

Re: Using non-dict namespaces in functions

2012-03-18 Thread Peter Otten
Steven D'Aprano wrote: On Sat, 17 Mar 2012 11:42:49 -0700, Eric Snow wrote: On Sat, Mar 17, 2012 at 4:18 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Note that it is important for my purposes that MockChainMap does not inherit from dict. Care to elaborate? I want

Re: How to get a reference of the 'owner' class to which a method belongs in Python 3.X?

2012-03-18 Thread Cosmia Luna
I think I got the way to handle it but with small problem and probably at unnecessary performance cost. If you're going to use it, be sure rewrite the code and remove the lines which you don't need. Ad, test them, the code below is only tested on py3.2, and may contains a lot of bugs even in

Re: Programming D. E. Knuth in Python with the Deterministic Finite Automaton construct

2012-03-18 Thread Albert van der Horst
In article 4f654042$0$29981$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sat, 17 Mar 2012 17:28:38 -0600, Michael Torrie wrote: Thank you. Your example makes more clear your assertion about labels and how really A1 and A5 were the only

Re: Programming D. E. Knuth in Python with the Deterministic Finite Automaton construct

2012-03-18 Thread Albert van der Horst
In article gR09r.22645$i33.16...@uutiset.elisa.fi, Antti J Ylikoski antti.yliko...@tkk.fi wrote: In his legendary book series The Art of Computer Programming, Professor Donald E. Knuth presents many of his algorithms in the form that they have been divided in several individual phases, with

dpkg status

2012-03-18 Thread admin lewis
Hi, anyone know what library i have to use to manage /var/lib/dpkg/status file to get url of packages ? thanks lewis -- Linux Server, Microsoft Windows 2003/2008 Server, Exchange 2007 http://predellino.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Unittest2 on python 2.6

2012-03-18 Thread Andrea Crotti
Suppose we want to use the unittest from Python 2.7, but also want to support Python 2.6, what is the best way to do it? The solution used now is to have in setup.py if sys.version '2.7': tests_require.append('unittest2') and then in every test file try: import unittest2 as

Re: dpkg status

2012-03-18 Thread Vincent Vande Vyvre
Le 18/03/12 13:03, admin lewis a crit: Hi, anyone know what library i have to use to manage /var/lib/dpkg/status file to get url of packages ? thanks lewis Hi, What url ?, Sources, maintainer? You can use "apt-cache search 'keyword'" to find a

Re: dpkg status

2012-03-18 Thread admin lewis
2012/3/18 Vincent Vande Vyvre vincent.vandevy...@swing.be: Le 18/03/12 13:03, admin lewis a écrit : Hi, What url ?, Sources, maintainer? No, I need of to open /var/lib/dpkg/status and extract the packages and its url to download it... I know that there is python-apt

Re: dpkg status

2012-03-18 Thread Vincent Vande Vyvre
Le 18/03/12 15:54, admin lewis a écrit : 2012/3/18 Vincent Vande Vyvre vincent.vandevy...@swing.be: Le 18/03/12 13:03, admin lewis a écrit : Hi, What url ?, Sources, maintainer? No, I need of to open /var/lib/dpkg/status and extract the

Re: Unittest2 on python 2.6

2012-03-18 Thread Terry Reedy
On 3/18/2012 9:31 AM, Andrea Crotti wrote: Suppose we want to use the unittest from Python 2.7, but also want to support Python 2.6, what is the best way to do it? The solution used now is to have in setup.py if sys.version '2.7': tests_require.append('unittest2') and then in every test file

Re: How to get a reference of the 'owner' class to which a method belongs in Python 3.X?

2012-03-18 Thread Ian Kelly
On Sun, Mar 18, 2012 at 3:42 AM, Cosmia Luna cosm...@gmail.com wrote: But it seems that the last line(#ref2) in the Py2Type.__init__ does not work at all. I'm not sure what you're expecting it to do, but type.__init__ does not actually do anything It seems really weird, 'type' is an

Re: dpkg status

2012-03-18 Thread admin lewis
2012/3/18 Vincent Vande Vyvre vincent.vandevy...@swing.be: OK, you know apt, I see (your blog). But packages have no url, just repositery. I see your link python-apt, this doc is very minimalistic, maybe you can find repositeries infos of packages with aptsources.distinfo, but methods are

Re: Python is readable

2012-03-18 Thread alister
On Thu, 15 Mar 2012 00:34:47 +0100, Kiuhnm wrote: I've just started to read The Quick Python Book (2nd ed.) The author claims that Python code is more readable than Perl code and provides this example: --- Perl --- sub pairwise_sum { my($arg1, $arg2) = @_; my(@result) = ();

Benchmarking stripping of Unicode characters which are invalid XML

2012-03-18 Thread Alex Willmer
Last week I was surprised to discover that there are Unicode characters that aren't valid in an XML document. That is regardless of escaping (e.g. #x00;) and unicode encoding (e.g. UTF-8) - not every Unicode string can be stored in XML. The valid characters are (as of XML 1.0) #x9 | #xA | #xD |

Re: Unittest2 on python 2.6

2012-03-18 Thread Andrea Crotti
On 03/18/2012 03:46 PM, Terry Reedy wrote: 1. If the difference between unittest and unittest2 is strictly a matter of deletions and addition, replace unittest with the union of the two. 2. Put the try/except dance in a compat file. Then everywhere else 'from compat import unittest'. This

Re: Python is readable

2012-03-18 Thread John Ladasky
On Mar 14, 11:23 pm, alex23 wuwe...@gmail.com wrote: The idea that Python code has to be obvious to non-programmers is an incorrect and dangerous one. Incorrect? Probably. Dangerous? You'll have to explain what you mean. What I would say is that, when PROGRAMMERS look at Python code for

Re: Unittest2 on python 2.6

2012-03-18 Thread Terry Reedy
On 3/18/2012 4:55 PM, Andrea Crotti wrote: On 03/18/2012 03:46 PM, Terry Reedy wrote: 1. If the difference between unittest and unittest2 is strictly a matter of deletions and addition, replace unittest with the union of the two. 2. Put the try/except dance in a compat file. Then everywhere

Re: Python is readable

2012-03-18 Thread Chris Angelico
On Mon, Mar 19, 2012 at 8:30 AM, John Ladasky lada...@my-deja.com wrote: What I would say is that, when PROGRAMMERS look at Python code for the first time, they will understand what it does more readily than they would understand other unfamiliar programming languages.  That has value. This

Problem with special characters in the password field (urllib)

2012-03-18 Thread Bernhard Heijstek
Hi, I'm having problems getting a script that I wrote to check the unread Gmail feed work (http://pastebin.com/FAGyedH0). The script fetches the unread mail feed (https://mail.google.com/mail/feed/atom/) and then parses it using python-feedparser. The script seems to work fine if I'm not

Re: Currying in Python

2012-03-18 Thread Kiuhnm
On 3/17/2012 2:21, Kiuhnm wrote: Here we go. I wrote an article about my approach to currying: http://mtomassoli.wordpress.com/2012/03/18/currying-in-python/ Beginners should be able to understand it as well. Experienced programmers will probably want to skip some sections. Kiuhnm --

Re: Programming D. E. Knuth in Python with the Deterministic Finite Automaton construct

2012-03-18 Thread Kiuhnm
On 3/18/2012 0:28, Michael Torrie wrote: I am familiar with how one might implement a decompiler, as well as a compiler (having written a simple one in the past), but even now I don't see a connection between a decompiler and the process of converting a knuth algorithm into a python python

Re: Python is readable

2012-03-18 Thread Steven D'Aprano
On Mon, 19 Mar 2012 09:02:06 +1100, Chris Angelico wrote: On Mon, Mar 19, 2012 at 8:30 AM, John Ladasky lada...@my-deja.com wrote: What I would say is that, when PROGRAMMERS look at Python code for the first time, they will understand what it does more readily than they would understand

[RELEASED] Second release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3

2012-03-18 Thread Benjamin Peterson
We're chuffed to announce the immediate availability of the second release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3. The only change from the first release candidates is the patching of an additional security hole. The security issue fixed in the second release candidates is in the

Re: Python is readable

2012-03-18 Thread alex23
John Ladasky lada...@my-deja.com wrote: The idea that Python code has to be obvious to non-programmers is an incorrect and dangerous one. Incorrect?  Probably.  Dangerous?  You'll have to explain what you mean. The classic obvious behaviour to new Python programmers that causes problems

Re: Python is readable

2012-03-18 Thread Chris Rebert
On Sun, Mar 18, 2012 at 8:15 PM, alex23 wuwe...@gmail.com wrote: John Ladasky lada...@my-deja.com wrote: The idea that Python code has to be obvious to non-programmers is an incorrect and dangerous one. Incorrect?  Probably.  Dangerous?  You'll have to explain what you mean. The classic

Re: Python is readable

2012-03-18 Thread Chris Angelico
On Mon, Mar 19, 2012 at 12:23 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 19 Mar 2012 09:02:06 +1100, Chris Angelico wrote: On Mon, Mar 19, 2012 at 8:30 AM, John Ladasky lada...@my-deja.com wrote: What I would say is that, when PROGRAMMERS look at Python code for

ANN: cmd2, an extenstion of cmd that parses its argument line

2012-03-18 Thread anntzer . lee
Dear all, I would like to announce the first public release of cmd2, an extension of the standard library's cmd with argument parsing, here: https://github.com/anntzer/cmd2. Cmd2 is an extension built around the excellent cmd module of the standard library. Cmd allows one to build simple

[issue14356] Distutils2 ignores site-local configuration

2012-03-18 Thread Alex Grönholm
New submission from Alex Grönholm alex.gronholm+pyt...@nextday.fi: Distutils2 seems to rely solely on a sysconfig.cfg shipped with distutils2 to get the path where to install packages. Ignoring site-local configuration means that it won't work on Python distributions where the site

[issue14357] Distutils2 does not work with virtualenv

2012-03-18 Thread Alex Grönholm
New submission from Alex Grönholm alex.gronholm+pyt...@nextday.fi: The installed pysetup script launches (at least on my system) with /usr/bin/python regardless of the interpreter used for installing it. -- assignee: eric.araujo components: Distutils2 messages: 156231 nosy: agronholm,

[issue14357] Distutils2 does not work with virtualenv

2012-03-18 Thread Alex Grönholm
Changes by Alex Grönholm alex.gronholm+pyt...@nextday.fi: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14357 ___ ___

[issue14358] test_os failing with errno 61: No Data Available

2012-03-18 Thread Ben Hayden
New submission from Ben Hayden hayden...@gmail.com: When running the test suite on Linux 3.2.9-1, I get the following error on the test_os suite: test test_os crashed -- Traceback (most recent call last): File /home/benhayden/Documents/cpython/Lib/test/regrtest.py, line 1229, in

[issue14358] test_os failing with errno 61: No Data Available

2012-03-18 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Perhaps any errors that occur during supports_extended_attributes should cause it to just return false? -- nosy: +benjamin.peterson, rosslagerwall ___ Python tracker rep...@bugs.python.org

[issue14296] Compilation error on CentOS 5.8

2012-03-18 Thread Hervé Coatanhay
Hervé Coatanhay herve.coatan...@gmail.com added the comment: You can consider it fixed, compilation runs OK now. However I have an error on building _posixsubprocess.o when I do `make test`, I'll report it in another ticket. -- ___ Python tracker

[issue13448] PEP 3155 implementation

2012-03-18 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Doc/library/dis.rst wasn't updated for the extra pop introduced to MAKE_CLOSURE opcode. -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448

[issue14354] Crash in _ctypes_alloc_callback

2012-03-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I also noticed that the script crashes on Debian 64bit as well, versions 2.6 and 2.7.3rc2 at least, optimized builds. So it's not a clang issue after all. -- nosy: +amaury.forgeotdarc ___

[issue14359] _posixsubprocess.o compilation error on CentOS 5.8

2012-03-18 Thread Hervé Coatanhay
New submission from Hervé Coatanhay herve.coatan...@gmail.com: Linux Version: 2.6.18-238.19.1.el5 / CentOS release 5.8 (Final) On changeset 75803:b26056192653 , I have the following compilation error: gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes

[issue14355] imp module docs should omit references to init_frozen

2012-03-18 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- title: imp module should omit references to init_frozen - imp module docs should omit references to init_frozen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14355

[issue14360] email.encoders.encode_quopri doesn't work with python 3.2

2012-03-18 Thread Dmitry Shachnev
New submission from Dmitry Shachnev mity...@gmail.com: Currently my /usr/lib/python3.2/email/encoders.py has this code: def _qencode(s): enc = _encodestring(s, quotetabs=True) # Must encode spaces, which quopri.encodestring() doesn't do return enc.replace(' ', '=20') The problem is

[issue14350] Strange Exception from copying an iterable

2012-03-18 Thread Jakob Bowyer
Jakob Bowyer jkb...@gmail.com added the comment: C:\Users\Jakobpython -c import copy; copy.copy(iter([1,2,3])) Traceback (most recent call last): File string, line 1, in module File T:\languages\Python27\lib\copy.py, line 96, in copy return _reconstruct(x, rv, 0) File

[issue14360] email.encoders.encode_quopri doesn't work with python 3.2

2012-03-18 Thread Dmitry Shachnev
Changes by Dmitry Shachnev mity...@gmail.com: -- type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14360 ___ ___

[issue3754] cross-compilation support for python build

2012-03-18 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: Added file: http://bugs.python.org/file24923/python-py3k-20120318-CROSS.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3754

[issue3871] cross and native build of python for mingw32 with packaging

2012-03-18 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: Added file: http://bugs.python.org/file24924/python-py3k-20120318-MINGW.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871

[issue3754] cross-compilation support for python build

2012-03-18 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: I cannot test arm build due to issue 12010 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3754 ___

[issue14361] No link to issue tracker on Python home page

2012-03-18 Thread Steven D'Aprano
New submission from Steven D'Aprano steve+pyt...@pearwood.info: There is no link to the tracker http://bugs.python.org/ on the Python website http://www.python.org/ (or if there is, it's so well hidden I can't see it). I seem to remember that there used to be; whether or not there was, there

[issue14354] Crash in _ctypes_alloc_callback

2012-03-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: There is a out-of-bounds error in Modules/_ctypes/libffi/src/x86/ffi64.c: at line 225, classes[i + pos] can go outside the allocated memory for classes (MAX_CLASSES=4). This code is not prepared to received structures with a small size

[issue14354] Crash in _ctypes_alloc_callback

2012-03-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Not a Mac issue. -- assignee: ronaldoussoren - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14354 ___

[issue14362] No mention of collections.ChainMap in What's New for 3.3

2012-03-18 Thread Steven D'Aprano
New submission from Steven D'Aprano steve+pyt...@pearwood.info: The 3.3 What's New doesn't mention collections.ChainMap -- assignee: docs@python components: Documentation messages: 156244 nosy: docs@python, stevenjd priority: normal severity: normal status: open title: No mention of

[issue14361] No link to issue tracker on Python home page

2012-03-18 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I disagree that there should be such a link. www.python.org is the home page of the Python programming language, not of CPython. To find the tracker, go to Core development, and find it in the Resources section. -- nosy: +loewis

[issue14361] No link to issue tracker on Python home page

2012-03-18 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: Maybe, but python.org also is the host of CPython itself (and this issue tracker is also for issues on the programming language). I think the Core development page makes sense, but having it in a sidebar instead of somewhere at the

[issue14356] Distutils2 ignores site-local configuration

2012-03-18 Thread Alexis Metaireau
Alexis Metaireau ale...@notmyidea.org added the comment: The supposed way to work, for OS packagers, is to ship this sysconfig.cfg thing. I'm not sure we should rely on a customized site-local configuration, without defining any standard way of doing this (IOW: what are we looking for in the

[issue14363] Can't build Python 3.3a1 on Centos 5

2012-03-18 Thread Steven D'Aprano
New submission from Steven D'Aprano steve+pyt...@pearwood.info: I attempted to build Python 3.3a1 but failed. I am running Centos 5. After running ./configure (no apparent errors), I ran make and got a whole lot of warnings and errors, ending with: collect2: ld returned 1 exit status make:

[issue14363] Can't build Python 3.3a1 on Centos 5

2012-03-18 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: This is a duplicate of #14296. See also #14359. -- nosy: +skrah resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Compilation error on CentOS 5.8 type: - compile error

[issue14115] 2.7.3rc hangs on test_asynchat on 32-bit Windows

2012-03-18 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This still happens for 3.2.3rc2 -- keywords: +3.2regression nosy: +benjamin.peterson, georg.brandl priority: normal - release blocker versions: +Python 3.2 ___ Python tracker

[issue14115] 2.7.3rc and 3.2.3rc hang on test_asynchat and test_asyncore on 32-bit Windows

2012-03-18 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: test_asyncore hangs as well. -- title: 2.7.3rc hangs on test_asynchat on 32-bit Windows - 2.7.3rc and 3.2.3rc hang on test_asynchat and test_asyncore on 32-bit Windows ___ Python tracker

[issue14359] _posixsubprocess.o compilation error on CentOS 5.8

2012-03-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset fe1dfc066a38 by Ross Lagerwall in branch 'default': Issue 14359: Only use O_CLOEXEC in _posixmodule.c if it is defined. http://hg.python.org/cpython/rev/fe1dfc066a38 -- nosy: +python-dev

[issue7997] http://www.python.org/dev/faq/ doesn't seem to explain how to regenerate configure

2012-03-18 Thread Ross Lagerwall
Changes by Ross Lagerwall rosslagerw...@gmail.com: -- assignee: - rosslagerwall nosy: +rosslagerwall resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement ___ Python tracker rep...@bugs.python.org

[issue14115] 2.7.3rc and 3.2.3rc hang on test_asynchat and test_asyncore on 32-bit Windows

2012-03-18 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This was a false alarm; I just didn't wait long enough (test_asyncore needs 3 minutes when running under the PGI python). -- priority: release blocker - resolution: - invalid ___ Python tracker

[issue14364] Argparse incorrectly handles '--'

2012-03-18 Thread Michele Orrù
New submission from Michele Orrù maker...@gmail.com: http://docs.python.org/library/argparse.html#arguments-containing The attached file shows different behaviours when using '--' immediately after an optional argument. tumbolandia:cpython maker$ python foo.py --test=-- foo []

[issue13922] argparse handling multiple -- in args improperly

2012-03-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I think it is unlikely that anyone depends on argparse consuming multiple -- strings. If you are worried about it we could restrict the change to 3.3. But personally I think this would be OK for a bug fix. -- nosy:

[issue14364] Argparse incorrectly handles '--'

2012-03-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It does look like there's anomalous behavior here of some sort, but I'd expect --test=-- to result in test=--, myself, rather than an error. My intuition is that '--' would need to be preceded by a space to function as the 'end of

[issue14115] 2.7.3rc and 3.2.3rc hang on test_asynchat and test_asyncore on 32-bit Windows

2012-03-18 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14115 ___ ___

[issue13922] argparse handling multiple -- in args improperly

2012-03-18 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Ok, I agree - I'm fine with it as a bugfix. Depending on the removal of extra -- strings would be pretty crazy anyway. ;-) -- ___ Python tracker rep...@bugs.python.org

[issue14357] Distutils2 does not work with virtualenv

2012-03-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The shebang uses /usr/bin/env python; when installing with a virtualenv’s pip, distutils rewrites it to use the venv’s Python. Could you give me the exact steps to reproduce? -- ___ Python tracker

[issue14348] Minor whitespace changes in base64 module

2012-03-18 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: - eric.araujo status: open - closed title: Whitespace - Lib/base64.py - Minor whitespace changes in base64 module ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14348

[issue13922] argparse handling multiple -- in args improperly

2012-03-18 Thread Jeff Knupp
Jeff Knupp jkn...@gmail.com added the comment: I don't know that this is a bug. Rather, the string '--' means different things to argparse and optparse. In argparse, '--' is a psuedo-argument taken to mean everything after this is a postional argument and not stop processing arguments, which

[issue13922] argparse handling multiple -- in args improperly

2012-03-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: No, it is definitely a bug. It prevents implementing parsers that pass strings on to another sub-parser or command. Imagine, for example, implementing a script that takes some arguments, but takes the entire rest of the command string

[issue13922] argparse handling multiple -- in args improperly

2012-03-18 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: I agree with David. It's a bug. I have programs (not using argparse yet) that do exactly what he describes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13922

[issue13922] argparse handling multiple -- in args improperly

2012-03-18 Thread Jeff Knupp
Jeff Knupp jkn...@gmail.com added the comment: In that case, wouldn't you use 'parse_known_args' instead of 'parse_args' and pass the remaining arguments to the next script? This case is explicitly mentioned in the argparse documentation. Again it seems to me that the meaning of '--' has changed

[issue13922] argparse handling multiple -- in args improperly

2012-03-18 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: No. parse_known_args assumes you have known and unknown args intermixed. Going back to the original example, what if hack and :target had overlapping parameter names (say, they both supported --arg1)? I think parse_known_args would pick up

[issue14357] Distutils2 does not work with virtualenv

2012-03-18 Thread Alex Grönholm
Alex Grönholm alex.gronholm+pyt...@nextday.fi added the comment: Log attached. -- Added file: http://bugs.python.org/file24927/d2log.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14357

[issue14356] Distutils2 ignores site-local configuration

2012-03-18 Thread Alex Grönholm
Alex Grönholm alex.gronholm+pyt...@nextday.fi added the comment: The supposed way to work, for OS packagers, is to ship this sysconfig.cfg thing. Even for Pythons older than 3.3? -- ___ Python tracker rep...@bugs.python.org

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset cf7337a49a07 by Georg Brandl in branch '3.2': Transplant from main repo d6c197edd99b: Fixes Issue #14234: CVE-2012-0876: Randomize hashes of xml attributes http://hg.python.org/cpython/rev/cf7337a49a07 New

[issue14004] Distutils filelist selects too many files on Windows

2012-03-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset edcdef70c44e by Éric Araujo in branch '3.2': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/edcdef70c44e -- ___

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

2012-03-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset edcdef70c44e by Éric Araujo in branch '3.2': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/edcdef70c44e -- ___

[issue13193] packaging.tests.test_manifest and distutils.tests.test_filelist failures

2012-03-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset edcdef70c44e by Éric Araujo in branch '3.2': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/edcdef70c44e -- ___

[issue9691] sdist includes files that are not in MANIFEST.in

2012-03-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset edcdef70c44e by Éric Araujo in branch '3.2': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/edcdef70c44e -- ___

[issue14114] 2.7.3rc1 chm gives JS error

2012-03-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b585c33077d2 by Ezio Melotti in branch '3.2': #14114: don't include copybutton.js in the htmlhelp output. http://hg.python.org/cpython/rev/b585c33077d2 -- ___ Python

[issue14365] argparse: subparsers, argument abbreviations and ambiguous option

2012-03-18 Thread Jakub Warmuz
New submission from Jakub Warmuz jakub.warmuz+bugs.python@gmail.com: Assuming following: 1. optional argument, say --foo, in a subparser; 2. at least two different optional arguments in the main parser prefixed with --foo, say --foo1 and --foo2; parsing fails with error: ambiguous option:

[issue9631] Python 2.7 installation issue for Linux gcc-4.1.0-3 (Fedora Core 5?)

2012-03-18 Thread miro ilias
miro ilias miroslav.il...@umb.sk added the comment: Dear Space, On my Ubuntu 11.10 x86_64 Linux I have static python buildup prescription: ./configure LDFLAGS=-static -static-libgcc --disable-shared CPPFLAGS=-static --prefix=/home/ilias/bin/python_static with *static* in Modules/Setup

[issue14359] _posixsubprocess.o compilation error on CentOS 5.8

2012-03-18 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: please apply this to 3.2 as well. -- assignee: - rosslagerwall nosy: +gregory.p.smith, rosslagerwall versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue10423] s/args/options in arpgarse Upgrading optparse code

2012-03-18 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10423 ___ ___

[issue14364] Argparse incorrectly handles '--'

2012-03-18 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: I just tried this with grep's -e and --regexp: $ cat temp.txt a--b cdef $ grep -e-- -v temp.txt cdef $ grep --regexp=-- -v temp.txt cdef $ grep -e -- -v temp.txt cdef $ grep --regexp -- -v temp.txt cdef And with diff's -I and

[issue11176] give more meaningful argument names in argparse documentation

2012-03-18 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11176 ___ ___

[issue13271] When -h is used with argparse, default values that fail should not matter

2012-03-18 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13271 ___ ___

[issue13922] argparse handling multiple -- in args improperly

2012-03-18 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: It prevents implementing parsers that pass strings on to another sub-parser or command. ... wouldn't you use 'parse_known_args' instead of 'parse_args' and pass the remaining arguments to the next script I'll just say again that

[issue12713] argparse: allow abbreviation of sub commands by users

2012-03-18 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12713 ___ ___

[issue13850] Summary tables for argparse add_argument options

2012-03-18 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13850 ___ ___

[issue13540] Document the Action API in argparse

2012-03-18 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13540 ___ ___

[issue14034] Add argparse howto

2012-03-18 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: friendly ping -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14034 ___ ___

[issue14034] Add argparse howto

2012-03-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’m going to Rietveld to review the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14034 ___

[issue14365] argparse: subparsers, argument abbreviations and ambiguous option

2012-03-18 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14365 ___ ___

[issue14365] argparse: subparsers, argument abbreviations and ambiguous option

2012-03-18 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: More or less a duplicate of 12713? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14365 ___

[issue14365] argparse: subparsers, argument abbreviations and ambiguous option

2012-03-18 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: Sorry, I meant #12713. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14365 ___ ___

[issue14357] Distutils2 does not work with virtualenv

2012-03-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I can’t reproduce. Can you delete your venv, start again and tell me how it goes? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14357

[issue14362] No mention of collections.ChainMap in What's New for 3.3

2012-03-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Raymond is the author of What’s New In Python 3.3 and of the collections changes (adding ChainMap and moving ABCs to collections.abc from the top of my head). Maybe he’s waiting for later in the release cycle to review all changes and expand

[issue11874] argparse assertion failure with brackets in metavars

2012-03-18 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11874 ___ ___

[issue14361] No link to issue tracker on Python home page

2012-03-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The devguide index page links to the bug tracker on its ninth line. Isn’t that enough? If not, I’m +0 on adding a link. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue14331] Python/import.c uses a lot of stack space due to MAXPATHLEN

2012-03-18 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: side by side code review of the 3.2 version revealed some missing PyMem_FREE calls. patch updated. -- Added file: http://bugs.python.org/file24929/malloc-import-pathbufs-py32.004.diff ___ Python

[issue9694] argparse: Default Help Message Lists Required Args As Optional

2012-03-18 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9694 ___ ___ Python-bugs-list

  1   2   >