[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 configuration has been customized.

On Ubuntu, packages are supposed to go to 
/usr/local/lib/python2.7/dist-packages but distutils2 tries to install them to 
/usr/lib/python2.7/site-packages.

--
assignee: eric.araujo
components: Distutils2
messages: 156230
nosy: agronholm, alexis, eric.araujo, tarek
priority: normal
severity: normal
status: open
title: Distutils2 ignores site-local configuration
type: behavior
versions: 3rd party, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14356
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, alexis, eric.araujo, tarek
priority: normal
severity: normal
status: open
title: Distutils2 does not work with virtualenv
versions: 3rd party, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14357
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
runtest_inner
the_package = __import__(abstest, globals(), locals(), [])
  File /home/benhayden/Documents/cpython/Lib/test/test_os.py, line 1767, in 
module
@unittest.skipUnless(supports_extended_attributes(),
  File /home/benhayden/Documents/cpython/Lib/test/test_os.py, line 1754, in 
supports_extended_attributes
os.fsetxattr(fp.fileno(), buser.test, b)
OSError: [Errno 61] No data available

I don't know the best way to handle this error, but instead of raising it, I 
just let the decorator return False. This allowed test_os to finish (and finish 
successfully) on my machine.

Once again, I don't really know what ENODATA might mean, so I just tried the 
first thing that worked for me.

--
components: Tests
files: test_os_support_ext.patch
keywords: patch
messages: 156232
nosy: beardedp
priority: normal
severity: normal
status: open
title: test_os failing with errno 61: No Data Available
type: crash
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file24921/test_os_support_ext.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14358
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue14358
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue14296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14354
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 -IInclude -I. -I./Include -I/usr/local/include 
-I/home/proexp/cpython2 -c /home/proexp/cpython2/Modules/_posixsubprocess.c -o 
build/temp.linux-x86_64-3.3/home/proexp/cpython2/Modules/_posixsubprocess.o
/home/proexp/cpython2/Modules/_posixsubprocess.c: In function 
‘_close_open_fd_range_safe’:
/home/proexp/cpython2/Modules/_posixsubprocess.c:207: erreur: ‘O_CLOEXEC’ 
undeclared (first use in this function)
/home/proexp/cpython2/Modules/_posixsubprocess.c:207: erreur: (Each undeclared 
identifier is reported only once
/home/proexp/cpython2/Modules/_posixsubprocess.c:207: erreur: for each function 
it appears in.)


The problem is the too old kernel version provided on CentOS 5 and RHEL 5 whic 
does not support O_CLOEXEC. I join my proposed patch for this issue.

--
components: Build
files: _posixmodule.patch
keywords: patch
messages: 156237
nosy: Alzakath
priority: normal
severity: normal
status: open
title: _posixsubprocess.o compilation error on CentOS 5.8
type: compile error
versions: Python 3.3
Added file: http://bugs.python.org/file24922/_posixmodule.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14359
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com




[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 that _encodestring (which is just quopri.encodestring) always 
returns bytes, trying to run replace() on bytes raises TypeError: expected an 
object with the buffer interface.

This leads to email.encoders.encode_quopri never working.

So, I think this should be changed to something like this:

...
return enc.decode().replace(' ', '=20')

Example log:

Python 3.2.3rc1 (default, Mar  9 2012, 23:02:43) 
[GCC 4.6.3] on linux2
Type help, copyright, credits or license for more information.
 import email.encoders
 from email.mime.text import MIMEText
 msg = MIMEText(b'some text here')
 email.encoders.encode_quopri(msg)
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib/python3.2/email/encoders.py, line 44, in encode_quopri
encdata = _qencode(orig)
  File /usr/lib/python3.2/email/encoders.py, line 23, in _qencode
return enc.replace(' ', '=20')
TypeError: expected an object with the buffer interface

Reproduced on Ubuntu precise with Python 3.2.3rc1. Replacing encode_quopri with 
encode_base64 works fine.

--
components: Library (Lib)
messages: 156238
nosy: barry, mitya57
priority: normal
severity: normal
status: open
title: email.encoders.encode_quopri doesn't work with python 3.2
type: crash
versions: Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14360
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 T:\languages\Python27\lib\copy.py, line 329, in _reconstruct
y = callable(*args)
  File T:\languages\Python27\lib\copy_reg.py, line 93, in __newobj__
return cls.__new__(cls, *args)
TypeError: object.__new__(listiterator) is not safe, use listiterator.__new__()

C:\Users\Jakobpython3 -c import copy; copy.copy(iter([1,2,3]))
Traceback (most recent call last):
  File string, line 1, in module
  File T:\languages\Python32\lib\copy.py, line 97, in copy
return _reconstruct(x, rv, 0)
  File T:\languages\Python32\lib\copy.py, line 285, in _reconstruct
y = callable(*args)
  File T:\languages\Python32\lib\copyreg.py, line 88, in __newobj__
return cls.__new__(cls, *args)
TypeError: object.__new__(list_iterator) is not safe, use 
list_iterator.__new__()

Pure python traceback. Just for clarity.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14350
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
should be.

Curiously, the issue tracker itself includes a link to the issue tracker, in 
the side-bar.


Tested with Firefox 3.6, Konqueror, and wget + grep.

--
messages: 156241
nosy: stevenjd
priority: normal
severity: normal
status: open
title: No link to issue tracker on Python home page

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14361
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 (32bytes) 
but where individual elements total more than 32bytes.

libffi support for unions is weak; at least ctypes should not use 
FFI_TYPE_STRUCT for unions.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14354
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 collections.ChainMap in What's New for 3.3
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14362
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14361
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 bottom of the page would be helpful, or an 
introduction that notes there are useful links at the bottom.  Maybe just move 
the quick links section to above the quick start section?

To be more specific- the devguide made me think 'oh, so this is the page on how 
I compile CPython, but I'm looking for the issue tracker. *clicks back*'

--
nosy: +valhallasw

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14361
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 site-local config?)

Also, I would add that this seem to be a compatibility thing, maybe 
could we add a fallback to site-local if no sysconfig is found?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14356
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: *** [python] Error 1

Output attached as a file.

--
components: Build
files: out
messages: 156248
nosy: stevenjd
priority: normal
severity: normal
status: open
title: Can't build Python 3.3a1 on Centos 5
versions: Python 3.3
Added file: http://bugs.python.org/file24925/out

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14363
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14363
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue14115
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue14115
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14359
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue7997
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue14115
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
[]
tumbolandia:cpython maker$ python foo.py --test -- foo 
usage: foo.py [-h] [-t TEST] [yuri]
foo.py: error: argument -t/--test: expected 1 argument(s)

The same is for single-dash arguments.

tumbolandia:cpython maker$ python foo.py -t -- foo
usage: foo.py [-h] [-t TEST] [yuri]
foo.py: error: argument -t/--test: expected 1 argument(s)
tumbolandia:cpython maker$ python foo.py -t-- foo
[]

Obviously argparse should return an error in both cases.
The  bug is probably due to Lib/argparser.py:2211

--
files: foo.py
messages: 156254
nosy: maker
priority: normal
severity: normal
status: open
title: Argparse incorrectly handles '--'
versions: Python 2.7, Python 3.1
Added file: http://bugs.python.org/file24926/foo.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14364
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: +r.david.murray
versions:  -Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13922
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
options' marker.  Because of that, I've never tried the above scenario with a 
unix command, so maybe my intuition is wrong :)

Just for reference (the code paths may be different), there is another open 
issue about -- parsing, issue 13922.

--
components: +Library (Lib)
nosy: +bethard, r.david.murray
stage:  - needs patch
versions: +Python 3.2, Python 3.3 -Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14364
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue13922
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue14357
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 is the optparse meaning. In that context it doesn't seem like 
removing additional '--' is a bug in argparse, since additional '--' would 
merely be restating the same thing.

--
nosy: +Jeff.Knupp

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13922
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 and passes it to some unix program that it calls...and that unix program 
will recognize '--' in that string as the end of processing *its* options, and 
the user of the python command may well want to do that.  Unless this bug is 
fixed, it would be impossible to use argparse to implement such a reasonable 
scenario.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13922
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 slightly between optparse and
argparse. Whether or not that was correct or intended is perhaps another
isssue.

On Sun, Mar 18, 2012 at 1:32 PM, Eric V. Smith rep...@bugs.python.orgwrote:


 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
 ___


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13922
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 all instances of --arg1. I really want -- to 
mean treat everything else as non-optional arguments.

Whether that's the original intent, I don't know. But as David says, unless it 
is, it's impossible to implement such a scheme with argparse.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13922
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue14356
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 changeset d54508a86a5d by Gregory P. Smith in branch '3.2':
Fixes Issue 14234: fix for the previous commit, keep compilation when
http://hg.python.org/cpython/rev/d54508a86a5d

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14234
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14004
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6884
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13193
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9691
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker rep...@bugs.python.org
http://bugs.python.org/issue14114
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: --foo could match --foo1, --foo2.

It seems like argument abbreviation mechanism described at 
http://docs.python.org/library/argparse.html#argument-abbreviations is not 
working properly when in use with subparsers...

--
components: Library (Lib)
files: argparse_subparsers_ambiguous_bug.py
messages: 156272
nosy: bethard, jakub
priority: normal
severity: normal
status: open
title: argparse: subparsers, argument abbreviations and ambiguous option
type: behavior
versions: Python 2.7, Python 3.2
Added file: 
http://bugs.python.org/file24928/argparse_subparsers_ambiguous_bug.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14365
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

but 'make' failes, getting errors like:

collect2: ld returned 1 exit status
/usr/bin/ld: error: /usr/lib/gcc/x86_64-linux-gnu/4.6.1/crtbeginT.o: requires 
dynamic R_X86_64_32 reloc against '__DTOR_END__' which may overflow at runtime; 
recompile with -fPIC
collect2: ld returned 1 exit status
/usr/bin/ld: error: /usr/lib/gcc/x86_64-linux-gnu/4.6.1/crtbeginT.o: requires 
dynamic R_X86_64_32 reloc against '__DTOR_END__' which may overflow at runtime; 
recompile with -fPIC
collect2: ld returned 1 exit status
.
.
.
/home/ilias/bin/python_static/Python-2.7.2/Modules/_ctypes/libffi/src/dlmalloc.c:
 In function ‘mmap_resize’:
/home/ilias/bin/python_static/Python-2.7.2/Modules/_ctypes/libffi/src/dlmalloc.c:3193:5:
 warning: implicit declaration of function ‘mremap’ 
[-Wimplicit-function-declaration]
/home/ilias/bin/python_static/Python-2.7.2/Modules/_ctypes/libffi/src/dlmalloc.c:3193:16:
 warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
/home/ilias/bin/python_static/Python-2.7.2/Modules/_ctypes/libffi/src/dlmalloc.c:
 In function ‘sys_trim’:
/home/ilias/bin/python_static/Python-2.7.2/Modules/_ctypes/libffi/src/dlmalloc.c:3612:62:
 warning: comparison between pointer and integer [enabled by default]
/usr/bin/ld: error: /usr/lib/gcc/x86_64-linux-gnu/4.6.1/crtbeginT.o: requires 
dynamic R_X86_64_32 reloc against '__DTOR_END__' which may overflow at runtime; 
recompile with -fPIC
collect2: ld returned 1 exit status

Python build finished, but the necessary bits to build these modules were not 
found:
_bsddb _curses_curses_panel   
_sqlite3   _ssl   _tkinter
bsddb185   bz2dbm 
dl gdbm   imageop 
linuxaudiodev  ossaudiodevreadline
sunaudiodevzlib   
To find the necessary bits, look in setup.py in detect_modules() for the 
module's name.

Failed to build these modules:
_bisect_codecs_cn _codecs_hk  
_codecs_iso2022_codecs_jp _codecs_kr  
_codecs_tw _collections   _csv
_ctypes_ctypes_test   _elementtree
_functools _heapq _hotshot
_io_json  _locale 
_lsprof_md5   _multibytecodec 
_multiprocessing   _random_sha
_sha256_sha512_socket 
_struct_testcapi  array   
audioopbinascii   cmath   
cPicklecrypt  cStringIO   
datetime   fcntl  future_builtins 
grpitertools  math
mmap   nisoperator
parser pyexpatresource
select spwd   strop   
syslog termiostime
unicodedata 

Any help, please ?


From: Space Li [rep...@bugs.python.org]
Sent: Wednesday, February 29, 2012 2:49 AM
To: Ilias Miroslav
Subject: [issue9631] Python 2.7 installation issue for Linux gcc-4.1.0-3
(Fedora Core 5?)

Space Li space...@gmail.com added the comment:

Hi,

I recently compiled Python 2.7.2 and got an ImportError on struct module during 
'make install'.

What I found working for me is just to 'make'. Before doing 'make install', 
copy the lib.linux-x directory in 'build' to {prefix}/lib/python2.7 and 
rename it as lib-dynload.

Then find something that looks like followings:
$(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
./$(BUILDPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
-d $(LIBDEST) -f \
-x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
$(DESTDIR)$(LIBDEST)
PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
./$(BUILDPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \
-d $(LIBDEST) -f \
-x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
$(DESTDIR)$(LIBDEST)
-PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
./$(BUILDPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \
-d $(LIBDEST)/site-packages -f \
-x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
-PYTHONPATH=$(DESTDIR)$(LIBDEST):$(DESTSHARED) $(RUNSHARED) \
./$(BUILDPYTHON) -Wi -t -O 

[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
http://bugs.python.org/issue14359
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 --ignore-matching-lines:

$ cat  temp2.txt
cdef
a--b
$ diff temp.txt temp2.txt
1d0
 a--b
2a2
 a--b
$ diff -I-- temp.txt temp2.txt 
$ diff -I -- temp.txt temp2.txt 
$ diff --ignore-matching-lines -- temp.txt temp2.txt 
$ diff --ignore-matching-lines=-- temp.txt temp2.txt 
$

Note though that for options that don't take an argument, the -- is just 
removed:

$ grep -v -- a temp.txt 
cdef
$ diff -i -- temp.txt temp2.txt
1d0
 a--b
2a2
 a--b

So I guess the unix rule is: if an option that takes an argument is followed by 
--, use that as the option's argument and continue parsing as usual. If an 
option that takes no argument is followed by --, then delete the -- and 
treat all following flags as positional arguments.

Argparse can't follow this directly, because then people who are using -- to 
signal the end of an option with nargs=* would start getting -- included in 
that list. (And I know people have used -- this way for a while.)

I guess my preference is what R. David Murray suggests: -- when part of an 
argument (i.e. not separated by spaces) is treated like any other characters, 
and only a lone -- signals the end of options (and is ignored otherwise). 
That would mean that both --test=-- and -t-- in your example would give you 
[--], and the other errors would stay as you saw them.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14364
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the recommended way of passing arguments to another 
command is via nargs=argparse.REMAINDER. (Though you may still need -- if the 
first argument in the remainder is a flag shared by your parser, as Warren 
Turka pointed out.)

 I really want -- to mean treat everything else as non-optional 
 arguments

Yep, and that's what it's intended to mean, and what the documentation says:

you can insert the pseudo-argument '--' which tells parse_args() that 
everything after that is a positional argument
http://docs.python.org/library/argparse.html#arguments-containing

It's therefore a bug if there's a '--' after the first '--', but it's not being 
treated as a positional argument.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13922
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 whatsnew.  Raymond, is that the case or would you like me to add a 
stub entry for collections changes?

--
nosy: +eric.araujo, rhettinger

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14362
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue14361
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker rep...@bugs.python.org
http://bugs.python.org/issue14331
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-18 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Interesting.  I would have said that an open source project ought to have a 
link for reporting bugs on the front page, but I just checked perl.org and 
apache.org, and they both put the bug tracker links on the 'get involved' page.

The devguide is *not* equivalent to those 'get involved' pages, and users are 
not likely to find the bug tracker link on it.  IMO we really should create a 
'get involved' page, and link both the devguide and the bug tracker from it.

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14361
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:

minor corresponding updated to the 2.7 patch as well - Patch 6 in 
reitveld/review.

The 3.2 patch from the previous comment is Patch 5 in reitveld/review.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14331
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-18 Thread Gregory P. Smith

Changes by Gregory P. Smith g...@krypto.org:


Added file: 
http://bugs.python.org/file24930/malloc-import-pathbufs-py27.004.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14331
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 wish the devguide wouldn't have replaced the original core development  
pages:

http://web.archive.org/web/20090305022527/http://www.python.org/dev/

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14361
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14366] Suporting bzip2 and lzma compression in zip files

2012-03-18 Thread Serhiy Storchaka

New submission from Serhiy Storchaka storch...@gmail.com:

ZIP files specification supports new compression algorithms since 2006. Since 
bzip2 and lzma now contained in Python standart library, it would be nice to 
add support for these methods in zipfile. This will allow to process more 
foreign zip files and create more compact distributives.

The proposed patch adds two new methods ZIP_BZIP2 and ZIP_LZMA, which are 
automatically detecting when unpacking and that can be used for packing.

--
components: Library (Lib)
files: bzip2_and_lzma_in_zip.patch
keywords: patch
messages: 156288
nosy: storchaka
priority: normal
severity: normal
status: open
title: Suporting bzip2 and lzma compression in zip files
type: enhancement
versions: Python 3.3
Added file: http://bugs.python.org/file24931/bzip2_and_lzma_in_zip.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14366
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14366] Suporting bzip2 and lzma compression in zip files

2012-03-18 Thread Nadeem Vawda

Changes by Nadeem Vawda nadeem.va...@gmail.com:


--
nosy: +alanmcintyre, nadeem.vawda

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14366
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-18 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset daed636a3536 by Gregory P. Smith in branch '3.2':
Fixes Issue #14331: Use significantly less stack space when importing modules by
http://hg.python.org/cpython/rev/daed636a3536

New changeset ad030571e6c0 by Gregory P. Smith in branch '2.7':
Fixes Issue #14331: Use significantly less stack space when importing modules by
http://hg.python.org/cpython/rev/ad030571e6c0

New changeset 5ad5625715b5 by Gregory P. Smith in branch 'default':
Empty merge; imports rewritten in 3.3. issue #14331 may no longer apply.
http://hg.python.org/cpython/rev/5ad5625715b5

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14331
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-18 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

Yep. Closing as duplicate.

--
resolution:  - duplicate
status: open - closed
superseder:  - argparse: allow abbreviation of sub commands by users

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14365
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14366] Suporting bzip2 and lzma compression in zip files

2012-03-18 Thread Serhiy Storchaka

Serhiy Storchaka storch...@gmail.com added the comment:

This is not completed patch yet, without tests and documentation. I would like 
to receive feedback before the end of polishing. It might be worth transfer a 
portion of code in _lzmamodule.c for better use of capacity of LZMA API (used 
in zip format somewhat differs from LZMA_ALONE).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14366
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14366] Suporting bzip2 and lzma compression in zip files

2012-03-18 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


Added file: http://bugs.python.org/file24932/sample-bzip2.zip

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14366
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9514] platform.linux_distribution() under Ubuntu returns ('debian', 'squeeze/sid', '')

2012-03-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Debian and Ubuntu use this patch: 
http://patch-tracker.debian.org/patch/series/view/python3.2/3.2.3~rc1-1/platform-lsbrelease.diff

--
versions: +Python 3.3 -Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9514
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14366] Suporting bzip2 and lzma compression in zip files

