[issue7213] subprocess leaks open file descriptors between Popen instances causing hangs

2010-12-13 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

Milko's subprocess-00/01/02 patch set have been committed with minor 
modifications in r87207 & r87208.  Thanks, especially for the test cases!

Is there anything else left that we know about for this bug?

--

___
Python tracker 

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



[issue10691] make testall no longer working on Darwin

2010-12-13 Thread Ismail Donmez

New submission from Ismail Donmez :

Using py3k r87206 on Mac OSX 10.6.5,

[~/Sources/py3k]> make testall
running build
running build_ext
building dbm using ndbm

Python build finished, but the necessary bits to build these modules were not 
found:
_gdbm  ossaudiodevspwd
To find the necessary bits, look in setup.py in detect_modules() for the 
module's name.

running build_scripts
find ./Lib -name '*.py[co]' -print | xargs rm -f
./python -Wd -E -bb  ./Lib/compileall.py
Traceback (most recent call last):
  File "./Lib/compileall.py", line 223, in 
exit_status = int(not main())
  File "./Lib/compileall.py", line 205, in main
if os.path.isdir(dest):
  File "/Users/cartman/Sources/py3k/Lib/genericpath.py", line 41, in isdir
st = os.stat(s)
TypeError: Can't convert 'NoneType' object to str implicitly
make: *** [testall] Error 1

--
components: Tests
messages: 123865
nosy: cartman
priority: normal
severity: normal
status: open
title: make testall no longer working on Darwin
type: behavior
versions: Python 3.2

___
Python tracker 

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



[issue9234] argparse: aliases for positional arguments (subparsers)

2010-12-13 Thread Éric Araujo

Éric Araujo  added the comment:

Patch looks good.  Can you add tests for the new functionality?  (This is 
listed in the link I gave you :)

Note: this code

if 'aliases' in kwargs:
aliases = kwargs.pop('aliases')
else:
aliases = ()

can be shortened to

aliases = kwargs.pop('aliases', ())

--
versions: +Python 3.3 -Python 3.2

___
Python tracker 

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



[issue10689] _scproxy extension is NOT build

2010-12-13 Thread Ned Deily

Ned Deily  added the comment:

Building Python on OS X is currently only tested and supported using the gcc 
provided by Apple's Xcode Developer Tools (either gcc-4.0 for building on OS X 
10.4 and 10.5 and gcc-4.2 or -4.0 for building on 10.6, depending on deployment 
target).  Also judging from the file paths shown, you've ended up with a 
mixture of Fink and MacPorts include file paths before the standard system 
ones, almost certainly a bad idea. Please reopen if the problem can be 
reproduced using Apple's gcc-4.0 for 10.4.

--
nosy: +ned.deily
resolution:  -> invalid
status: open -> closed

___
Python tracker 

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



[issue10690] IDLE Crash when running/saving Module

2010-12-13 Thread Ned Deily

Ned Deily  added the comment:

Without more specific details on exactly how to reproduce the problem, I assume 
you are seeing something like the problem reported in Issue9783.  There are 
several reported problems with IDLEs that are linked with the Apple-supplied 
Tcl/Tk 8.5 in OS X 10.6.  That includes the current python.org 2.7.1 64-bit 
installer.  The simplest workaround at the moment is to use the other, 
32-bit-only 2.7.1 installer for OS X.  It uses the Apple Tcl/Tk 8.4 or 
ActiveTcl 8.4, if present, neither of which exhibits these kinds of problems.

--
assignee:  -> ned.deily
nosy: +ned.deily
resolution:  -> duplicate
status: open -> pending
superseder:  -> _elementtree.c warnings under 64-bit Windows

___
Python tracker 

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



[issue7213] subprocess leaks open file descriptors between Popen instances causing hangs

2010-12-13 Thread Giovanni Bajo

Giovanni Bajo  added the comment:

Hi Gregory,

will you backport Mirko's patches to subprocess32?

The last thing left in this bug is my proposal to change the default of 
close_fds to True to Windows too, but at the same time detect whether this is 
possible or not (depending on the pipe redirections). 

So basically close_fds=True would be changed to mean "close the FDs, if it is 
possible, otherwise never mind". This is not a break in compatibility on 
Linux/UNIX (where it is always "possible"), nor Windows (where currently it 
just raises a ValueError if you ask it to raise close the file descriptors 
while doing redirections).

The rationale for this change is again cross-compatibility. I don't like when 
my code breaks because of a limitation of an OS that has a clear workaround. 
Subprocess is a high-level library after all, it's not like os.fork() or 
similar low-level libraries which expose the underlying platform differences.

--

___
Python tracker 

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



[issue9232] Allow trailing comma in any function argument list.

2010-12-13 Thread Jan Kaliszewski

Changes by Jan Kaliszewski :


--
nosy: +zuo

___
Python tracker 

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



[issue469972] xmlrpclib won't marshal new types

2010-12-13 Thread Jari Tenhunen

Jari Tenhunen  added the comment:

How about revisiting this one? Although this behavior/limitation is documented, 
it is quite surprising to the user. FWIW, (simple)json module serializes 
subclasses of builtin types just as expected.

--
nosy: +jait

___
Python tracker 

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



[issue10692] imap lib server compabilities

2010-12-13 Thread Yevgeniy

New submission from Yevgeniy :

When i trying to connect to courier-imap server i got error:
"server not IMAP4 compliant"
But as i see in the debug information and server responses there is error in 
the source code of library.
imaplib.py version: 2.58 
courier-imap server version: 0.91-ubuntu1
os version: ubunto 10.04(lucid)
You can see debug information and telnet session in attached file.
Best regards, Yevgeniy.

--
components: Library (Lib)
files: debug.txt
messages: 123871
nosy: silversky
priority: normal
severity: normal
status: open
title: imap lib server compabilities
type: performance
versions: Python 2.6
Added file: http://bugs.python.org/file20028/debug.txt

