[issue11185] test_wait4 error on AIX

2011-03-08 Thread Sébastien Sablé

Sébastien Sablé  added the comment:

Yes, for the test, as I put in msg128727, it works fine by removing WNOHANG.

However I should put a note in the AIX-NOTES file to explain that wait4 is 
broken with WNOHANG on AIX and suggest the 2 workarounds.

--

___
Python tracker 

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



[issue11298] unittest discovery needs better explanation

2011-03-08 Thread blokeley

Changes by blokeley :


Removed file: http://bugs.python.org/file20863/py3k_rev9921_issue11298.patch

___
Python tracker 

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



[issue11298] unittest discovery needs better explanation

2011-03-08 Thread blokeley

Changes by blokeley :


Removed file: 
http://bugs.python.org/file20865/py2.7-maint_rev45852_issue11298.patch

___
Python tracker 

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



[issue11298] unittest discovery needs better explanation

2011-03-08 Thread blokeley

Changes by blokeley :


Removed file: 
http://bugs.python.org/file20866/py3.2-maint_rev9895_issue11298.patch

___
Python tracker 

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



[issue11298] unittest discovery needs better explanation

2011-03-08 Thread blokeley

blokeley  added the comment:

Patch for py3k (default branch).

--
Added file: http://bugs.python.org/file21042/issue11298_default.patch

___
Python tracker 

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



[issue11298] unittest discovery needs better explanation

2011-03-08 Thread blokeley

blokeley  added the comment:

Patch for 2.7 branch.

--
Added file: http://bugs.python.org/file21043/issue11298_py2.7.patch

___
Python tracker 

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



[issue11298] unittest discovery needs better explanation

2011-03-08 Thread blokeley

blokeley  added the comment:

Patch for 3.2 branch.
This is the first time I've submitted patches so I hope the format is OK. If I 
could have submitted 1 patch to apply to 2.7, 3.2 and py3k at the same time let 
me know.
Hope this helps.

--
Added file: http://bugs.python.org/file21044/issue11298_py3.2.patch

___
Python tracker 

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



[issue11432] webbrowser.open on unix fails.

2011-03-08 Thread Charles-Francois Natali

Charles-Francois Natali  added the comment:

The problem lies here:

/* Close pipe fds. Make sure we don't close the same fd more than */
/* once, or standard fds. */
if (p2cread > 2) {
POSIX_CALL(close(p2cread));
}
(c2pwrite > 2) {
POSIX_CALL(close(c2pwrite));
}
if (errwrite != c2pwrite && errwrite > 2) {
POSIX_CALL(close(errwrite));
}

If p2cread == c2pwrite (which is the case here since /dev/null is passed as 
stdin and stderr), we end up closing the same FD twice, hence the EBADF.
Just passing 
-(c2pwrite > 2) {
+(c2pwrite > 2 && c2pwrite != p2cread) {
POSIX_CALL(close(c2pwrite));
}

Solves this (but you probably also want to check for (errwrite != p2cread) when 
closing c2pwrite).

Note that the Python implementation uses a set to avoid closing the same FD 
twice:

# Close pipe fds. Make sure we don't close the
# same fd more than once, or standard fds.
closed = set()
for fd in [p2cread, c2pwrite, errwrite]:
if fd > 2 and fd not in closed:
os.close(fd)
closed.add(fd)

It might be cleaner to use a fd_set, i.e.:
fd_set set;
FD_ZERO(&set);
FD_SET(0, &set);
FD_SET(1, &set);
FD_SET(2, &set);
if (!FD_ISSET(p2cread, &set)) {
POSIX_CALL(close(p2cread));
FD_SET(p2cread, &fd);
}
if (!FD_ISSET(c2pwrite, &set)) {
POSIX_CALL(close(c2pwrite));
FD_SET(c2pwrite, &fd);
}
if (!FD_ISSET(errwrite, &set)) {
POSIX_CALL(close(errwrite));
FD_SET(errwrite, &fd);
}

But maybe it's just too much (and also, fd_set can be defined in different 
header files, and while I'm sure it's async-safe on Linux, I don't know if it's 
required as part of a standard...).

--
nosy: +neologix

___
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)

2011-03-08 Thread Davide Rizzo

Changes by Davide Rizzo :


--
nosy: +davide.rizzo

___
Python tracker 

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



[issue2771] new commit

2011-03-08 Thread Georg Brandl

Georg Brandl  added the comment:

test the roundup hook
http://hg.python.org/cpythonb48aeb097432

--
nosy: +georg.brandl
title: test issue -> new commit

___
Python tracker 

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



[issue2771] new commit

2011-03-08 Thread Georg Brandl

Georg Brandl  added the comment:

test the roundup hook again
http://hg.python.org/cpython/dfc4a58fc2d4

--

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Georg Brandl

Changes by Georg Brandl :


--
title: new commit -> Test issue

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Georg Brandl

Georg Brandl  added the comment:

test the roundup hook another time
http://hg.python.org/cpython/65f5077e877b

--

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Georg Brandl

Georg Brandl  added the comment:

test the roundup hook another time
http://hg.python.org/cpython/8f21aec26226

--

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Georg Brandl

Georg Brandl  added the comment:

test the roundup hook another time
http://hg.python.org/cpython/cf074b297bf9

--

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Georg Brandl

Georg Brandl  added the comment:

test the roundup hook another time
http://hg.python.org/cpython/502f0683b161

--

___
Python tracker 

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