2012-03-18 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


Added file: http://bugs.python.org/file24933/sample-lzma.zip

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14366
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14366] Supporting bzip2 and lzma compression in zip files

2012-03-18 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo
title: Suporting bzip2 and lzma compression in zip files - Supporting bzip2 
and lzma compression in zip files

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14366
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14364] Argparse incorrectly handles '--'

2012-03-18 Thread Michele Orrù

Michele Orrù maker...@gmail.com added the comment:

+1 also for me. 
I will try to work for a patch in the next days. :)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14364
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14356] Distutils2 ignores site-local configuration

2012-03-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

 Distutils2 seems to rely solely on a sysconfig.cfg shipped with distutils2 to 
 get the path where to install packages.
That is correct.

 Ignoring site-local configuration
What do you mean?  sitecustomize is executed, for example.  If you only mean 
Debian/Ubuntu/derivatives-specific edits/kludges, read on :)

 On Ubuntu, packages are supposed to go to 
 /usr/local/lib/python2.7/dist-packages but distutils2 tries to
 install them to /usr/lib/python2.7/site-packages.
Yes and no.

We need to make a difference between a Python installed with the Debuntu 
packaging tools (let’s call it the system Python) and a Python downloaded or 
cloned from python.org and installed locally by a sysadmin in /opt or 
/usr/local (let’s call it local Python).