___
Python tracker 

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



[issue10693] error in documentation of distutils.archive_util.make_zipfile

2010-12-13 Thread Eli Bendersky

New submission from Eli Bendersky :

The documentation of:

distutils.archive_util.make_zipfile(base_name, base_dir[, verbose=0, 
dry_run=0]) 

Says:

  Create a zip file from all files in and under base_dir. The output zip file 
will be named base_dir + .zip. 

This isn't correct, as the name of the output file is "base_name + .zip"

The error exists both in the docstring of make_zipfile in 
distutils/archive_util.py and in the ReST documentation of the function

--
assignee: tarek
components: Distutils, Documentation
keywords: easy
messages: 123872
nosy: d...@python, eli.bendersky, eric.araujo, tarek
priority: normal
severity: normal
status: open
title: error in documentation of distutils.archive_util.make_zipfile
versions: Python 2.6, Python 2.7, Python 3.2

___
Python tracker 

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



[issue469972] xmlrpclib won't marshal new types

2010-12-13 Thread Skip Montanaro

Skip Montanaro  added the comment:

> FWIW, (simple)json module serializes subclasses of builtin types
> just as expected.

Does that round trip properly?  For instance, if you serialize an
instance of a list subclass does it unserialize as a list instance
or as the subclass?

Perhaps JSON has some way of supporting a user-defined set of types.
XML-RPC has no way to do that, and feeding in an instance of a
subtype then getting the base type out on the other end was deemed
a bad thing.

--

___
Python tracker 

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



[issue469972] xmlrpclib won't marshal new types

2010-12-13 Thread Jari Tenhunen

Jari Tenhunen  added the comment:

>> FWIW, (simple)json module serializes subclasses of builtin types
>> just as expected.
> Does that round trip properly?  For instance, if you serialize an
> instance of a list subclass does it unserialize as a list instance
> or as the subclass?

You get a list instance. So, at least without any additional work it does not 
round trip symmetrically. But IMO this is actually the expected result; 
subclasses of string should serialize like strings, subclasses of list like 
lists etc. And when you unserialize those without any additional magic, you get 
the builtin types, not the subclasses.

--

___
Python tracker 

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



[issue10453] Add -h/--help option to compileall

2010-12-13 Thread R. David Murray

R. David Murray  added the comment:

Updating patch because the assertTestRegexMatches name was updated.

--
Added file: http://bugs.python.org/file20029/compileall_cli_revisited.patch

___
Python tracker 

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



[issue10453] Add -h/--help option to compileall

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


Removed file: http://bugs.python.org/file19989/compileall_cli_revisited.patch

___
Python tracker 

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



[issue10453] Add -h/--help option to compileall

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


Removed file: http://bugs.python.org/file20029/compileall_cli_revisited.patch

___
Python tracker 

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



[issue10453] Add -h/--help option to compileall

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


Added file: http://bugs.python.org/file20030/compileall_cli_revisited.patch

___
Python tracker 

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



[issue10691] make testall no longer working on Darwin

2010-12-13 Thread R. David Murray

R. David Murray  added the comment:

I'm not sure why you would be seeing a test failure on OSX when we aren't 
seeing it on other platforms, but the cause of the bug is known.  It should be 
fixed by the last patch attached to issue 10453.  If you could test that patch 
it would be great, but please comment on that issue; I'm going to close this 
one as a duplicate.

--
nosy: +r.david.murray
resolution:  -> duplicate
stage:  -> committed/rejected
status: open -> closed
superseder:  -> Add -h/--help option to compileall

___
Python tracker 

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



[issue10453] Add -h/--help option to compileall

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
nosy: +cartman

___
Python tracker 

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



[issue10453] Add -h/--help option to compileall

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


Removed file: http://bugs.python.org/file20030/compileall_cli_revisited.patch

___
Python tracker 

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



[issue10453] Add -h/--help option to compileall

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


Added file: http://bugs.python.org/file20031/compileall_cli_revisited.patch

___
Python tracker 

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



[issue10453] Add -h/--help option to compileall

2010-12-13 Thread Ismail Donmez

Ismail Donmez  added the comment:

Patch works fine on Mac OSX 10.6.5

--

___
Python tracker 

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



[issue10692] imap lib server compabilities

2010-12-13 Thread R. David Murray

R. David Murray  added the comment:

Where does the non-telnet part of your trace come from?  How did you produce 
it?  Does this error still occur using 2.7?  (Python 2.6 is in security fix 
only mode at this point.)

--
nosy: +eric.smith, r.david.murray
stage:  -> unit test needed
type: performance -> behavior

___
Python tracker 

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



[issue10687] Python fails to install with empty ABI flags

2010-12-13 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:

Please include your ./configure command too

--

___
Python tracker 

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