[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-03-08 Thread Alexander

Alexander  added the comment:

This is small patch for related bug issue9577 which actually is not related to 
this bug.

--
nosy: +friday
Added file: http://bugs.python.org/file21045/cdata_patch.diff

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Georg Brandl

Georg Brandl  added the comment:

: test the refactored roundup hook.
http://hg.python.org/cpython/cd21195d07ca

--

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Georg Brandl

Changes by Georg Brandl :


--
status: closed -> open

___
Python tracker 

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



[issue2271] msi installs to the incorrect location (C drive)

2011-03-08 Thread Georg Brandl

Georg Brandl  added the comment:

finally fixing issue 2271: yay!
http://hg.python.org/cpython/add991f6527a

--
nosy: +georg.brandl

___
Python tracker 

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



[issue2271] msi installs to the incorrect location (C drive)

2011-03-08 Thread Georg Brandl

Changes by Georg Brandl :


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

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

re bug 2771 -- testing the roundup hook.
http://hg.python.org/cpython/c37da7946f2b

--
nosy: +pitrou

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Georg Brandl

Changes by Georg Brandl :


--
nosy:  -ezio.melotti, pitrou

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Georg Brandl

Georg Brandl  added the comment:

finally fixing issue 2771: yay!
http://hg.python.org/cpython/440238c16a7a

--
resolution: invalid -> 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



[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-03-08 Thread Alexander

Alexander  added the comment:

And this patch fix the both bugs in more elegant way

--
Added file: http://bugs.python.org/file21046/cdata_patch.diff

___
Python tracker 

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



[issue11298] unittest discovery needs better explanation

2011-03-08 Thread Ezio Melotti

Changes by Ezio Melotti :


--
assignee: docs@python -> ezio.melotti
stage:  -> patch review

___
Python tracker 

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



[issue11072] Add MLSD command support to ftplib

2011-03-08 Thread SilentGhost

SilentGhost  added the comment:

Here is a patch incorporating some of the changes proposed by Eric:

* drop callback, return generator of (filename, fact-dict)

> Aren't you modifying the state on the server (via "OPTS MLST"), and then if 
> you make a subsequent call without specifying "facts" you'll be using the 
> value of "facts" from the previous call to MLSD? I don't think that's 
> desirable, but short of calling "OPTS MLST" every time (possibly with the 
> results of an initial FEAT) there's no way around it.

This is the behaviour according to RFC. MLSD will return the set of facts, 
until a new OPTS MLST issued.

> I don't like the "isdigit" test. Shouldn't this decision be left to the 
> caller? What if a fact happens to look like an integer some of the time, but 
> not always? Maybe "unique" is a hex string. I don't think you'd want it 
> converted to an int on the occasions where it was all decimal digits, but a 
> string otherwise. Also look at your "modify" facts. Those are not very useful 
> as ints.

Drop the isdigit test: some value such as timestamps ('modify') might be 
"digits" for one files and would remain strings for the others.

> If a fact=value string does not have an '=', you silently ignore it. I'd 
> rather this raise an exception and not pass silently. It's not compliant. You 
> should have a test for this.

I don't think it should raise an error, i'd rather just pass it to the caller. 
There is a wide variety of possible non-compliant responses. For example there 
is a rigid format for time stamps, do we have to check for that?

One thing, that my patch doesn't do at the moment, but I think would be useful 
is to normalise all fact names to lower case. What do you think?

I hope that MLSD_DATA now covers wider range of cases (it's from 
http://tools.ietf.org/html/rfc3659#section-7.7.4). Note that server MUST NOT 
return facts that weren't requested.

What would be the return values check here?

--
Added file: http://bugs.python.org/file21047/issue11072.diff

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> re bug 2771 -- testing the roundup hook.
> http://hg.python.org/cpython/c37da7946f2b

Looks like this URL misses the "/rev/" before the changeset id.

--
nosy: +pitrou

___
Python tracker 

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



[issue9269] Cannot pickle self-referencing sets

2011-03-08 Thread bcroq

Changes by bcroq :


--
nosy: +bcroq

___
Python tracker 

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



[issue1062277] Pickle breakage with reduction of recursive structures

2011-03-08 Thread bcroq

Changes by bcroq :


--
nosy: +bcroq

___
Python tracker 

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



[issue4033] python search path - .pth recursion

2011-03-08 Thread Graham Wideman

Changes by Graham Wideman :


--
nosy: +gwideman

___
Python tracker 

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



[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2011-03-08 Thread Francis Devereux

Changes by Francis Devereux :


--
nosy: +frankoid

___
Python tracker 

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



[issue11413] Idle doesn't start

2011-03-08 Thread Chris

Chris  added the comment:

Can you please guide me step by step - how and where exactly do I open a 
command prompt?
 

--- On Mon, 3/7/11, Amaury Forgeot d'Arc  wrote:

From: Amaury Forgeot d'Arc 
Subject: [issue11413] Idle doesn't start
To: ceonnbo...@yahoo.com
Date: Monday, March 7, 2011, 4:26 PM

Amaury Forgeot d'Arc  added the comment:

Can you open a command prompt, and type:
   c:\python32\python.exe -m idlelib.idle
If there are messages, please paste them here!

--
nosy: +amaury.forgeotdarc

___
Python tracker 

___

--
Added file: http://bugs.python.org/file21048/unnamed

___
Python tracker 

___Can you please guide me step by step - how and 
where exactly do I open a command prompt?
 
--- On Mon, 3/7/11, Amaury Forgeot d'Arc 
 wrote:
From: Amaury Forgeot d'Arc 
Subject: [issue11413] Idle doesn't 
startTo: ceonnbo...@yahoo.comDate: Monday, March 7, 2011, 4:26 
PM
Amaury Forgeot d'Arc amaur...@gmail.com> added the 
comment:Can you open a command prompt, and 
type:   c:\python32\python.exe -m idlelib.idleIf there 
are messages, please paste them here!--nosy: 
+amaury.forgeotdarc___Python 
tracker rep...@bugs.python.org>http://bugs.python.org/issue11413>___

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



[issue11298] unittest discovery needs better explanation

2011-03-08 Thread Ezio Melotti

Ezio Melotti  added the comment:

#11298: Improve the unittest discovery explanation.
http://hg.python.org/cpython/rev/bbf8a8a1af17

--

___
Python tracker 

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



[issue11413] Idle doesn't start

2011-03-08 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

- Click the "Start" button
- On this menu, click the "Run..." item (almost at the bottom)
- In the small windows that opens, type "cmd" and click OK. This opens the 
command prompt.
- In this window, type:
c:\python32\python.exe -m idlelib.idle

To copy the output, you can open the menu by clicking on the icon on the 
top-left corner of the window; select "Edit", "Select All" and press Enter to 
copy all the window text into the clipboard.

--

___
Python tracker 

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



[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2011-03-08 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +haypo

___
Python tracker 

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



[issue11433] syntax error at "while" statement in IDLE/python shell

2011-03-08 Thread SilentGhost

Changes by SilentGhost :


--
status: pending -> closed

___
Python tracker 

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



[issue11298] unittest discovery needs better explanation

2011-03-08 Thread Ezio Melotti

Ezio Melotti  added the comment:

#11298: merge from 3.2.
http://hg.python.org/cpython/rev/fa23f323d747

--

___
Python tracker 

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



[issue11413] Idle doesn't start

2011-03-08 Thread Chris

Chris  added the comment:

Thank you, here is the message I got:
 
 
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Ceonn>c:\python32\python.exe -m idlelib.idle
Traceback (most recent call last):
  File "c:\python32\lib\runpy.py", line 160, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "c:\python32\lib\runpy.py", line 73, in _run_code
    exec(code, run_globals)
  File "c:\python32\lib\idlelib\idle.py", line 11, in 
    idlelib.PyShell.main()
  File "c:\python32\lib\idlelib\PyShell.py", line 1374, in main
    root = Tk(className="Idle")
  File "c:\python32\lib\tkinter\__init__.py", line 1674, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, 
want
objects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
    {C:\IBMTOOLS\Python22\tcl\tcl8.4} C:/IBMTOOLS/Python22/tcl/tcl8.5 
c:/python3
2/lib/tcl8.5 c:/lib/tcl8.5 c:/lib/tcl8.5 c:/library c:/library c:/tcl8.5.9/libra
ry c:/tcl8.5.9/library
C:/IBMTOOLS/Python22/tcl/tcl8.4/init.tcl: version conflict for package "Tcl": ha
ve 8.5.9, need exactly 8.4
version conflict for package "Tcl": have 8.5.9, need exactly 8.4
    while executing
"package require -exact Tcl 8.4"
    (file "C:/IBMTOOLS/Python22/tcl/tcl8.4/init.tcl" line 19)
    invoked from within
"source C:/IBMTOOLS/Python22/tcl/tcl8.4/init.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list source $tclfile]"

This probably means that Tcl wasn't installed properly.

--- On Tue, 3/8/11, Amaury Forgeot d'Arc  wrote:

From: Amaury Forgeot d'Arc 
Subject: [issue11413] Idle doesn't start
To: ceonnbo...@yahoo.com
Date: Tuesday, March 8, 2011, 9:26 AM

Amaury Forgeot d'Arc  added the comment:

- Click the "Start" button
- On this menu, click the "Run..." item (almost at the bottom)
- In the small windows that opens, type "cmd" and click OK. This opens the 
command prompt.
- In this window, type:
    c:\python32\python.exe -m idlelib.idle

To copy the output, you can open the menu by clicking on the icon on the 
top-left corner of the window; select "Edit", "Select All" and press Enter to 
copy all the window text into the clipboard.

--

___
Python tracker 

___

--
Added file: http://bugs.python.org/file21049/unnamed

___
Python tracker 

___Thank you, here is the message I got:
 
 
Microsoft Windows XP [Version 5.1.2600](C) Copyright 1985-2001 
Microsoft Corp.
C:\Documents and Settings\Ceonn>c:\python32\python.exe -m 
idlelib.idleTraceback (most recent call last):  File 
"c:\python32\lib\runpy.py", line 160, in 
_run_module_as_main    "__main__", fname, loader, 
pkg_name)  File "c:\python32\lib\runpy.py", line 73, in 
_run_code    exec(code, run_globals)  File 
"c:\python32\lib\idlelib\idle.py", line 11, in 
    idlelib.PyShell.main()  File 
"c:\python32\lib\idlelib\PyShell.py", line 1374, in main    
root = Tk(className="Idle")  File 
"c:\python32\lib\tkinter\__init__.py", line 1674, in 
__init__    self.tk = _tkinter.create(screenName, baseName, 
className, interactive, wantobjects, useTk, sync, 
use)_tkinter.TclError: Can't find a usable init.tcl in the following 
directories:    {C:\IBMTOOLS\Python22\tcl\tcl8.4}
 C:/IBMTOOLS/Python22/tcl/tcl8.5 c:/python32/lib/tcl8.5 c:/lib/tcl8.5 
c:/lib/tcl8.5 c:/library c:/library c:/tcl8.5.9/library 
c:/tcl8.5.9/library
C:/IBMTOOLS/Python22/tcl/tcl8.4/init.tcl: version conflict for package 
"Tcl": have 8.5.9, need exactly 8.4version conflict for package "Tcl": 
have 8.5.9, need exactly 8.4    while executing"package 
require -exact Tcl 8.4"    (file 
"C:/IBMTOOLS/Python22/tcl/tcl8.4/init.tcl" line 19)    
invoked from within"source 
C:/IBMTOOLS/Python22/tcl/tcl8.4/init.tcl"    ("uplevel" body 
line 1)    invoked from within"uplevel #0 [list source 
$tclfile]"
This probably means that Tcl wasn't installed properly.
--- On Tue, 3/8/11, Amaury Forgeot d'Arc 
 wrote:
From: Amaury Forgeot d'Arc 
Subject: [issue11413] Idle doesn't 
startTo: ceonnbo...@yahoo.comDate: Tuesday, March 8, 2011, 9:26 
AM
Amaury Forgeot d'Arc amaur...@gmail.com> added the 
comment:- Click the "Start" button- On this menu, click the 
"Run..." item (almost at the bottom)- In the small windows that opens, type 
"cmd" and click OK. This opens the command prompt.- In this window, 
type:    c:\python32\python.exe -m idlelib.idleTo copy 
the output, you can open the menu by clicking on the icon on the top-left 
corner of the window; select "Edit", "Select All" and press Enter to copy all 
the win

[issue11298] unittest discovery needs better explanation

2011-03-08 Thread Ezio Melotti

Ezio Melotti  added the comment:

#11298: Improve the unittest discovery explanation.
http://hg.python.org/cpython/rev/88b5a93b1725

--

___
Python tracker 

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



[issue11439] subversion keyword breakage

2011-03-08 Thread Stefan Krah

New submission from Stefan Krah :

Several files rely on properly substituted subversion keywords. In
the cpython clone the keywords aren't substituted.


3.3 example:


$ find . -name "*.c" | xargs grep -n '"\$'
./Modules/_bsddb.c:102:static char *rcs_id = "$Id$";
./Modules/pyexpat.c:1818:static char *rcsid = "$Revision$";
./Modules/getbuildinfo.c:28:#define SVNVERSION "$WCRANGE$$WCMODS?M:$"
./Modules/_hotshot.c:1402:static char *rcsid = "$Revision$";
./Python/sysmodule.c:1147:static const char headurl[] = "$HeadURL$";


Python 3.3a0 (default:a69ef22b60e3, Mar  8 2011, 15:40:56) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyexpat
>>> pyexpat.__version__
'400s)'
>>> 


2.5 example:


Python does not build without at least changing Include/patchlevel.h
and Python/sysmodule.c.

--
components: Interpreter Core
messages: 130335
nosy: georg.brandl, pitrou, skrah
priority: critical
severity: normal
stage: needs patch
status: open
title: subversion keyword breakage
type: behavior
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

___
Python tracker 

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



[issue11298] unittest discovery needs better explanation

2011-03-08 Thread Ezio Melotti

Ezio Melotti  added the comment:

Fixed on 2.7, 3.2 and py3k, thanks for the patch!

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



[issue11413] Idle doesn't start

2011-03-08 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

You certainly have a TCL_LIBRARY environment variable set on your system,
it should be removed.  For detailed instructions:
http://mail.python.org/pipermail/python-list/2010-April/1241061.html

--

___
Python tracker 

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



[issue11413] Idle doesn't start

2011-03-08 Thread Chris

Chris  added the comment:

In the Control Panel - System - Advanced - Environment Variables I find 
variables:
 
PYTHONCASEOK, 

--- On Tue, 3/8/11, Amaury Forgeot d'Arc  wrote:

From: Amaury Forgeot d'Arc 
Subject: [issue11413] Idle doesn't start
To: ceonnbo...@yahoo.com
Date: Tuesday, March 8, 2011, 10:43 AM

Amaury Forgeot d'Arc  added the comment:

You certainly have a TCL_LIBRARY environment variable set on your system,
it should be removed.  For detailed instructions:
http://mail.python.org/pipermail/python-list/2010-April/1241061.html

--

___
Python tracker 

___

--
Added file: http://bugs.python.org/file21050/unnamed

___
Python tracker 

___In the Control Panel - System - Advanced - 
Environment Variables I find variables:
 
PYTHONCASEOK, --- On Tue, 3/8/11, Amaury Forgeot d'Arc 
 wrote:
From: Amaury Forgeot d'Arc 
Subject: [issue11413] Idle doesn't 
startTo: ceonnbo...@yahoo.comDate: Tuesday, March 8, 2011, 10:43 
AM
Amaury Forgeot d'Arc amaur...@gmail.com> added the 
comment:You certainly have a TCL_LIBRARY environment variable set on 
your system,it should be removed.  For detailed instructions:http://mail.python.org/pipermail/python-list/2010-April/1241061.html"; 
target=_blank>http://mail.python.org/pipermail/python-list/2010-April/1241061.html--___Python
 tracker rep...@bugs.python.org>http://bugs.python.org/issue11413>___







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



[issue11413] Idle doesn't start

2011-03-08 Thread Chris

Chris  added the comment:

Sent previous message before it was finished, will resend, got to go now though.

--- On Tue, 3/8/11, Amaury Forgeot d'Arc  wrote:

From: Amaury Forgeot d'Arc 
Subject: [issue11413] Idle doesn't start
To: ceonnbo...@yahoo.com
Date: Tuesday, March 8, 2011, 10:43 AM

Amaury Forgeot d'Arc  added the comment:

You certainly have a TCL_LIBRARY environment variable set on your system,
it should be removed.  For detailed instructions:
http://mail.python.org/pipermail/python-list/2010-April/1241061.html

--

___
Python tracker 

___

--
Added file: http://bugs.python.org/file21051/unnamed

___
Python tracker 

___Sent previous message before it was finished, will 
resend, got to go now though.--- On Tue, 3/8/11, Amaury Forgeot 
d'Arc  wrote:
From: Amaury Forgeot d'Arc 
Subject: [issue11413] Idle doesn't 
startTo: ceonnbo...@yahoo.comDate: Tuesday, March 8, 2011, 10:43 
AM
Amaury Forgeot d'Arc amaur...@gmail.com> added the 
comment:You certainly have a TCL_LIBRARY environment variable set on 
your system,it should be removed.  For detailed instructions:http://mail.python.org/pipermail/python-list/2010-April/1241061.html"; 
target=_blank>http://mail.python.org/pipermail/python-list/2010-April/1241061.html--___Python
 tracker rep...@bugs.python.org>http://bugs.python.org/issue11413>___

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



[issue11440] fix_callable should be dropped from lib2to3 / changed

2011-03-08 Thread SilentGhost

New submission from SilentGhost :

Since the callable return in 3.2, should the fix_callable be dropped from 
lib2to3 or should it be adjusted to make distinction between 3.1 and 3.2 
situation? I'm not sure if latter is possible.

--
components: 2to3 (2.x to 3.0 conversion tool)
messages: 130340
nosy: SilentGhost, pitrou
priority: normal
severity: normal
status: open
title: fix_callable should be dropped from lib2to3 / changed
versions: Python 3.2, Python 3.3

___
Python tracker 

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



[issue11439] subversion keyword breakage

2011-03-08 Thread Skip Montanaro

Changes by Skip Montanaro :


--
nosy: +skip.montanaro

___
Python tracker 

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



[issue11439] subversion keyword breakage

2011-03-08 Thread Skip Montanaro

Skip Montanaro  added the comment:

See also issue 11421.

--

___
Python tracker 

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



[issue11441] compile() raises SystemError if called from except clause

2011-03-08 Thread July Tikhonov

New submission from July Tikhonov :

Normal:
>>> compile('1 = 1', '', 'exec')
Traceback (most recent call last):
  File "", line 1, in 
  File "", line 1
SyntaxError: can't assign to literal

SystemError is raised instead of SyntaxError:
>>> try: abcde
... except NameError:
...  compile('1 = 1', '', 'exec')
... 
Traceback (most recent call last):
  File "", line 1, in 
NameError: name 'abcde' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "", line 3, in 
SystemError: Objects/tupleobject.c:126: bad argument to internal function

Error can be discovered by calling dis.dis('1 = 1').

--
components: Library (Lib)
messages: 130342
nosy: july
priority: normal
severity: normal
status: open
title: compile() raises SystemError if called from except clause
type: behavior
versions: Python 3.3

___
Python tracker 

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



[issue11441] compile() raises SystemError if called from except clause

2011-03-08 Thread Daniel Urban

Daniel Urban  added the comment:

Apparently ast_error_finish calls PyTuple_GetItem with a value that is not a 
tuple, but a SyntaxError instance (in Python/ast.c line 112).  It seems that 
ast_error_finish expects that PyErr_Fetch will return the exception value as a 
tuple, and in some cases this seems correct (for example when not in an except 
clause), but not in this case.  I don't know much about Python exception 
handling in C, but it seems to me, that it shouldn't expect always a tuple (see 
also 
http://docs.python.org/dev/py3k/c-api/exceptions.html#PyErr_NormalizeException).

--
nosy: +durban
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



[issue11344] Add height argument to os.path.dirname()

2011-03-08 Thread blokeley

blokeley  added the comment:

os.path.splitpath() as described by rhettinger would solve the problem.

If I wrote the patches, tests and docs, what are the chances of it being 
accepted?

--

___
Python tracker 

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



[issue11344] Add height argument to os.path.dirname()

2011-03-08 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> If I wrote the patches, tests and docs, what are the chances of it
> being accepted?

Rather high as far as I'm concerned. Be careful with semantics and 
implementation under Windows, though (you should probably take a look at 
existing functions in ntpath.py as a guideline).

--

___
Python tracker 

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



[issue11441] compile() raises SystemError if called from except clause

2011-03-08 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

Right. In most cases, "PyErr_SetObject(PyExc_SyntaxError, tuple);" will store 
the untouched tuple in tstate->curexc_value, *except* when "Implicit exception 
chaining" occurs, in which case the exception is normalized.

ast_error_finish() should not expect a tuple in all cases, and should probably 
normalize the exception as well.

--
nosy: +amaury.forgeotdarc

___
Python tracker 

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



[issue11442] list_directory() in SimpleHTTPServer.py should add charset=... to Content-type header

2011-03-08 Thread Guido van Rossum

New submission from Guido van Rossum :

The security list received a report about SimpleHTTPServer's list_directory(). 
It needs to add a charset parameter to the Content-type header. This is already 
done in Python 3 (where this code lives in http/server.py) but not in any 
Python 2 versions I can find. A simple backport of the code in Python 3 should 
hopefully suffice.

I'm marking this tentatively as a release blocker, but I don't see it's 
necessary to issue an urgent release. It should just be fixed before the next 
scheduled releases of 2.5, 2.6, 2.7.

--
messages: 130347
nosy: barry, benjamin.peterson, gvanrossum
priority: release blocker
severity: normal
stage: needs patch
status: open
title: list_directory() in SimpleHTTPServer.py should add charset=... to 
Content-type header
type: security
versions: Python 2.5, Python 2.6, Python 2.7

___
Python tracker 

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



[issue11442] list_directory() in SimpleHTTPServer.py should add charset=... to Content-type header

2011-03-08 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> It needs to add a charset parameter to the Content-type header.

What is the rationale?

--
nosy: +orsenthil, pitrou

___
Python tracker 

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




[issue11442] list_directory() in SimpleHTTPServer.py should add charset=... to Content-type header

2011-03-08 Thread Guido van Rossum

Guido van Rossum  added the comment:

>> It needs to add a charset parameter to the Content-type header.
>
> What is the rationale?

Without a charset parameter, IE7 engages in encoding-sniffing and can
be enticed to interpret the output as UTF7. This allows an attacker to
hide e.g. 

[issue2771] Test issue

2011-03-08 Thread Roundup Robot

Roundup Robot  added the comment:

Changeset b92334d06445 by Antoine Pitrou :
Issue #2771: fixing frobnicator\nI hope this works

--
nosy: +python-dev

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Roundup Robot

Roundup Robot  added the comment:

Changeset b92334d06445 by Antoine Pitrou :
Issue #2771: fixing frobnicator\nI hope this works

--
nosy: +python-dev

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Roundup Robot

Roundup Robot  added the comment:

Changeset b92334d06445 by Antoine Pitrou :
Issue #2771: fixing frobnicator\nI hope this works

--
nosy: +python-dev

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset ef6738f4ba2e by Antoine Pitrou :
Issue #2771: fixing frobnicator again!

--

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset ef6738f4ba2e by Antoine Pitrou:
Issue #2771: fixing frobnicator again!

--

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset ef6738f4ba2e by Antoine Pitrou:
Issue #2771: fixing frobnicator again!

--

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset ef6738f4ba2e by Antoine Pitrou:
Issue #2771: fixing frobnicator again!

--

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset ef6738f4ba2e by Antoine Pitrou:
Issue #2771: fixing frobnicator again!
http://hg.python.org/cpython/rev/ef6738f4ba2e

--

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset ef6738f4ba2e by Antoine Pitrou:
Issue #2771: fixing frobnicator again!
http://hg.python.org/cpython/rev/ef6738f4ba2e

--

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset ef6738f4ba2e by Antoine Pitrou:
Issue #2771: fixing frobnicator again!
http://hg.python.org/test/rev/ef6738f4ba2e

--

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset ef6738f4ba2e by Antoine Pitrou in branch 'default':
Issue #2771: fixing frobnicator again!
http://hg.python.org/test/rev/ef6738f4ba2e

--

___
Python tracker 

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



[issue11443] Zip password issue

2011-03-08 Thread Yaroslav

New submission from Yaroslav :

There's issue while setting password.
I brute-force different passwords for that arhive-file, and it pass with 
different, not correct password. For that arhive password is: "pass", but that 
arhive is correct in python and even extract files from that with not correct 
passwords:
('Password is:', 'aafy')
('Password is:', 'aakv')
('Password is:', 'aavu')
('Password is:', 'aazs')
('Password is:', 'abgj')
('Password is:', 'abmr')
('Password is:', 'abzo')
('Password is:', 'acds')
('Password is:', 'acdu')
('Password is:', 'ace')
('Password is:', 'achc')
('Password is:', 'acue')
('Password is:', 'acxi')
('Password is:', 'adcj')
('Password is:', 'adcl')
('Password is:', 'adde')
('Password is:', 'advx')
('Password is:', 'aenu')
('Password is:', 'afbl')
('Password is:', 'afqg')
('Password is:', 'afyl')
('Password is:', 'agef')
('Password is:', 'agtv')
('Password is:', 'aimo')
('Password is:', 'aizr')
('Password is:', 'ajjt')
('Password is:', 'ajlj')
('Password is:', 'akqr')
...
Of course content of file is not correct ("Q1E85�ڳM��ژo��H*]  5Q���
 ����X">_+x�������I�k�~L>��
").

z = zipfile.ZipFile("data.zip", 'r')
z.setpassword("aafy")
print(z.read("secretfile.txt"))

--
messages: 130361
nosy: sbojchuk
priority: normal
severity: normal
status: open
title: Zip password issue
versions: Python 2.5, Python 2.6, Python 2.7

___
Python tracker 

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



[issue11444] logging FileHandler.close should acquire its lock before closing stream

2011-03-08 Thread Adam Ernst

New submission from Adam Ernst :

This is my first report, apologies if I missed any tracker etiquette.

The logging module registers shutdown() to run via atexit. shutdown() calls 
flush() and close() on each handler.

However if a FileHandler is writing to a file while shutdown() is executing, an 
IOError will be raised as the file is being closed while written to. (This can 
happen if you use daemon threads, which can still be running while exiting.)


Traceback (most recent call last):
  File "/usr/local/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
  File "/usr/local/lib/python2.7/logging/__init__.py", line 1616, in shutdown
h.close()
  File "/usr/local/lib/python2.7/logging/__init__.py", line 898, in close
self.stream.close()
IOError: close() called during concurrent operation on the same file object.


I'm not familiar with the internals of logging, but it seems that FileHandler 
should call self.acquire()/self.release() around its close and flush 
operations. Otherwise a daemon thread might be emitting a record while closing 
the handler.

--
components: Library (Lib)
messages: 130362
nosy: Adam.Ernst
priority: normal
severity: normal
status: open
title: logging FileHandler.close should acquire its lock before closing stream
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



[issue2771] Test issue

2011-03-08 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset ef6738f4ba2e by Antoine Pitrou in branch 'default':
Issue #2771: fixing frobnicator again!
/rev/ef6738f4ba2e

--

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset ef6738f4ba2e by Antoine Pitrou in branch 'default':
Issue #2771: fixing frobnicator again!
http://hg.python.org/test/rev/ef6738f4ba2e

--

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset ef6738f4ba2e by Antoine Pitrou in branch 'default':
Issue #2771: fixing frobnicator again!
http://hg.python.org/test/rev/ef6738f4ba2e

--

___
Python tracker 

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



[issue11443] Zip password issue

2011-03-08 Thread Yaroslav

Yaroslav  added the comment:

I forgot zip file

--
Added file: http://bugs.python.org/file21052/data.zip

___
Python tracker 

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



[issue11432] webbrowser.open on unix fails.

2011-03-08 Thread Charles-Francois Natali

Charles-Francois Natali  added the comment:

Attached is a patch checking that no FD is closed more once when
closing pipe FDs, along with an update for test_subprocess.

--
keywords: +patch
Added file: http://bugs.python.org/file21053/subprocess_same_fd.diff

___
Python tracker 

___Index: Lib/test/test_subprocess.py
===
--- Lib/test/test_subprocess.py (révision 88766)
+++ Lib/test/test_subprocess.py (copie de travail)
@@ -292,6 +292,32 @@
 tf.seek(0)
 self.assertStderrEqual(tf.read(), b"appleorange")
 
+def test_stdin_stdout_filedes(self):
+# capture stdin and stdout to the same open file
+tf = tempfile.TemporaryFile()
+self.addCleanup(tf.close)
+p = subprocess.Popen([sys.executable, "-c",
+  'import sys;'
+  'sys.stdout.write("apple");'],
+ stdin=tf,
+ stdout=tf)
+p.wait()
+tf.seek(0)
+self.assertEqual(tf.read(), b"apple")
+
+def test_stdin_stderr_filedes(self):
+# capture stdin and stderr to the same open file
+tf = tempfile.TemporaryFile()
+self.addCleanup(tf.close)
+p = subprocess.Popen([sys.executable, "-c",
+  'import sys;'
+  'sys.stderr.write("apple");'],
+ stdin=tf,
+ stderr=tf)
+p.wait()
+tf.seek(0)
+self.assertEqual(tf.read(), b"apple")
+
 def test_stdout_filedes_of_stdout(self):
 # stdout is set to 1 (#1531862).
 cmd = r"import sys, os; sys.exit(os.write(sys.stdout.fileno(), 
b'.\n'))"
Index: Modules/_posixsubprocess.c
===
--- Modules/_posixsubprocess.c  (révision 88766)
+++ Modules/_posixsubprocess.c  (copie de travail)
@@ -99,10 +99,10 @@
 if (p2cread > 2) {
 POSIX_CALL(close(p2cread));
 }