In a local Python installed in /usr/local (location recommended over /opt by 
the Debian policy, if memory serves), third-party distributions get installed 
to /usr/local/lib/pythonX.Y/site-packages.  That’s good.

On Debian, the system Python used to look for third-party distributions in 
/usr/lib/pythonX.Y/site-packages.  One should never use tools like pip or 
pysetup to install things here, but only system packaging tools, i.e. dpkg and 
APT.  The recommended way to install things without using system tools, 
according to Debian’s interpretation of the File Hierarchy Standard, is to put 
them under /usr/local, so /usr/local/lib/pythonX.Y/site-packages.  (Just like 
/usr/local/bin completes what’s available in /usr/bin, /usr/local/lib/pythonX.Y 
completes /usr/lib/pythonX.Y.)  That’s good too.

If we combine these two sets of things we have a conflict: projects installed 
for use with a local Python may affect and break the system Python.  That 
happened to Barry, for example.  That’s why paths were changed in Debian and 
derivatives: now you can install things for a local Python in 
/usr/local/lib/pythonX.Y/site-packages and install other things for the system 
Python in /usr/local/lib/pythonX.Y/dist-packages.

Now, with Python 3.3 we have a change to make life easier for Debuntu: instead 
of patching the site and distutils modules, they can edit sysconfig.cfg and 
Python will automatically look for things in dist-packages and packaging will 
install to that directory too.  distutils will still need the manual patching.  
A local Python will still use site-packages, or whatever the admin configures 
in sysconfig.cfg, and the system Python will use dist-packages, or whatever the 
Debian Python maintainer decides.