[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-12-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

A test still fails under Windows:

==
FAIL: test_warnings_on_cleanup (test.test_tempfile.test_TemporaryDirectory)
--
Traceback (most recent call last):
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows\build\lib\test\test_tempfile.py",
 line 1003, in test_warnings_on_cleanup
self.assertIn(d.name,  message)
AssertionError: 'c:\\docume~1\\db3l\\locals~1\\temp\\c2h__k\\1kxw82' not found 
in 'ERROR: TypeError("\'NoneType\' object is not callable",) while cleaning up 
\n'

--

--
nosy: +pitrou

___
Python tracker 

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



[issue9234] argparse: aliases for positional arguments (subparsers)

2010-12-13 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

+1 on this feature request

--
nosy: +rhettinger

___
Python tracker 

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



[issue10687] Python fails to install with empty ABI flags

2010-12-13 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
assignee:  -> barry

___
Python tracker 

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



[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-12-13 Thread Nick Coghlan

Nick Coghlan  added the comment:

Ah, yes, I failed to account for the additional string escaping performed by 
the IO stream. I think I've been bitten by that before, but I always forget 
since I try to always use forward slashes for paths, even on Windows.

r87212 modifies the test to ensure that failure mode is encountered on 
non-Windows systems as well and correctly reverses the escaping in the test 
when reading the message back.

--

___
Python tracker 

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



[issue10687] Python fails to install with empty ABI flags

2010-12-13 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:

I've tested the following patch with both ./configure --prefix=/tmp/python and 
./configure --without-pymalloc --prefix=/tmp/python.  Both seem to work as 
expected.

Note that this patch fixes a small drive-by bug I found, and it makes editing 
Makefile.pre.in nicer for Emacsers (without I hope affecting other editor 
users).

--
keywords: +patch
Added file: http://bugs.python.org/file20032/10687.diff

___
Python tracker 

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



[issue10687] Python fails to install with empty ABI flags

2010-12-13 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis  added the comment:

The patch works correctly for me.

--

___
Python tracker 

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



[issue10690] IDLE Crash when running/saving Module

2010-12-13 Thread R. David Murray

R. David Murray  added the comment:

Ned, did you mean issue 9763?

--
nosy: +r.david.murray
status: pending -> open

___
Python tracker 

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



[issue10690] IDLE Crash when running/saving Module

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
status: open -> pending

___
Python tracker 

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



[issue10634] Windows timezone changes not reflected by time.localtime

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
resolution:  -> invalid
stage: unit test needed -> committed/rejected

___
Python tracker 

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



[issue10690] IDLE Crash when running/saving Module

2010-12-13 Thread Ned Deily

Ned Deily  added the comment:

[updated to refer to correct issue - thanks!]

Without more specific details on exactly how to reproduce the problem, I assume 
you are seeing something like the problem reported in Issue9763.  There are 
several reported problems with IDLEs that are linked with the Apple-supplied 
Tcl/Tk 8.5 in OS X 10.6.  That includes the current python.org 2.7.1 64-bit 
installer.  The simplest workaround at the moment is to use the other, 
32-bit-only 2.7.1 installer for OS X.  It uses the Apple Tcl/Tk 8.4 or 
ActiveTcl 8.4, if present, neither of which exhibits these kinds of problems.

--
status: pending -> open
superseder: _elementtree.c warnings under 64-bit Windows -> Crashes upon run 
after syntax error encountered in OSX 10.5.8

___
Python tracker 

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



[issue10690] IDLE Crash when running/saving Module

2010-12-13 Thread Ned Deily

Changes by Ned Deily :


--
Removed message: http://bugs.python.org/msg123868

___
Python tracker 

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



[issue10690] IDLE Crash when running/saving Module

2010-12-13 Thread Ned Deily

Changes by Ned Deily :


--
status: open -> pending

___
Python tracker 

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



[issue2394] [Py3k] Finish the memoryview object implementation

2010-12-13 Thread R. David Murray

R. David Murray  added the comment:

It looks to me like the critical parts of this have been done, so I'm 
downgrading the priority.

--
nosy: +r.david.murray
priority: critical -> high
versions: +Python 3.2 -Python 3.1

___
Python tracker 

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



[issue10687] Python fails to install with empty ABI flags

2010-12-13 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:

Thanks for testing it!  r87213

--

___
Python tracker 

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



[issue10687] Python fails to install with empty ABI flags

2010-12-13 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue6302] email.header.decode_header data types are inconsistent and incorrectly documented

2010-12-13 Thread R. David Murray

R. David Murray  added the comment:

Drat, missed this one when I was reviewing my issues for feature requests 
because I didn't change the type :(

--
versions: +Python 3.3 -Python 3.2

___
Python tracker 

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



[issue6302] email.header.decode_header data types are inconsistent and incorrectly documented

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
nosy:  -BreamoreBoy

___
Python tracker 

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



[issue6302] Add decode_header_as_string method to email.utils

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
title: email.header.decode_header data types are inconsistent and incorrectly 
documented -> Add decode_header_as_string method to email.utils
type: behavior -> feature request

___
Python tracker 

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



[issue10665] Expand unicodedata module documentation

2010-12-13 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

On Fri, Dec 10, 2010 at 6:04 PM, Martin v. Löwis  wrote:
..
>> Why?  I thought "release early, release often" was a good thing.
>
> Create a branch for that, or post an issue on Rietveld.

Martin,

This is a documentation patch affecting a single HTML page.  An svn
branch for something like this is certainly an overkill.  Maybe when
branches become more user-friendly with Hg, it will make sense to do
something like this in a branch.   Rietveld is great for code reviews,
but for doc patches its is sometimes desirable to post a rendered page
for a review.  In this particular case, however the reST in diff is
quite readable.

> W-I-P IMO
> confuses people reviewing the patches, running into the same ones
> over-and-over again, only to find out every time "it's not ready yet".

I posted this patch with a specific question: "how much of the Unicode
Standard information we would want to present?"   The patch included
several tables similar to what a determined reader can find at
unicode.org.   I think it is useful to present this information in the
Python docs for several reasons:

1. It makes the information more readily accessible to someone who
just want to figure out what the code returned by
unicodedata.category() means.

2. We can present examples using Python notation and focus on what is
relevant to Python users.  For example, what are the digits other than
0-9, or what is the difference between a digit and a decimal.

3. Other parts of the documentation can refer to this information more
easily.  For example, str.isdigit() can refer to 'Nd' general
category.

The downside is that we may need to update this info when Unicode
Standard changes.  Given the pace of change for this info, I don't
think this is serious burden and most of the data can be
auto-generated from UCD files.

> So the natural reaction is to close it as rejected, for it being
> incomplete.

Are you going to reject say issue2636 on this basis? :-)   Has *any*
patch ever been rejected as incomplete?