-if (c2pwrite > 2) {
+if (c2pwrite > 2 && c2pwrite != p2cread) {
 POSIX_CALL(close(c2pwrite));
 }
-if (errwrite != c2pwrite && errwrite > 2) {
+if (errwrite > 2 && errwrite != c2pwrite && errwrite != p2cread) {
 POSIX_CALL(close(errwrite));
 }
 
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11443] Zip password issue

2011-03-08 Thread Charles-Francois Natali

Charles-Francois Natali  added the comment:

The check is done in py3k:

Traceback (most recent call last):
  File "/home/cf/test_zip.py", line 7, in 
print(z.read("secretfile.txt"))
  File "/home/cf/py3k/Lib/zipfile.py", line 889, in read
with self.open(name, "r", pwd) as fp:
  File "/home/cf/py3k/Lib/zipfile.py", line 975, in open
raise RuntimeError("Bad password for file", name)
RuntimeError: ('Bad password for file', 'secretfile.txt')

Try with Python 3.2.

--
nosy: +neologix

___
Python tracker 

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



[issue11432] webbrowser.open on unix fails.

2011-03-08 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

That probably won't make a difference here, but be aware that we switched to 
Mercurial and the SVN repo won't get updates anymore.
See http://docs.python.org/devguide/ and 
http://docs.python.org/devguide/setup.html#getting-the-source-code for details.

--
nosy: +pitrou
stage:  -> patch review
versions: +Python 2.7, Python 3.3

___
Python tracker 

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



[issue8594] Add a "source_address" option to ftplib

2011-03-08 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 7f605fa1688d by Giampaolo Rodol�� in branch 'default':
#8594: fix ResourceWarning in test_ftplib.py - patch by Nadeem Vawda.
http://hg.python.org/cpython/rev/7f605fa1688d

--
nosy: +python-dev

___
Python tracker 

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



[issue2771] Test issue

2011-03-08 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset a25e4c9f7b3a by éléphant in branch 'default':
Issue #2771: héhé
http://hg.python.org/test/rev/a25e4c9f7b3a

--

___
Python tracker 

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



[issue8594] Add a "source_address" option to ftplib

2011-03-08 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
status: open -> closed

___
Python tracker 

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



[issue10617] Collections ABCs can’t be linked to

2011-03-08 Thread Sandro Tosi

Sandro Tosi  added the comment:

Hi Éric, after #11085, I think the part of the doc you're referring to has been 
moved to collections.abc.rst, is that correct? If so, can you please explain 
what you'd like to see? all those ":class:`Container`" converted into ".. 
class:: Container" in the table? That will help me provide a patch :)

--
nosy: +sandro.tosi
versions: +Python 3.3

___
Python tracker 

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



[issue11344] Add os.path.splitpath(path) function

2011-03-08 Thread blokeley

blokeley  added the comment:

I started writing the patch against py2.7 but realised that 2.7 could be the 
last in the 2.x series. I'll write the patch against default tip.

--
title: Add height argument to os.path.dirname() -> Add os.path.splitpath(path) 
function

___
Python tracker 

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



[issue7689] Pickling of classes with a metaclass and copy_reg

2011-03-08 Thread François Bissey

Changes by François Bissey :


--
nosy: +fbissey

___
Python tracker 

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



[issue11441] compile() raises SystemError if called from except clause

2011-03-08 Thread Daniel Urban

Daniel Urban  added the comment:

Here is a patch. I wasn't sure, where to put the test, so I put it in test_ast.

--
keywords: +patch
Added file: http://bugs.python.org/file21054/issue11441.patch

___
Python tracker 

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



[issue11009] urllib.splituser is not documented

2011-03-08 Thread Sandro Tosi

Changes by Sandro Tosi :


--
nosy: +sandro.tosi
versions: +Python 2.7, Python 3.2, 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



[issue11444] logging FileHandler.close should acquire its lock before closing stream

2011-03-08 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +vinay.sajip

___
Python tracker 

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



[issue11443] Zip password issue

2011-03-08 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

2.6/2.7 only get security fixes. I do not think this qualifies

--
components: +Library (Lib)
nosy: +terry.reedy
stage:  -> test needed
type:  -> behavior
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



[issue11441] compile() raises SystemError if called from except clause

2011-03-08 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan

___
Python tracker 

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



[issue11440] fix_callable should be dropped from lib2to3 / changed

2011-03-08 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue11435] Links to source code should now point to hg repo