If there is a Debian package of distutils2 for older Pythons, then they’ll just 
have to patch d2/_backport/sysconfig.cfg.  The only corner cases that I could 
see are for example if an admin installs distutils2 for their system Python in 
/usr/local/lib/pythonX.Y/dist-packages: they will have to adapt 
d2/_backport/sysconfig.cfg, or use the setup.py script instead of pysetup 
(because setup.py uses distutils and thus will use the patched paths).

If I understand correctly that you used “/usr/bin/python pysetup install spam” 
and wanted it to install to /usr/lib/python2.7/site-packages, then I think that 
the correct reply is: Not supported, don’t do that.  If you did something else, 
please tell what it was :)

--
nosy: +barry

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14356
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14366] Supporting bzip2 and lzma compression in zip files

2012-03-18 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

ISTM that the LZMA support differs from the specification, see

http://www.pkware.com/documents/casestudies/APPNOTE.TXT

In particular, there appears to be no support for the EOS marker, which should 
be emitted when compressing.

Changing the LZMA module is fine as long as it
a) happens before the release of 3.3, and
b) is truly justified by the ZIP spec

I also recommend to split this issue into two: bzip support and lzma support. 
Adding bzip support might be easier.

--
nosy: +loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14366
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-18 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

That is indeed better than the current devguide for introducing people to the 
community.  I think the current devguide is better at explaining the 
development process in detail, but that's not what is needed for a 'getting 
involved' page.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14361
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14366] Supporting bzip2 and lzma compression in zip files