Seriously, I had a specific reason to post an incomplete patch for
review: formatting reST tables is tedious and if others think we
should not include this info in Python docs, I don't want to spend
more time polishing the patch.  On the other hand, an incomplete patch
is helpful because it demonstrates how much information I am proposing
to include.  If I just posted a request without a patch, a natural
reaction would be: do you have a patch?

--

___
Python tracker 

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



[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-12-13 Thread Éric Araujo

Changes by Éric Araujo :


--
stage:  -> patch review
type: compile error -> feature request
versions: +Python 3.3 -Python 2.6

___
Python tracker 

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



[issue10694] zipfile.py end of central directory detection not robust

2010-12-13 Thread Kevin Hendricks

New submission from Kevin Hendricks :

The current version of zipfile.py is not robust to slight errors at the end of 
zip archives.  Many file servers **improperly** append a new line to the end of 
files that do not have a new line when they are uploaded from a browser.  This 
bug ends up adding 0x0d 0xa to the end of the zip archive.  This in turn makes 
zipfile.py eventually throw a "Not a zip file" exception when no other zip 
tools seem to have trouble with them.  Even unzip -t passes these "problem" zip 
archives with flying colours.

I hate to have to extract and create my own zipfile.py script just to be robust 
to zip archives that are commonly found on the net and that are handled more 
robustly by other software.

So please consider changing this code from _EndRecData below to simply ignore 
any trailing data after the proper stringEndArchive and structEndArchive are 
found instead of looking for the comment and verifying if the comment is 
properly formatted and throwing an exception if not correct.  Ignoring the 
"comment" seems to be more robust in this case as everything needed to unpack 
the zip archive has been found.


# Either this is not a ZIP file, or it is a ZIP file with an archive
# comment.  Search the end of the file for the "end of central directory"
# record signature. The comment is the last item in the ZIP file and may be
# up to 64K long.  It is assumed that the "end of central directory" magic
# number does not appear in the comment.
maxCommentStart = max(filesize - (1 << 16) - sizeEndCentDir, 0)
fpin.seek(maxCommentStart, 0)
data = fpin.read()
start = data.rfind(stringEndArchive)
if start >= 0:
# found the magic number; attempt to unpack and interpret
recData = data[start:start+sizeEndCentDir]
endrec = list(struct.unpack(structEndArchive, recData))
comment = data[start+sizeEndCentDir:]
# check that comment length is correct
if endrec[_ECD_COMMENT_SIZE] == len(comment):
# Append the archive comment and start offset
endrec.append(comment)
endrec.append(maxCommentStart + start)
if endrec[_ECD_OFFSET] == 0x:
# There is apparently a "Zip64 end of central directory"
# structure present, so go look for it
return _EndRecData64(fpin, start - filesize, endrec)
return endrec


This will in turn make the Python implementation of zipfile.py more robust to 
data improperly appended when some zip archives are uploaded or downloaded 
(similar to how other zip tools handle this issue).

Thank you for your time and consideration.

--
messages: 123891
nosy: KevinH
priority: normal
severity: normal
status: open
title: zipfile.py end of central directory detection not robust
type: behavior
versions: Python 2.7

___
Python tracker 

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



[issue9012] Separate compilation of time and datetime modules

2010-12-13 Thread R. David Murray

R. David Murray  added the comment:

Bump.  This bug has priority high and it sounds like the patch is ready for 
commit.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue10340] asyncore doesn't properly handle EINVAL on OSX

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
versions:  -Python 2.5, Python 2.6

___
Python tracker 

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



[issue10340] asyncore doesn't properly handle EINVAL on OSX

2010-12-13 Thread R. David Murray

R. David Murray  added the comment:

"Might even make sense" to backport doesn't sound like a definite, so I've 
removed 2.6 and 2.5 from versions.  You'll want to ask the release managers for 
a decision if you want to backport.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue10695] telnetlib.Telnet port number int/str inconsistency

2010-12-13 Thread Christian S. Perone

New submission from Christian S. Perone :

When you use telnetlib with a "str" parameter as Port Number:
tel = telnetlib.Telnet("10.0.2.9", "8123")
tel.read_until("login: ")

It works fine, except if you set the debuglevel:
tel.set_debuglevel(30)

Then the follow exception is thrown:

Traceback (most recent call last):
  File "", line 1, in 
  File "c:\python26\lib\telnetlib.py", line 306, in read_until
self.fill_rawq()
  File "c:\python26\lib\telnetlib.py", line 517, in fill_rawq
self.msg("recv %r", buf)
  File "c:\python26\lib\telnetlib.py", line 239, in msg
print 'Telnet(%s,%d):' % (self.host, self.port),
TypeError: %d format: a number is required, not str

I think that the string "Telnet(%s,%d):" on the telnetlib.py should be 
"Telnet(%s,%s):", since it works fine with a str as Port Number.

--
components: Library (Lib)
messages: 123894
nosy: Christian.S..Perone
priority: normal
severity: normal
status: open
title: telnetlib.Telnet port number int/str inconsistency
type: behavior
versions: Python 2.6

___
Python tracker 

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



[issue9012] Separate compilation of time and datetime modules

2010-12-13 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

> it sounds like the patch is ready for commit.

there are two pending patches here:

time.diff - a hack that makes _time.c look like a module while it is not.

add_time_to_vc8_build.diff - a patch for VC 8.0 project file.

I don't like time.diff because it fixes the symptom rather than the core 
problem.  I believe the code that is shared between C modules should be 
segregated into a true module which would expose its C API via capsule 
mechanism.  Others suggested that this is an overkill and that capsule 
mechanism is not suitable for the stdlib.  On the latter argument, I would like 
to point that unicodedata already uses capsule mechanism to make itself 
available to Python's builtin str type.

As I mentioned in msg109219, this situation is not unique to time/datetime.  
The math and cmath modules similarly use linker tricks to share code in _math.c.