2011-03-08 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> So, it's not possible to access http://svn.python.org/view/python
> /branches/py3k/ at all now?

Hmm, apparently no. Is it important?

--

___
Python tracker 

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



[issue11440] fix_callable should be dropped from lib2to3 / changed

2011-03-08 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I suspect that this will not be the last time that a fix is version dependent. 
I think that the 2to3 distributed with 3.x should fix to 3.x. Otherwise, the 
fix would have to do an 'if version...' dance. (Perhaps the version distributed 
with 2.7 should do *that*.) But I would defer to those maintaining it.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue11441] compile() raises SystemError if called from except clause

2011-03-08 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

You can put the test in test_compile.

--

___
Python tracker 

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



[issue11445] Something changed w.r.t. /pythonN.M/site-packages in the Hg switch

2011-03-08 Thread Skip Montanaro

New submission from Skip Montanaro :

I routinely configure Python like so on my Mac (10.5.8):

./configure  --prefix=/Users/skip/local --enable-shared 
LDFLAGS=-L/opt/local/lib CPPFLAGS=-I/opt/local/include

This has always worked for me.  Now, after installing from my Mercurial
sandbox I have to set PYTHONPATH to get my /python2.7/site-packages
directory in sys.path.  Here's sys.path in a vanilla python2.7 session when
installed from a svn sandbox:

['/Users/skip/misc/python/python2', '/Users/skip/misc/python', '',

'/Users/skip/local/lib/python2.7/site-packages/ZODB3-3.8.1b8-py2.7-macosx-10.3-i386.egg',
'/Users/skip/local/lib/python2.7/site-packages/zdaemon-2.0.2-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/ZConfig-2.6.0-py2.7.egg',

'/Users/skip/local/lib/python2.7/site-packages/zope.testing-3.7.0-py2.7.egg',

'/Users/skip/local/lib/python2.7/site-packages/zope.proxy-3.4.2-py2.7-macosx-10.3-i386.egg',

'/Users/skip/local/lib/python2.7/site-packages/zope.interface-3.4.1-py2.7-macosx-10.3-i386.egg',
'/Users/skip/local/lib/python2.7/site-packages/yolk-0.4.1-py2.7.egg',

'/Users/skip/local/lib/python2.7/site-packages/SQLAlchemy-0.5.0rc2-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/decorator-2.3.1-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/dnspython-1.6.0-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/spambayes-1.1b1-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/py2app-0.3.6-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/bdist_mpkg-0.4.3-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/macholib-1.1-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/modulegraph-0.7-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/altgraph-0.6.7-py2.7.egg',

'/Users/skip/local/lib/python2.7/site-packages/python_dateutil-1.4.1-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/coverage-2.85-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/pycallgraph-0.5.1-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/see-0.4.0-py2.7.egg',

'/Users/skip/local/lib/python2.7/site-packages/mercurial-unknown-py2.7-macosx-10.3-i386.egg',
'/Users/skip/local/lib/python2.7/site-packages/Pyjamas-0.5-py2.7.egg',

'/Users/skip/local/lib/python2.7/site-packages/Cheetah-2.0.1-py2.7-macosx-10.3-i386.egg',
'/Users/skip/local/lib/python2.7/site-packages/mock-0.4.0-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/pydns-2.3.3-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/Importing-1.9.2-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/docutils-0.6-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/MiniMock-1.2.5-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/nose-0.11.2.dev-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/pytz-2010b-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/pip-0.6.3-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/xlrd-0.7.1-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/apipkg-1.0-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/argparse-1.1-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/virtualenv-1.5.1-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/tox-0.9-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/py-1.4.0-py2.7.egg',

'/Users/skip/local/lib/python2.7/site-packages/virtualenv5-1.3.4.5-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/pylint-0.22.0-py2.7.egg',

'/Users/skip/local/lib/python2.7/site-packages/logilab_astng-0.21.0-py2.7.egg',

'/Users/skip/local/lib/python2.7/site-packages/logilab_common-0.53.0-py2.7.egg',
'/Users/skip/local/lib/python2.7/site-packages/unittest2-0.5.1-py2.7.egg',

'/Users/skip/local/lib/python2.7/site-packages/PIL-1.1.7-py2.7-macosx-10.4-i386.egg',
'/Users/skip/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg',
'/Users/skip/local/lib/python2.7',
'/Users/skip/local/lib/python2.7/plat-darwin',
'/Users/skip/local/lib/python2.7/plat-mac',
'/Users/skip/local/lib/python2.7/plat-mac/lib-scriptpackages',
'/Users/skip/local/lib/python2.7/lib-tk',
'/Users/skip/local/lib/python2.7/lib-old',
'/Users/skip/local/lib/python2.7/lib-dynload',
'/Users/skip/.local/lib/python2.7/site-packages',
'/Users/skip/local/lib/python2.7/site-packages',
'/Users/skip/local/lib/python2.7/site-packages/PIL']

Here it is when installed from a Mercurial sandbox:

['/Users/skip/misc/python/python2', '/Users/skip/misc/python', '',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',

'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',

'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',

'/opt/local/Librar

[issue11441] compile() raises SystemError if called from except clause

2011-03-08 Thread Daniel Urban

Daniel Urban  added the comment:

Okay, here is a new patch with the test in the correct place (I hope).

--
Added file: http://bugs.python.org/file21055/issue11441_2.patch

___
Python tracker 

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



[issue11445] Something changed w.r.t. /pythonN.M/site-packages in the Hg switch

2011-03-08 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo

___
Python tracker 

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



[issue11413] Idle doesn't start

2011-03-08 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Chris: I appreciate you wanting use IDLE. I love it, hope to improve it, and am 
sorry that people occasionally have a problem starting it.

However, this is not a bug report but a usage question that would better have 
been posted to our python-list email list or the comp.lang.python newsgroup or 
the gmane.comp.python.general newsgroup mirror at the free news.gmane.org site.

I am closing this issue because there is not any obvious action to take with 
respect to the Python repository. Closing does not delete anything, nor does it 
stop you and Amaury from continuing your discussion. If some needed change to 
Python does become revealed, this can be reopened, although starting fresh with 
a new issue might be better.

When you email to the tracker, please delete everything except your response. 
Your last two messages are nearly all noise except for the the one new line.

I have considered that we maybe need an IDLE Troubleshooting doc, but I am not 
sure where to put it so that anyone would find it and use it. If there were a 
'Running IDLE' HOW TO, would you have found it?

If you are going to use 3.1, use the latest 3.1.3 release, with all of its bug 
fixes. But I strongly recommend that you start now with 3.2, with its 
additional new changes, and forget 3.1.

--
nosy: +terry.reedy
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



[issue11413] Idle doesn't start

2011-03-08 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

It also appears that you are submitting messages as HTML rather than plain 
text. Hence the junk 'unknown' files. Please do not do that. (Messages to a 
mailing list or newsgroup should also be plain text.)

--

___
Python tracker 

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



[issue11413] Idle doesn't start

2011-03-08 Thread Terry J. Reedy

Changes by Terry J. Reedy :


Removed file: http://bugs.python.org/file21038/unnamed

___
Python tracker 

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



[issue11413] Idle doesn't start

2011-03-08 Thread Terry J. Reedy

Changes by Terry J. Reedy :


Removed file: http://bugs.python.org/file21048/unnamed

___
Python tracker 

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



[issue11413] Idle doesn't start

2011-03-08 Thread Terry J. Reedy

Changes by Terry J. Reedy :


Removed file: http://bugs.python.org/file21049/unnamed

___
Python tracker 

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



[issue11413] Idle doesn't start

2011-03-08 Thread Terry J. Reedy

Changes by Terry J. Reedy :


Removed file: http://bugs.python.org/file21050/unnamed

___
Python tracker 

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



  1   2   >