2012-03-18 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

I also think that create_version and extract_version need to be adjusted. 

Since LZMA is version 6.3, we need to check for any features that might be in a 
zip file of extract version 6.3 or lower that we do not support (such as PPMd+ 
compression, strong encryption, etc.). In general, if we claim to support 
version x.y, we need to recognize that a feature is used that is supported for 
x1.y1 (x1.y1 = x.y) even if we don't support the feature.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14366
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-18 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Interesting.  Apparently we have no tests for the encode_ functions, nor do we 
use them inside the email package itself (except for encode_7or8bit).

Do you have any interest in writing a patch with tests?

--
assignee:  - r.david.murray
nosy: +r.david.murray
stage:  - needs patch
versions: +Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14360
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 think the core issue here is that bug reporters often don't want to get 
involved, and don't consider themselves contributors. Instead, they post to 
the bug tracker in order to get help.

In some cases, this is misguided (i.e. when Python behaves correctly, and they 
just fail to understand how it works). In other cases, they may report a 
genuine bug, but have no intention to work on this beyond installing a bug fix 
release, which they hope will be released quickly.

The question now really is how much we want to help people that want to get 
support, rather than getting involved. I think that a tracker link on 
www.python.org would primarily serve this kind of people, and I think it is 
giving them too much. If people want to get support for Python, they should 
hire somebody (and there are versions of Python with commercial support).