Unassigning because I don't have an informed opinion on 
add_time_to_vc8_build.diff and cannot move the _time.c issue forward until 
similar problem is solved for _math.c which I used as the basis for _time.c 
design.

--
assignee: belopolsky -> 

___
Python tracker 

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



[issue6075] Patch for IDLE/OS X to work with Tk-Cocoa

2010-12-13 Thread Ned Deily

Changes by Ned Deily :


--
assignee:  -> ned.deily
nosy: +ned.deily
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

___
Python tracker 

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



[issue9232] Allow trailing comma in any function argument list.

2010-12-13 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

> In #10682, several committers indicated that they would prefer
> not to change this.

Issue #10682 has been open for less than 24 hours before it was rejected. In 
contrast, this issue was open after an almost week-long discussion on 
python-dev where the proposal was well received.

I think #10682 should have been closed as a duplicate of this issue and this 
issue should be marked as "after moratorium".

--
nosy: +belopolsky

___
Python tracker 

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



[issue10696] port not split in function urllib.parse.urlsplit

2010-12-13 Thread JTMoon79

New submission from JTMoon79 :

urlsplit function from urllib.parse.urlsplit does not return the port field.
Repro steps

>>> import urllib
>>> import urllib.parse
>>> urllib.parse.urlsplit(r'http://foo.bar.com:80/blarg?a=1&b=2')
RETURNS:
SplitResult(scheme='http', netloc='foo.bar.com:80', path='/blarg', 
query='a=1&b=2', fragment='')
EXPECTED:
SplitResult(scheme='http', netloc='foo.bar.com', path='/blarg', port='80', 
query='a=1&b=2', fragment='')

--
components: Library (Lib)
messages: 123897
nosy: JTMoon79
priority: normal
severity: normal
status: open
title: port not split in function urllib.parse.urlsplit
type: behavior
versions: Python 3.1

___
Python tracker 

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



[issue10697] port not split in function urllib.parse.urlparse

2010-12-13 Thread JTMoon79

New submission from JTMoon79 :

Copy of issue 10696
This issue is exactly the same as issue 10696 except it affects a different 
function, urllib.parse.urlparse (instead of urllib.parse.urlsplit).

urlparse function from urllib.parse.urlparse does not return the port field.
REPRO STEPS:
>>> import urllib
>>> import urllib.parse
>>> urllib.parse.urlparse(r'http://foo.bar.com:80/blarg?a=1&b=2')
RETURNS:
ParseResult(scheme='http', netloc='foo.bar.com:80', path='/blarg', params='', 
query='a=1&b=2', fragment='')
EXPECTED: 
ParseResult(scheme='http', netloc='foo.bar.com', path='/blarg', port='80', 
params='', query='a=1&b=2', fragment='')
END REPRO

The documentation at 
http://docs.python.org/py3k/library/urllib.parse.html#urllib.parse.urlsplit 
shows this as expected.  What is the purpose of a possible port parameter if 
that port parameter is not set?

According to RFC 1808 the syntatic components are 
:///;?#
However, according to referenced RFC 1738 (referenced by RFC 1808)
http://tools.ietf.org/html/rfc1738#section-3.1
the  can be further separated to  and .

I guess a bigger more general complaint about this is, why not make urlparse 
more useful by separating  and ?
I imagine this is a common need of users.  I like standards.  And doing a 
little extra to work with standards make those standards even more useful.

--
components: Library (Lib)
messages: 123898
nosy: JTMoon79
priority: normal
severity: normal
status: open
title: port not split in function urllib.parse.urlparse
type: behavior
versions: Python 3.1

___
Python tracker 

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



[issue10696] port not split in function urllib.parse.urlsplit

2010-12-13 Thread JTMoon79

JTMoon79  added the comment:

see comments at http://bugs.python.org/issue10697#msg123898

--

___
Python tracker 

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



[issue10696] port not split in function urllib.parse.urlsplit

2010-12-13 Thread R. David Murray

R. David Murray  added the comment:

Take another look at the documentation.

http://docs.python.org/dev/library/urllib.parse.html

>>> import urllib.parse
>>> o = urllib.parse.urlsplit("http://foo.bar.com:80/blarg?a=1&b=2";)
>>> o
SplitResult(scheme='http', netloc='foo.bar.com:80', path='/blarg', 
query='a=1&b=2', fragment='')
>>> o.port
80

--
nosy: +r.david.murray
resolution:  -> invalid
stage:  -> committed/rejected

___
Python tracker 

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



[issue10696] port not split in function urllib.parse.urlsplit

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
status: open -> closed

___
Python tracker 

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



[issue10697] host and port attributes not documented well in function urllib.parse.urlparse and urlsplit

2010-12-13 Thread R. David Murray

R. David Murray  added the comment:

The repr gives the primary components defined by the URL.  The subfields are 
provided as attributes of the result.  This is documented in the example at the 
top of the chapter, but it is not, IMO, well documented in the rest of the 
chapter.

I'm not sure when this feature was introduced, so I'm leaving 3.1 in the 
versions for now.

--
assignee:  -> d...@python
components: +Documentation -Library (Lib)
nosy: +d...@python, orsenthil, r.david.murray
stage:  -> needs patch
title: port not split in function urllib.parse.urlparse -> host and port 
attributes not documented well in function urllib.parse.urlparse and urlsplit
versions: +Python 3.2

___
Python tracker 

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



[issue10695] telnetlib.Telnet port number int/str inconsistency

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
nosy: +jackdied

___
Python tracker 

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



[issue10697] host and port attributes not documented well in function urllib.parse.urlparse and urlsplit

2010-12-13 Thread Fred L. Drake, Jr.

Fred L. Drake, Jr.  added the comment:

These attributes were added in Python 2.5.

Documentation improvements should be backported to 2.7 and 3.1.

--
nosy: +fdrake

___
Python tracker 

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



[issue10697] host and port attributes not documented well in function urllib.parse.urlparse and urlsplit

2010-12-13 Thread Fred L. Drake, Jr.

Changes by Fred L. Drake, Jr. :


--
versions: +Python 2.7

___
Python tracker 

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



[issue10697] host and port attributes not documented well in function urllib.parse.urlparse and urlsplit

2010-12-13 Thread JTMoon79

JTMoon79  added the comment:

Doh!  I feel a bit silly.
I didn't notice 'hostname' and 'port' in 
>>> dir(urllib.parse.urlparse(r'http://foo.bar.com:80/blarg?a=1&b=2'))
[... 'count', 'fragment', 'geturl', 'hostname', 'index'
, 'netloc', 'params', 'password', 'path', 'port', 'query', 'scheme', 'username']

I agree, some clarity in the documentation for these overlapping fields 
(,,) would help.

-J_Tom_Moon_79

--

___
Python tracker 

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



[issue10698] doctest load_tests() typo

2010-12-13 Thread Andrew Dalke

New submission from Andrew Dalke :

doctest.html Section 24.2.5 "Unittest API" says:


def load_tests(loader, tests, ignore):
tests.addTests(doctest.DocTestSuite(my_module_with_doctests))
return test

That last line should be "return tests"

--
assignee: d...@python
components: Documentation
messages: 123904
nosy: dalke, d...@python
priority: normal
severity: normal
status: open
title: doctest load_tests() typo
versions: Python 3.2

___
Python tracker 

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



[issue10618] regression in subprocess.call() command quoting

2010-12-13 Thread Mads Kiilerich

Changes by Mads Kiilerich :


--
nosy: +kiilerix

___
Python tracker 

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



[issue10665] Expand unicodedata module documentation

2010-12-13 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

> Are you going to reject say issue2636 on this basis? :-)   Has *any*
> patch ever been rejected as incomplete?

I certainly did close patches for that reason. Before that, I keep
asking people not to post W-I-P. As for issue2636, I have been really
tempted to, see msg83277, msg83411. In one case, the conversation ended
with the user being banned from the tracker. I personally feel fairly
strongly that it is abuse to post things that you know are incomplete.
I won't review any such code.

--

___
Python tracker 

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



[issue9232] Allow trailing comma in any function argument list.

2010-12-13 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

I stand by my evaluation: there is clearly no consensus about this change, so 
it certainly requires more discussion, potentially leading to proponents being 
asked to write a PEP.

--

___
Python tracker 

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



[issue10698] doctest load_tests() typo

2010-12-13 Thread R. David Murray

R. David Murray  added the comment:

Thanks.  Fixed in r87216.

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

___
Python tracker 

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



[issue10699] [patch] fix incorrect help doc with time.tzset

2010-12-13 Thread Garrett Cooper

New submission from Garrett Cooper :

The following patch fixes the help docstring as time.tzset when called doesn't 
require any arguments (as noted in the source and also in the library 
documentation).

The patch produced was against trunk, but this appears to be an issue on 
release-maint26 and release-maint27 (and the patch applies cleanly) as the text 
is the same.

--
assignee: d...@python
components: Documentation
files: fix-timemodule-helpdoc.patch
keywords: patch
messages: 123908
nosy: d...@python, yaneurabeya
priority: normal
severity: normal
status: open
title: [patch] fix incorrect help doc with time.tzset
versions: Python 2.6, Python 2.7, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file20033/fix-timemodule-helpdoc.patch

___
Python tracker 

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



[issue9232] Allow trailing comma in any function argument list.

2010-12-13 Thread Nick Coghlan

Nick Coghlan  added the comment:

An open issue more accurately reflects the lack of consensus than a closed one, 
though. We just won't commit it until there *is* consensus that it is a better 
option than the status quo.

--
keywords: +after moratorium -patch
resolution: rejected -> 
status: closed -> open

___
Python tracker 

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



[issue10682] With '*args' or even bare '*' in def/call argument list, trailing comma causes SyntaxError

2010-12-13 Thread Nick Coghlan

Changes by Nick Coghlan :


--
resolution: rejected -> duplicate
superseder:  -> Allow trailing comma in any function argument list.

___
Python tracker 

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



[issue9232] Allow trailing comma in any function argument list.

2010-12-13 Thread Nick Coghlan

Nick Coghlan  added the comment:

>From 10682: the grammar is also inconsistent as to when trailing commas are 
>allowed in function calls, not just definitions.

--

___
Python tracker 

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



[issue9234] argparse: aliases for positional arguments (subparsers)

2010-12-13 Thread Adrian Sampson

Adrian Sampson  added the comment:

Sorry I'm slow. Here's a new patch that includes tests. I'll also write 
documentation if that would be helpful, although I'm not very familiar with the 
style recommendations.

--
Added file: http://bugs.python.org/file20034/argparse-aliases.patch

___
Python tracker 

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



[issue1078919] email.Header (via add_header) encodes non-ASCII content incorrectly

2010-12-13 Thread R. David Murray

R. David Murray  added the comment:

Committed the default-to-utf8 fix in r87217, splitting up the tests as 
suggested by Barry.  Backported to 3.1 in r87218.  Updated the documentation 
for 2.7 in r87219.

--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue9234] argparse: aliases for positional arguments (subparsers)

2010-12-13 Thread Éric Araujo

Éric Araujo  added the comment:

Thanks for the quick update!

+1 (1alias1,1alias2)
I think there should be a space after the comma.  Maybe “aliases:” could also 
be prepended, for clarity.

Help about the docs: http://docs.python.org/dev/documenting/

--

___
Python tracker 

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



[issue10699] [patch] fix incorrect help doc with time.tzset

2010-12-13 Thread R. David Murray

R. David Murray  added the comment:

Thanks.  Fixed in py3k in r87221.  I'll backport it when I backport my other 
doc updates.

