[issue1500504] Alternate RFC 3986 compliant URI parsing module

2010-07-10 Thread Nick Coghlan

Nick Coghlan  added the comment:

"accepted" is a little too strong for the current status of this :)

I've removed the easy tag as well (making the case for this or something like 
it in the standard library it going to involve a fair bit of effort - the 
coding was actually the comparatively easy part).

--
keywords:  -easy
resolution: accepted -> 

___
Python tracker 

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



[issue900112] cgi.fieldStorage doesn't grok standards env. variables

2010-07-10 Thread Senthil Kumaran

Changes by Senthil Kumaran :


--
assignee:  -> orsenthil
nosy: +orsenthil

___
Python tracker 

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



[issue7752] Add support for Digest authentication session (reuse nonces)

2010-07-10 Thread Senthil Kumaran

Changes by Senthil Kumaran :


--
assignee:  -> orsenthil
nosy: +orsenthil
resolution:  -> accepted
stage: unit test needed -> patch review

___
Python tracker 

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



[issue4493] urllib2 doesn't always supply / where URI path component is empty

2010-07-10 Thread Senthil Kumaran

Changes by Senthil Kumaran :


--
assignee:  -> orsenthil

___
Python tracker 

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



[issue8145] Documentation about sqlite3 isolation_level

2010-07-10 Thread Laszlo Nagy

Laszlo Nagy  added the comment:

2010/7/11 Terry J. Reedy 

>
> Terry J. Reedy  added the comment:
>
> If the content of the patch is correct, it looks ready to apply, with only
> a touch of editing. Do we have a resident expert of sqlite3? Or Laszlo, do
> you have a reference for the statements made?
>

Sorry, the only reference I have is that mailing list thread (
http://mail.python.org/pipermail/python-list/2010-March/1239374.html ).

There you can find an example with SQL statements, showing the problem.

Ryan Kelly wrote the following:


I have a theory, based on a quick perusal of the sqlite3 bindings
source.

The bindings think that "SAVEPOINT sp1" is a "non-DML, non-query"
statement. So when isolation_level is something other than None, this
statement implicitly commits the current transaction and throws away
your savepoints!


So the problem is with the sqlite binding code, not sqlite itself. I'm not
an expert in C, so I'm not sure I can help more.

Thanks,

   Laszlo

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

___
Python tracker 

___2010/7/11 Terry J. Reedy rep...@bugs.python.org>

Terry J. Reedy tjre...@udel.edu> 
added the comment:

If the content of the patch is correct, it looks ready to apply, with only a 
touch of editing. Do we have a resident expert of sqlite3? Or Laszlo, do you 
have a reference for the statements made?Sorry, the only 
reference I have is that mailing list thread ( http://mail.python.org/pipermail/python-list/2010-March/1239374.html";>http://mail.python.org/pipermail/python-list/2010-March/1239374.html
 ).
There you can find an example with SQL statements, showing the problem. 
Ryan Kelly wrote the following:
I have a theory, based on a quick perusal of the sqlite3 bindings
source.

The bindings think that "SAVEPOINT sp1" is a "non-DML, 
non-query"
statement. So when isolation_level is something other than None, this
statement implicitly commits the current transaction and throws away
your savepoints!
So the problem is with the sqlite binding code, not 
sqlite itself. I'm not an expert in C, so I'm not sure I can help 
more.Thanks,   Laszlo
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4140] urllib2: request with digest auth through proxy fail

2010-07-10 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

This might be related to issue2202 as well.

--
assignee: gregory.p.smith -> orsenthil
dependencies: +urllib2 fails against IIS 6.0 (No support for MD5-sess auth)
nosy: +orsenthil
resolution:  -> accepted

___
Python tracker 

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



[issue1500504] Alternate RFC 3986 compliant URI parsing module

2010-07-10 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

A new way for parsing URI. I have not reviewed it even after saying I would 
like to, but having the dependency issue resolved, I think it is good to look 
at it again, especially if it leads some helpful approaches to parsing IRI.

--
assignee:  -> orsenthil
dependencies:  -URI parsing library
resolution:  -> accepted

___
Python tracker 

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



[issue3647] urlparse - relative url parsing and joins to be RFC3986 compliance

2010-07-10 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Several changes were already made to urlparse to make it more rfc3986 
compliant. Let me recollect what else these patches offer.

--
assignee: gregory.p.smith -> orsenthil

___
Python tracker 

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