I think that we *somewhat* need to support people who don't want to get 
involved. Either the devguide needs to accommodate them better (e.g. with a 
introductory section: Several ways to contribute), or a separate page in 
front of the devguide is needed.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14361
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14355] imp module docs should omit references to init_frozen

2012-03-18 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 66e2dab98041 by R David Murray in branch '3.2':
#14355: remove obsolete doc reference to previously removed init_frozen.
http://hg.python.org/cpython/rev/66e2dab98041

New changeset 1e827a176306 by R David Murray in branch 'default':
Merge #14355: remove obsolete doc reference to previously removed init_frozen.
http://hg.python.org/cpython/rev/1e827a176306

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14355
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14355] imp module docs should omit references to init_frozen

2012-03-18 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Thanks, Eric.

--
nosy: +r.david.murray
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14355
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-18 Thread Jakub Warmuz

Jakub Warmuz jakub.warmuz+bugs.python@gmail.com added the comment:

I don't understand how both bugs are related. Surely, patch provided for #12713 
does not fix the issue I described.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14365
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-18 Thread Ben Hayden

Ben Hayden hayden...@gmail.com added the comment:

That was my thought, but again, I didn't really know if it was 'safe' to snuff 
the OSError all together. This patch just returns False if any OSError is 
raised.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14358
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-18 Thread Ben Hayden