FYI, 'trunk' is no longer a live branch.  Development trunk is now py3k.  2.6 
only gets security fixes.

--
nosy: +r.david.murray
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed
type:  -> behavior
versions: +Python 3.1 -Python 2.6, Python 3.3

___
Python tracker 

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



[issue10699] fix incorrect help doc with time.tzset

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
title: [patch] fix incorrect help doc with time.tzset -> fix incorrect help doc 
with time.tzset

___
Python tracker 

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



[issue9232] Allow trailing comma in any function argument list.

2010-12-13 Thread Eric Smith

Changes by Eric Smith :


--
nosy: +eric.smith

___
Python tracker 

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



[issue2226] Small _abcoll Bugs / Oddities

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
stage:  -> unit test needed
type:  -> behavior

___
Python tracker 

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



[issue9232] Allow trailing comma in any function argument list.

2010-12-13 Thread Jan Kaliszewski

Jan Kaliszewski  added the comment:

>From 10682: The patch proposed in this (#9232) issue does not fix call syntax 
>but def sytax only. I think it should fix call sytax as well (see code 
>examples in #10682).

--

___
Python tracker 

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



[issue9162] License for multiprocessing files

2010-12-13 Thread R. David Murray

R. David Murray  added the comment:

Committed in r87225, r87226, and r87227.  Thanks, Daniel.

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

___
Python tracker 

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



[issue9232] Allow trailing comma in any function argument list.

2010-12-13 Thread Jan Kaliszewski

Jan Kaliszewski  added the comment:

python-dev discussion continuation: 
http://mail.python.org/pipermail/python-dev/2010-December/106770.html

--

___
Python tracker 

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



[issue9232] Allow trailing comma in any function argument list.

2010-12-13 Thread Andreas Stührk

Changes by Andreas Stührk :


--
nosy: +Trundle

___
Python tracker 

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



[issue9775] Multiprocessing, logging and atexit play not well together

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
stage:  -> unit test needed
type:  -> behavior

___
Python tracker 

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



[issue6696] Profile objects should be documented

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
stage:  -> needs patch
type:  -> behavior
versions: +Python 3.2

___
Python tracker 

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



[issue3657] pickle can pickle the wrong function

2010-12-13 Thread R. David Murray

R. David Murray  added the comment:

The randomly failing tests seem to have been the high priority issue.  The 
remaining, eponymous issue seems to be of rather lower priority, so I'm setting 
it to normal.  Although Tim wanted a separate issue for the pickling problem, I 
think there's too much useful info about the underlying problem in this issue 
for it to make sense to open a new one.

--
assignee: nnorwitz -> 
nosy: +r.david.murray
priority: high -> normal
stage:  -> needs patch
type:  -> behavior
versions: +Python 3.1, Python 3.2 -Python 2.6

___
Python tracker 

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



[issue4180] warnings.simplefilter("always") does not make warnings always show up

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
type:  -> behavior
versions: +Python 3.1, Python 3.2 -Python 2.6

___
Python tracker 

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



[issue10692] imap lib server compabilities

2010-12-13 Thread Yevgeniy

Yevgeniy  added the comment:

>Where does the non-telnet part of your trace come from?  How did you produce 
>it?
When i got this error i set Debug = 5 in imaplib.py
and run next code:
import imaplib
M = imaplib.IMAP4_SSL('localhost')
M.login('username', 'password')
M.logout()

>Does this error still occur using 2.7?
Yes

As i see in debug information: CAPABILITIES: ('0', 'ACL', 'ACL2=UNION')
but in the telnet session i see next answer:
* CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT 
THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS LOGINDISABLED
Because of this i think that we have maybe some kind of error in the source 
code of library.
p.s. sorry for my English )

--

___
Python tracker 

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



[issue6377] distutils compiler switch ignored

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
nosy: +eric.araujo
stage:  -> unit test needed
type:  -> behavior

___
Python tracker 

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



[issue6721] Locks in python standard library should be sanitized on fork

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
stage:  -> unit test needed
type:  -> behavior
versions:  -Python 2.6

___
Python tracker 

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



[issue10541] regrtest.py -T broken

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
stage:  -> needs patch
type:  -> behavior

___
Python tracker 

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



[issue6559] add pass_fds paramter to subprocess.Popen()

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
title: [PATCH]add pass_fds paramter to subprocess.Popen() -> add pass_fds 
paramter to subprocess.Popen()
type:  -> feature request

___
Python tracker 

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



[issue10670] Provide search scope limits

2010-12-13 Thread R. David Murray

R. David Murray  added the comment:

This feature request should be submitted to the Sphinx tracker, since the docs 
search facility is provided by Sphinx.

--
nosy: +r.david.murray
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed
type:  -> feature request

___
Python tracker 

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



[issue10692] imap lib server compabilities

2010-12-13 Thread R. David Murray

R. David Murray  added the comment:

Well, in that case your telnet session doesn't tell us all that much, since you 
are using IMAP4_SSL in the Python but regular non-SSL in the telnet session.  
Are you sure it is even the same server running on the SSL port?

--

___
Python tracker 

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



[issue10692] imap lib server compabilities

2010-12-13 Thread R. David Murray

R. David Murray  added the comment:

By the way, an SSL login runs just fine for me against my Courier-IMAP server.  
Does regular IMAP work for you?

--

___
Python tracker 

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



[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
stage:  -> patch review
type:  -> feature request

___
Python tracker 

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



[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
versions: +Python 3.3 -Python 3.2

___
Python tracker 

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



[issue10262] Add --soabi option to `configure`

2010-12-13 Thread R. David Murray

R. David Murray  added the comment:

What's the status of this?  It sounds like it something that should be taken 
care of before the 3.2 release, but I know there has been other activity in 
this area and I haven't looked closely enough to understand the issues involved.

--
nosy: +r.david.murray
type:  -> feature request

___
Python tracker 

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



[issue10530] distutils2 should allow the installing of python files with invalid syntax

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
type:  -> feature request

___
Python tracker 

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



[issue6731] Add option of non-zero exit status of setup.py when building of extensions has failed

2010-12-13 Thread R. David Murray

Changes by R. David Murray :


--
type:  -> feature request
versions: +Python 3.3 -Python 3.2

___
Python tracker 

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



[issue2226] Small _abcoll Bugs / Oddities

2010-12-13 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Yes, if you have a chance to think it through, it would be nice to get this 
fixed-up.

--
assignee:  -> stutzbach
versions:  -Python 3.1

___
Python tracker 

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



[issue10700] python pickle.dumps AssertionError

2010-12-13 Thread HwidongNa

New submission from HwidongNa :

I'm trying to pickle a class instance containing two lists of another 
instances. The instances in the two lists have attributes that refer instances 
of each other. Here are the classes.

import pickle
from copy import copy

class Graph:
def __init__(self):
self.vertices = {}
self.edges = set()
def __repr__(self):
return "\n".join(map(str, sorted(self.vertices, key=lambda v:v.id)))

class Edge:
def __init__(self, vfrom, vto):
self.vfrom = vfrom
self.vto = vto
def __hash__(self):
return hash((self.vto, self.vfrom))
def __repr__(self):
return str(self.vto.id)
def __getstate__(self):
vfrom = copy(self.vfrom)
vfrom.del_outgoing(self)
vto = copy(self.vto)
vto.del_incoming(self)
self.__dict__.update({"vfrom":vfrom, "vto":vto, })
return self.__dict__
def __setstate__(self, state):
self.__dict__.update(state)
self.__dict__["vfrom"].add_outgoing(self)
self.__dict__["vto"].add_incoming(self)

class Vertex:
def __init__(self, id):
self.id = id
self.incoming = set()
self.outgoing = set()
def __repr__(self):
return "Vertex %d -> %s"%(self.id, ", ".join(map(str, self.outgoing)))
def __hash__(self):
return hash(self.id)
def add_incoming(self, edge):
if not edge in self.incoming:
self.incoming.add(edge)
def add_outgoing(self, edge):
if not edge in self.outgoing:
self.outgoing.add(edge)
def del_incoming(self, edge):
self.incoming.discard(edge)
def del_outgoing(self, edge):
self.outgoing.discard(edge)

I got an AssertionError when I pickled a simple graph as follows.

>>> v0 = Vertex(0)
>>> v1 = Vertex(1)
>>> e0to1 = Edge(v0, v1)
>>> v0.add_outgoing(e0to1)
>>> v1.add_incoming(e0to1)
>>> g = Graph()
>>> g.vertices[v0] = v0
>>> g.vertices[v1] = v1
>>> g.edges.add(e0to1)
>>> g.edges.add(e0to1)
>>> v2 = Vertex(2)
>>> e0to2 = Edge(v0, v2)
>>> v0.add_outgoing(e0to2)
>>> v2.add_incoming(e0to2)
>>> g.vertices[v2] = v2
>>> g.edges.add(e0to2)
>>> 
>>> print g
Vertex 0 -> 2, 1
Vertex 1 -> 
Vertex 2 -> 
>>> p = pickle.dumps(g)
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python2.6/pickle.py", line 1366, in dumps
Pickler(file, protocol).dump(obj)
  File "/usr/lib/python2.6/pickle.py", line 224, in dump
self.save(obj)
  File "/usr/lib/python2.6/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
  File "/usr/lib/python2.6/pickle.py", line 725, in save_inst
save(stuff)
  File "/usr/lib/python2.6/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
  File "/usr/lib/python2.6/pickle.py", line 649, in save_dict
self._batch_setitems(obj.iteritems())
  File "/usr/lib/python2.6/pickle.py", line 663, in _batch_setitems
save(v)
  File "/usr/lib/python2.6/pickle.py", line 331, in save
self.save_reduce(obj=obj, *rv)
  File "/usr/lib/python2.6/pickle.py", line 401, in save_reduce
save(args)
  File "/usr/lib/python2.6/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
  File "/usr/lib/python2.6/pickle.py", line 562, in save_tuple
save(element)
  File "/usr/lib/python2.6/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
  File "/usr/lib/python2.6/pickle.py", line 600, in save_list
self._batch_appends(iter(obj))
  File "/usr/lib/python2.6/pickle.py", line 615, in _batch_appends
save(x)
  File "/usr/lib/python2.6/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
  File "/usr/lib/python2.6/pickle.py", line 725, in save_inst
save(stuff)
  File "/usr/lib/python2.6/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
  File "/usr/lib/python2.6/pickle.py", line 649, in save_dict
self._batch_setitems(obj.iteritems())
  File "/usr/lib/python2.6/pickle.py", line 663, in _batch_setitems
save(v)
  File "/usr/lib/python2.6/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
  File "/usr/lib/python2.6/pickle.py", line 725, in save_inst
save(stuff)
  File "/usr/lib/python2.6/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
  File "/usr/lib/python2.6/pickle.py", line 649, in save_dict
self._batch_setitems(obj.iteritems())
  File "/usr/lib/python2.6/pickle.py", line 663, in _batch_setitems
save(v)
  File "/usr/lib/python2.6/pickle.py", line 331, in save
self.save_reduce(obj=obj, *rv)
  File "/usr/lib/python2.6/pickle.py", line 405, in save_reduce
self.memoize(obj)
  File "/usr/lib/python2.6/pickle.py", line 244, in memoize
assert id(obj) not in self.memo
AssertionError

I worked when the v2 is removed. 

>>> v0 = Vertex(0)
>>> v1 = Vertex(1)
>>> e0to1 = Edge(v0, v1)

  1   2   >