[issue3665] Support \u and \U escapes in regexes

2010-07-10 Thread Atsuo Ishimoto

Atsuo Ishimoto  added the comment:

Here's an updated patch for py3k branch. 
As per Georg's comment, I added to check codepoint in the character 
ranges, conversion to the surrogate pairs. I also added check to raise 
exception if codepoint > 0x10.
I with to English speakers to fix error messages in the patch.

--
nosy: +ishimoto
Added file: http://bugs.python.org/file17939/3665.patch

___
Python tracker 

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



[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)

2010-07-10 Thread Senthil Kumaran

Changes by Senthil Kumaran :


--
assignee: georg.brandl -> orsenthil
resolution:  -> accepted

___
Python tracker 

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



[issue2007] cookielib lacks FileCookieJar class for Internet Explorer

2010-07-10 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

I removed the documentation comment in r82785. But the report still holds till 
we have a class for handling MSIE Cookies.

--
nosy: +orsenthil
stage:  -> needs patch

___
Python tracker 

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



[issue9213] range purports to implement the Sequence ABC, but is missing index and count methods

2010-07-10 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
priority: normal -> high

___
Python tracker 

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



[issue9212] dict_keys purports to implement the Set ABC, but is missing the isdisjoint method

2010-07-10 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
priority: normal -> high

___
Python tracker 

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



[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2010-07-10 Thread Sridhar Ratnakumar

Changes by Sridhar Ratnakumar :


Added file: http://bugs.python.org/file17938/idle-use-curr-py.patch

___
Python tracker 

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



[issue808129] Change --changelog to accept files

2010-07-10 Thread Éric Araujo

Éric Araujo  added the comment:

Thanks for the report Tony. Sorry for the late reply, I tried to review a lot 
of distutils bugs some months ago but didn’t manage to read all of them. I’m 
assigning this to the distutils maintainer. Distutils is mainly frozen now, 
since we’ve seen that even changing undocumented internals may break 
third-party tools replying on them. New work happens in distutils2, where 
rpm-related code has been removed, because platform-specific tools are in a 
better position to comply with platform-specific oddities and policies.

Tarek, can this feature make it into distutils or does the freeze apply?

--
assignee:  -> tarek
nosy: +tarek

___
Python tracker 

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



[issue2190] MozillaCookieJar ignore HttpOnly cookies

2010-07-10 Thread Dou Yuan

Dou Yuan  added the comment:

Firefox no longer use cookies.txt. I think this patch is useless.

--
status: open -> closed

___
Python tracker 

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



[issue8801] Inconsistency in behaviour of urllib and urllib2 with file:// URLs

2010-07-10 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

There were differing behaviors in the way urllib and urllib2 was handling 
certain kind of file:// urls which led to this error. I just made them 
consistent with the fix in r82780 and merged into branches.  Now, this 
Exception won't be thrown at the file-open state, but a addinfo url object will 
be returned. The opening of an Invalid path will be left to the way OS will 
handle it, either allow it or reject.

--
resolution: accepted -> fixed
stage:  -> 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



[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2010-07-10 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I will try to test this sometime, though I always start IDLE through the start 
menu.

--
nosy: +tjreedy
versions: +Python 3.2 -Python 2.6, Python 2.7, Python 3.1

___
Python tracker 

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



[issue8841] GetoptError strings should be localized

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +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



[issue3143] Make the left sidebar in the doc collapsible

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
components:  -Documentation tools (Sphinx)

___
Python tracker 

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



[issue4888] misplaced (or misleading) assert in ceval.c

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.2 -Python 2.6, Python 2.7, Python 3.0, Python 3.1

___
Python tracker 

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



[issue1675455] Use getaddrinfo() in urllib2.py for IPv6 support

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.2 -Python 2.6, Python 3.0

___
Python tracker 

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



[issue808129] Change --changelog to accept files

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.2 -Python 2.6, Python 2.7, Python 3.0, Python 3.1

___
Python tracker 

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



[issue8722] Documentation for __getattr__

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

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



[issue1777134] minidom pretty xml output improvement

2010-07-10 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Removed junk copy of message

--
nosy: +tjreedy
versions: +Python 3.2 -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



[issue1777134] minidom pretty xml output improvement

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


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

___
Python tracker 

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



[issue724459] Add documentation about line endings in email messages.

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

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



[issue6588] insert cookies into cookie jar - cookielib.py

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
stage:  -> unit test needed
versions: +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



[issue8465] re: Backreferences vs. escapes: a silent failure solved

2010-07-10 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

If you are suggesting that code like
>>> '\2'
'\x02'
should routinely product a warning, and later an exception, this issue should 
be rejected. Normal code does not produce warnings. Rarity in the stdlib is 
irrelevant. Backslash processing of string literals is part of core syntax. 
Breaking existing code would not be acceptable.

--
nosy: +tjreedy
versions: +Python 3.2 -Python 2.6, Python 3.1

___
Python tracker 

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



[issue8387] use universal newline mode in csv module examples

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.1, Python 3.2

___
Python tracker 

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



[issue8289] multiprocessing.Process.__init__ pickles all arguments

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.6, Python 2.7, Python 3.1, Python 3.3

___
Python tracker 

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



[issue8269] Missing return values for PyUnicode C/API functions

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


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



[issue6749] Support for encrypted zipfiles when interpreting zipfile as script

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.6, Python 2.7, Python 3.0, Python 3.1

___
Python tracker 

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



[issue9220] Modules no longer usable as context managers

2010-07-10 Thread Jim Fulton

Jim Fulton  added the comment:

On Sat, Jul 10, 2010 at 4:08 PM, Éric Araujo  wrote:
>
> Éric Araujo  added the comment:
>
> Confirmed: http://docs.python.org/reference/datamodel#specialnames
> Closing. Sorry! (BTW, using import hackery and a custom module type, you 
> could achieve your goal.)

Yes, I'll have to use a custom module type and import hackery to get
code that worked before working again in Python 2.7.

Jim

--

___
Python tracker 

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



[issue2980] Pickle stream for unicode object may contain non-ASCII characters.

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


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



[issue9212] dict_keys purports to implement the Set ABC, but is missing the isdisjoint method

2010-07-10 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

I had misread you original post.  Thought you we saying that the Set ABC was 
missing disjoint.   Disregard my last post.

--

___
Python tracker 

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



[issue9222] IDLE: Fix open/saveas 'Files of type' choices

2010-07-10 Thread Terry J. Reedy

New submission from Terry J. Reedy :

In the open and save-as dialog boxes, the choices for the 'Files of type' field 
are governed by the filetypes list in Lib\idlelib\IOBinding.py, about line 225 
(found by a friend).

filetypes = [
("Python and text files", "*.py *.pyw *.txt", "TEXT"),
("All text files", "*", "TEXT"),
("All files", "*"),
]

I see multiple problems with this:

1. The first line, which for me is the default, mixes Python and text files, 
while one nearly only wants to only search through Python files. I propose to 
remove 'and text' and '*.txt'.

2. The second line, which would currently be redundant with the first if it did 
what it said (but would not be with the first fix), has a bug in the file spec, 
'*' instead of '*.txt', that makes it redundant with the third line. I propose 
to fix that bug.

The following is copied from my patched and tested version of the file:

filetypes = [
("Python files", "*.py *.pyw", "TEXT"),
("Text files", "*.txt", "TEXT"),
("All files", "*"),
]

So this is a trivial 2 line patch.

--
components: IDLE
keywords: easy
messages: 109951
nosy: tjreedy
priority: normal
severity: normal
status: open
title: IDLE: Fix open/saveas 'Files of type' choices
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

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



[issue9220] Modules no longer usable as context managers

2010-07-10 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Yes, definitely.

--

___
Python tracker 

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



[issue6639] turtle: _tkinter.TclError: invalid command name ".10170160"

2010-07-10 Thread Mark Lawrence

Mark Lawrence  added the comment:

Anyone with turtle/Tkinter knowledge who can shed some light on this?

--
nosy: +BreamoreBoy
stage:  -> needs patch
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



[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.2 -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



[issue8145] Documentation about sqlite3 isolation_level

2010-07-10 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

If the content of the patch is correct, it looks ready to apply, with only a 
touch of editing. Do we have a resident expert of sqlite3? Or Laszlo, do you 
have a reference for the statements made?

--
assignee: georg.brandl -> d...@python
nosy: +d...@python, tjreedy
versions: +Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

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



[issue6529] get{pw,gr}{nam,[ug]id}() calls are not re-entrant

2010-07-10 Thread Mark Lawrence

Mark Lawrence  added the comment:

Is this an issue that should be addressed?

--
nosy: +BreamoreBoy
stage:  -> unit test needed
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



[issue6478] time.tzset does not reset _strptime's locale time cache

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy: +belopolsky
stage:  -> needs patch
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.4, Python 2.6

___
Python tracker 

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



[issue3077] h2py char literal doesn't work

2010-07-10 Thread Mark Lawrence

Mark Lawrence  added the comment:

Both patch files are two liners, could someone please take a look and decide if 
one of them can be accepted?

--
nosy: +BreamoreBoy
stage:  -> patch review
title: h2py char literal doesn work -> h2py char literal doesn't work
versions: +Python 3.1, Python 3.2

___
Python tracker 

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



[issue1657] epoll and kqueue wrappers for the select module

2010-07-10 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

"Is the problem that the kqueue section says things like 'filter-specific data' 
with no explanation?"

The phase is not in the (newer) 3.1.2 docs. Given the absence of a specific doc 
issue, closing.

--
keywords:  -patch
nosy: +tjreedy
resolution: accepted -> fixed
stage:  -> committed/rejected
status: open -> closed
title: [patch] epoll and kqueue wrappers for the select module -> epoll and 
kqueue wrappers for the select module
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0

___
Python tracker 

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



[issue9212] dict_keys purports to implement the Set ABC, but is missing the isdisjoint method

2010-07-10 Thread Daniel Stutzbach

Daniel Stutzbach  added the comment:

In this case, the concrete class is the one missing a method.  

Concrete classes are allowed to provide more features than the corresponding 
ABC, but the converse is not true to the best of my knowledge.

dict_keys .register()s as supporting the Set ABC, so it does not automatically 
pick up the method through inheritance.  Put another way:

>>> # dict_keys provides the Set ABC API
>>> isinstance({}.keys(), collections.Set)
True

>>> # The Set ABC provides isdisjoint
>>> hasattr(collections.Set, 'isdisjoint') 
True

>>> # Ergo, dict_keys should provide isdisjoint ... but it doesn't
>>> hasattr({}.keys(), 'isdisjoint')   
False

See also Issue9213 for another case where a concrete class is missing a method 
provided by an ABC it claims to support.

I sort of wonder if .register() should verify that the concrete class provides 
all of the methods of the ABC.

--

___
Python tracker 

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



[issue6386] importing yields unexpected results when initial script is a symbolic link

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


--
stage:  -> unit test needed
versions: +Python 3.2 -Python 2.4, Python 2.5, Python 2.6, Python 3.0

___
Python tracker 

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



[issue6359] pyexpat.c calls trace function incorrectly for exceptions

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy: +loewis
stage:  -> unit test needed
versions: +Python 2.7, Python 3.1, Python 3.2 -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



[issue902061] pydoc insists upon producing file: URLs

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +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



[issue6325] robotparser doesn't handle URL's with query strings

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


--
assignee:  -> orsenthil
nosy: +orsenthil
versions: +Python 3.1, Python 3.2 -Python 2.4, 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



[issue7918] distutils always ignores compile errors

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +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



[issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee: georg.brandl -> d...@python
nosy: +d...@python

___
Python tracker 

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



[issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python

2010-07-10 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I and others completely disagree with "Technically the correct answer is 'pass 
by value',". This confuses the C implementation with the abstract semantics of 
Python. The correct answer is neither. Nothing is 'passed'.

A better form of the question would be "Does Python use call-by-value or 
call-by-reference?" The answer would still be 'neither'. Python is different 
from Fortran, C, and the other languages to which those terms apply. And 
because both are wrong, both lead to wrong expectations.

Python binds argument objects to parameter names in the function's local 
namespace. This is 'call by object', the term used by Barbara Liskov, chief 
developer of the object-based CLU language that did the same long before 
Python. I would call *that* the 'technically correct answer.

Yes, this has been very controversial on python-list.

--
nosy: +tjreedy

___
Python tracker 

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



[issue2053] IDLE - standardize dialogs

2010-07-10 Thread Tal Einat

Tal Einat  added the comment:

At this point I would prefer that this patch just be rejected rather than 
continue discussing it.

I can understand IDLE being a low priority, but someone could have just stated 
that to begin with and I wouldn't have bothered working for hours to work up a 
patch and discuss its merits.

Guilherme, I appreciate your taking an interest in this and obviously you have 
only helped move this forward. My frustration is with the devs allowing me to 
waste hours of my time, while requesting that I spend even more time testing 
and consolidating patches before submission, and then proceeding to ignore my 
work completely.

--

___
Python tracker 

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



[issue5116] expose _CrtSetReportMode via the msvcrt module

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue4965] Can doc index of html version be separately scrollable?

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.2 -Python 3.0

___
Python tracker 

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



[issue4711] Wide literals in the table of contents overflow in documentation

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 3.0

___
Python tracker 

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



[issue1326113] Letting "build_ext --libraries" take more than one lib

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.2 -Python 2.6, Python 2.7, Python 3.0, Python 3.1

___
Python tracker 

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



[issue9212] dict_keys purports to implement the Set ABC, but is missing the isdisjoint method

2010-07-10 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Concrete classes are allowed to have more features than the corresponding ABC.  
The ABCs are not intended to be full-featured; instead, they specify the part 
of the API that will be guaranteed.  For example, the union() method for 
built-in sets allows two or more set arguments, but the corresponding method 
for the ABC is limited to two arguments.  This was an intentional difference, 
designed to make it easier for people to implement a Set class.

That being said, the omission of isdisjoint() was an oversight and I see no 
reason that this shouldn't be fixed.

--
nosy: +rhettinger

___
Python tracker 

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



[issue3214] Suggest change to glossary explanation: "Duck Typing"

2010-07-10 Thread Éric Araujo

Éric Araujo  added the comment:

To make one useful comment today: I noticed one missing :term: construct to 
link ABCs from duck typing. Attaching patch.

--
keywords: +patch
Added file: http://bugs.python.org/file17937/add-ref.diff

___
Python tracker 

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



[issue3071] The ValueError raised by failing to unpack sequence should have more information.

2010-07-10 Thread Éric Araujo

Changes by Éric Araujo :


--
resolution: accepted -> fixed
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



[issue8564] Update documentation on doctest/unittest2 integration

2010-07-10 Thread Éric Araujo

Changes by Éric Araujo :


--
stage:  -> committed/rejected

___
Python tracker 

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



[issue5094] datetime lacks concrete tzinfo implementation for UTC

2010-07-10 Thread Éric Araujo

Changes by Éric Araujo :


--
resolution: accepted -> fixed

___
Python tracker 

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



[issue9000] Provide parseable repr to datetime.timezone

2010-07-10 Thread Éric Araujo

Changes by Éric Araujo :


--
resolution: accepted -> fixed

___
Python tracker 

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



[issue3214] Suggest change to glossary explanation: "Duck Typing"

2010-07-10 Thread Éric Araujo

Éric Araujo  added the comment:

Re-reading the glossary for both entries, they already link to each other, and 
the subtleties of ABCs can be learned later in their documentation. The 
glossary is good, sorry for the noise.

--

___
Python tracker 

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



[issue3214] Suggest change to glossary explanation: "Duck Typing"

2010-07-10 Thread Éric Araujo

Éric Araujo  added the comment:

Benjamin: Georg, you may also want to amend this entry for ABCs.

Georg: ABCs are not duck-typing since they involve isinstance() anyway.

Since ABCs provide virtual subclassing, using hasattr without requiring 
subclassing or registering, isn’t Benjamin right after all?

--

___
Python tracker 

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



[issue3214] Suggest change to glossary explanation: "Duck Typing"

2010-07-10 Thread Éric Araujo

Changes by Éric Araujo :


--
stage:  -> committed/rejected

___
Python tracker 

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



[issue9212] dict_keys purports to implement the Set ABC, but is missing the isdisjoint method

2010-07-10 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +merwok

___
Python tracker 

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



[issue9213] range purports to implement the Sequence ABC, but is missing index and count methods

2010-07-10 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +merwok

___
Python tracker 

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



[issue9214] Most Set methods of KeysView and ItemsView do not work right

2010-07-10 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +merwok

___
Python tracker 

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



[issue9214] Most Set methods of KeysView and ItemsView do not work right

2010-07-10 Thread Éric Araujo

Changes by Éric Araujo :


--
resolution:  -> accepted

___
Python tracker 

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



[issue9193] Versioned .so files

2010-07-10 Thread Éric Araujo

Éric Araujo  added the comment:

In build_ext, your modifications to get_ext_filename do not update the 
docstring, although it contains a comment documenting the handling of 
ext.so_abi_tag. They also use str.rpartition, not available in 2.3, with which 
distutils has to remain compatible as per PEP 291.

--
nosy: +merwok

___
Python tracker 

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



[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-10 Thread Jesse Noller

Jesse Noller  added the comment:

A+ for creativity; I wouldn't have thought of that ;)

--

___
Python tracker 

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



[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2010-07-10 Thread Reid Kleckner

Reid Kleckner  added the comment:

Also, thanks for the quick reviews!

--

___
Python tracker 

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



[issue9220] Modules no longer usable as context managers

2010-07-10 Thread Mark Dickinson

Mark Dickinson  added the comment:

Just for the record, this changed with the introduction of the SETUP_WITH 
opcode in r72912.  Perhaps Benjamin can confirm that the behaviour change was 
deliberate?

--
nosy: +benjamin.peterson, mark.dickinson

___
Python tracker 

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



[issue6643] joining a child that forks can deadlock in the forked child process

2010-07-10 Thread Reid Kleckner

Reid Kleckner  added the comment:

I realized that in a later fix for unladen-swallow, we also cleared the 
condition variable waiters list, since it has radioactive synchronization 
primitives in it as well.

Here's an updated patch that simplifies the fix by just using __init__() to 
completely reinitialize the condition variables and adds a test.

This corresponds to unladen-swallow revisions r799 and r834.

--
Added file: http://bugs.python.org/file17936/thread-fork-join.diff

___
Python tracker 

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



[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2010-07-10 Thread Reid Kleckner

Reid Kleckner  added the comment:

Oops, copy/paste oversight.  =/  I wrote a test to verify that it handles 
signals, and then retries the lock acquire.

--
Added file: http://bugs.python.org/file17935/lock-interrupt.diff

___
Python tracker 

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



[issue9221] 2to3 fails to parse a for construct

2010-07-10 Thread Éric Araujo

Éric Araujo  added the comment:

You are supposed to use “...” on continuation lines, not “>>>”:
http://docs.python.org/glossary#term-1
http://docs.python.org/dev/library/doctest#how-are-docstring-examples-recognized

Please reopen it the problem persists after this change. Thank you!

--
nosy: +merwok
resolution:  -> invalid
stage:  -> 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



[issue9219] Make reindent-rst.py preserve ^L

2010-07-10 Thread Éric Araujo

Éric Araujo  added the comment:

> [...] so I don't see a reason.
Thanks for the additional info, agreed then.

> [PEPs are] not covered by the commit hook anyway...
Probably because it’s not as useful to enforce standards on them, since less 
people read and edit their source, so no problem.

Thank you for your time.

--

___
Python tracker 

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



[issue9221] 2to3 fails to parse a for construct

2010-07-10 Thread Tiago Antao

New submission from Tiago Antao :

2to3 crashes with a apparently simple for.
An example is presented (the first line is actually enough)

>>> for clade in tree.find_clades(branch_length=True, order='level'):
>>> if (clade.branch_length < .5 and
>>> not clade.is_terminal() and
>>> clade is not self.root):
>>> tree.collapse(clade)

The stack is shown below. It almost seems a problem with newline conversion at 
the end?

RefactoringTool: Can't parse docstring in xx2 line 1: ParseError: bad input: 
type=0, value='', context=('', (2, 0))
RefactoringTool: Can't parse docstring in xx2 line 2: ParseError: bad input: 
type=5, value='', context=('\n', (2, 0))
RefactoringTool: Can't parse docstring in xx2 line 3: ParseError: bad input: 
type=5, value='', context=('\n\n', (3, 0))
RefactoringTool: Can't parse docstring in xx2 line 4: ParseError: bad input: 
type=5, value='', context=('\n\n\n', (4, 0))
RefactoringTool: Can't parse docstring in xx2 line 5: ParseError: bad input: 
type=5, value='', context=('\n\n\n\n', (5, 0))
RefactoringTool: No files need to be modified.

--
components: 2to3 (2.x to 3.0 conversion tool)
messages: 109929
nosy: tiagoantao
priority: normal
severity: normal
status: open
title: 2to3 fails to parse a for construct
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



[issue9220] Modules no longer usable as context managers

2010-07-10 Thread Éric Araujo

Éric Araujo  added the comment:

Confirmed: http://docs.python.org/reference/datamodel#specialnames
Closing. Sorry! (BTW, using import hackery and a custom module type, you could 
achieve your goal.)

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



[issue9219] Make reindent-rst.py preserve ^L

2010-07-10 Thread Georg Brandl

Georg Brandl  added the comment:

> Thanks for the answer. Perhaps it would be useful to mention trailing
> whitespace and ^L in http://docs.python.org/documenting/style.html?

So far, I guess nobody has tried to check in a ^L, and nobody has complained 
about the commit hook that rejects trailing whitespace, so I don't see a reason.

> As for PEPs, I guess it’s less important that they conform to these
> standards, since they’re more an internal documentation.

I don't set the standards for PEPs, and they're not covered by the commit hook 
anyway...

--

___
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-07-10 Thread R. David Murray

R. David Murray  added the comment:

No, this is a 3.x only problem.  And my main comment is that decode_headers 
ought to go away as an API :)

But I'll try to fix the inconsistent data types problem before 3.2.

--
assignee:  -> r.david.murray

___
Python tracker 

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



[issue9217] 2to3 crashes with some doctests

2010-07-10 Thread Tiago Antao

Tiago Antao  added the comment:

BTW, this happens in 2.6 also

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



[issue9220] Modules no longer usable as context managers

2010-07-10 Thread Éric Araujo

Éric Araujo  added the comment:

IIUC, magic methods are looked up on the object’s class, not in the object’s 
__dict__. This behavior in 2.6 seems like a bug to me.

I-tried-to-add-__call__-to-a-module-once-ly yours

--
nosy: +merwok

___
Python tracker 

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



[issue9219] Make reindent-rst.py preserve ^L

2010-07-10 Thread Éric Araujo

Éric Araujo  added the comment:

Thanks for the answer. Perhaps it would be useful to mention trailing 
whitespace and ^L in http://docs.python.org/documenting/style.html?

As for PEPs, I guess it’s less important that they conform to these standards, 
since they’re more an internal documentation.

--
stage:  -> committed/rejected

___
Python tracker 

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



[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-10 Thread Greg Brockman

Greg Brockman  added the comment:

What about just catching the exception?  See e.g. the attached patch.  
(Disclaimer: not heavily tested).

--
Added file: http://bugs.python.org/file17934/shutdown.patch

___
Python tracker 

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



[issue9219] Make reindent-rst.py preserve ^L

2010-07-10 Thread Georg Brandl

Georg Brandl  added the comment:

This script is mainly meant to fix files according to our standards, and I 
don't want ^L in them.  Thus, I'm rejecting this.

--
nosy: +georg.brandl
resolution:  -> 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



[issue9220] Modules no longer usable as context managers

2010-07-10 Thread Jim Fulton

New submission from Jim Fulton :

In python 2.7 a module can't be used as a context manager.

For example, given the module, t.py:

def __enter__(*args):
print 'enter', args

def __exit__(*args):
print 'exit', args

In Python 2.6:

>>> import t
>>> with t: pass
... 
enter ()
exit (None, None, None)

In Python 2.7:

>>> import t
>>> with t: pass
... 
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: __exit__

--
components: Interpreter Core
messages: 109920
nosy: j1m
priority: normal
severity: normal
status: open
title: Modules no longer usable as context managers
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



[issue9218] pop multiple elements of a list at once

2010-07-10 Thread Mark Dickinson

Mark Dickinson  added the comment:

The python-ideas mailing list might be a better place to discuss this.  Note 
that it's too late for new features in the 2.x series, so I'm changing the 
version to 3.2

> pop self.recv_buffer[:size]

I don't think this'll fly, even if you spell it pop(self.recv_buffer[:size]).  
It's not worth a new built-in function, let alone a grammar change.

> self.recv_buffer.pop(,-size)

Something like this seems more reasonable, especially if it can be done without 
introducing new syntax and in a fully backwards-compatible way.

One idea that seems fairly natural to me would be to allow list.pop and friends 
to support slices, so you could do:

  last2 = slice(None, -2)
  self.recv_buffer.pop(last2)

or even

  penultimate, ultimate = self.recv_buffer.pop(last2)

It would require some work to implement and debug this, though.

--
components: +Interpreter Core
nosy: +mark.dickinson
type: performance -> feature request
versions: +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



[issue9219] Make reindent-rst.py preserve ^L

2010-07-10 Thread Éric Araujo

New submission from Éric Araujo :

Tools/scripts/reindent-rst.py strips trailing whitespace from reST files, 
including ^L. ISTM that this character is always used explicitly, not by 
oversight, e.g. by people wanting their editor to paginate files like plain 
text PEPs. I suggest that the regex at the core of the script be changed to let 
^L alone.

This is arguably a bug fix, depending on your definition of “trailing 
whitespace”, but I’m not sure at all whether it should be in 2.7.1.

--
keywords: easy
messages: 109918
nosy: merwok
priority: low
severity: normal
status: open
title: Make reindent-rst.py preserve ^L
type: feature request
versions: 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



[issue9217] 2to3 crashes with some doctests

2010-07-10 Thread Tiago Antao

Tiago Antao  added the comment:

Benjamin,

Thanks for the fast answer.
I attach the problematic file.
This file is from Biopython. We are trying to have a Python 3 version of it.

We applied 2to3 (no -d) first (via distutils on setup.py build) and I was 
applying 2to3 -d manually after it.

--
Added file: http://bugs.python.org/file17933/DocSQL.py

___
Python tracker 

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



[issue9217] 2to3 crashes with some doctests

2010-07-10 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Fixed in r82779. I'm curious as to what it's failing on.

--
nosy: +benjamin.peterson
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



[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2010-07-10 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

The RLock version gets different semantics in your patch: it doesn't retry 
acquiring when a signal is caught. Is there a reason for that?

By the way, your patch works fine under Windows.

--

___
Python tracker 

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



[issue1447633] "reindent.py" exposes bug in tokenize

2010-07-10 Thread Éric Araujo

Changes by Éric Araujo :


--
stage:  -> committed/rejected

___
Python tracker 

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



[issue5150] IDLE to support reindent.py

2010-07-10 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +merwok
resolution: accepted -> fixed
stage: needs patch -> committed/rejected

___
Python tracker 

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



[issue6643] joining a child that forks can deadlock in the forked child process

2010-07-10 Thread Reid Kleckner

Reid Kleckner  added the comment:

Here's an updated patch for py3k (3.2).  The test still fails without the fix, 
and passes with the fix.

Thinking more about this, I'll try summarizing the bug more coherently:

When the main thread joins the child threads, it acquires some locks.  If a 
fork in a child thread occurs while those locks are held, they remain locked in 
the child process.  My solution is to do here what we do elsewhere in CPython: 
abandon radioactive locks and allocate fresh ones.

--
Added file: http://bugs.python.org/file17932/thread-fork-join.diff

___
Python tracker 

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



[issue2053] IDLE - standardize dialogs

2010-07-10 Thread Guilherme Polo

Guilherme Polo  added the comment:

> Tal Einat added the comment:
>
> ...
>
> The process of discussing this patch has taken far, far too long. I can't 
> stand such discussions spanning months (and years!). Please just accept this 
> patch or close it. I'm fed up with this.
>

If the patch were good enough for everyone then it could have been
committed about 2 years ago, but it is not the case apparently (kbk
also raised some points earlier). Also, the effective discussion has
taken maybe some hours and this large extra time shows this issue is
not important enough to be noticed and taken proper care (and I'm
mostly sure you know this situation isn't exclusive to this
issue/Python/other (closed or open) projects). Said that, I don't see
the reason to just accept the patch and close the issue if no one else
fully backs up your patch.

I understand you may want to no longer follow the issue, and I can't
blame you because I've been mostly away from Python development these
months.

--

___
Python tracker 

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



[issue9218] pop multiple elements of a list at once

2010-07-10 Thread Diego Jacobi

New submission from Diego Jacobi :

I am currently working with buffer in an USB device and pyusb.
So when i read from a buffer endpoint i get an array.Array() list.
I handle this chunk of data with a thread to send a receive the information 
that i need. In this thread i load a list with all the information that is read 
from the USB device, and another layer with pop this information from the 
threads buffer.

The thing i found is that, to pop a variable chunk of data from this buffer 
without copying it and deleting the elements, i have to pop one element at the 
time.

def get_chunk(self, size):
for x in range(size):
yield self.recv_buffer.pop()

I guess that it would be improved if i can just pop a defined number of 
elements, like this:

pop self.recv_buffer[:size]
or
self.recv_buffer.pop(,-size)

That would be... "pop from the last element minus size to the last element"
in that way there is only one memory transaction.
The new list points to the old memory address and the recv_buffer is advanced 
to a new address. Data is not moved.

note that i like the idea of using "pop" as the "del" operator for lists

thanks.
Diego

--
messages: 109912
nosy: jacobidiego
priority: normal
severity: normal
status: open
title: pop multiple elements of a list at once
type: performance
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



[issue9217] 2to3 crashes with some doctests

2010-07-10 Thread Tiago Antao

Changes by Tiago Antao :


--
type:  -> crash

___
Python tracker 

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



  1   2   3   >