Changes by Ben Hayden hayden...@gmail.com:


Added file: 
http://bugs.python.org/file24934/test_os_support_ext_return_false.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14358
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-18 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

My mistake. I see that the error you're getting is a bad interaction between 
the option in the main parser and an ambiguous option in the subparser.

--
resolution: duplicate - 
status: closed - open
superseder: argparse: allow abbreviation of sub commands by users - 

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14365
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-18 Thread Steven D'Aprano

Steven D'Aprano steve+pyt...@pearwood.info added the comment:

Martin v. Löwis wrote:
 Martin v. Löwis mar...@v.loewis.de added the comment:
 
 I think the core issue here is that bug reporters often don't want to get
 involved, and don't consider themselves contributors. Instead, they post
 to the bug tracker in order to get help.

Or they just want to make a bug report. Technically, this is getting 
involved, but they don't think of it that way. I know I don't. Getting 
involved is submitting a patch. They want to do the right thing in reporting a 
bug, and then work around it until it is fixed.

Starting from the Python web site, it is not obvious how to find the issue 
tracker to report a bug. I had to resort to googling for Python bug tracker 
to find it.

I never would have thought that clicking Core Development was the way to get 
to a link to the issue tracker. I don't want to do core development, I want to 
report a bug.

And even on the core development page, there's nothing in the side-bar about 
the issue tracker. I have to actually *read the page content* to discover 
links to the tracker.

[...]
 The question now really is how much we want to help people that want to
 get support, rather than getting involved. I think that a tracker link
 on www.python.org would primarily serve this kind of people, and I think it

I think you are mistaken. I don't think that people looking for support raise 
bug requests. That's too much like work. They go to StackOverflow or one of 
the many Python mailing lists and say Please fix my code.

Imagine you've written to comp.lang.python (python-l...@python.org) and asked 
for help: is this a bug?. 99 times out of 100, it's a bug in your code, but 
this time it turns out to be an actual bug. Somebody says, yes, that's a bug, 
please report it on the issue tracker.

Where the hell is the issue tracker? How do you find it from the Python home 
page? You shouldn't have to resort to Google to find the tracker.

The home page has an explicit Alternative download page for China. (Why 
China?) I'm sure that's important, but is it more important than the issue 
tracker, that it gets prime billing in the side-bar and the tracker doesn't?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14361
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-18 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

The problem is basically that _parse_known_args calls _parse_optional to 
determine whether something is an optional or a positional. But _parse_optional 
only checks if arg_string in self._option_string_actions, that is, if the 
string can be found in the main parser actions.

So either this method needs to check the subparser actions, or the if 
arg_string in self._option_string_actions stuff needs to be delayed until the 
subparser. Neither of these seems like a simple change, but I agree it's a bug.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14365
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >