[issue8040] It would be nice if documentation pages linked to other versions of the same document

2010-07-10 Thread Ezio Melotti

Ezio Melotti  added the comment:

I think I've already discussed this with Georg a while ago and we ended up 
adding the links on the left sidebar in http://docs.python.org/.
IIRC there's no easy way to find the same document in another version of the 
doc, not even now with Sphinx.
I think this can be closed, unless Georg disagrees.

--
status: open -> pending

___
Python tracker 

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



[issue9110] contextlib.ContextDecorator

2010-07-10 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Jack, thanks for the explanation.  Glad it seems sensible to more than just one 
person.  To my eyes, it looks like a little too much magic and I would be more 
comfortable if this idea and its variants had been explored more thoroughly by 
the community before it got injected into the standard library.

--

___
Python tracker 

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



[issue9215] test_float crashes with assertion failure on Ubuntu buildbot.

2010-07-10 Thread Matthias Klose

Matthias Klose  added the comment:

> what version of gcc is being used by this buildslave

you already found out, but it's mentioned at the top of the test stdio. I'll 
update the compiler and recheck.

--

___
Python tracker 

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



[issue1147646] Windows deadlock with PyEval_ReleaseLock

2010-07-10 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

This is actually the same issue as issue1720250

--
resolution:  -> duplicate
status: open -> closed
superseder:  -> PyGILState_Ensure does not acquires GIL

___
Python tracker 

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



[issue9215] test_float crashes with assertion failure on Ubuntu buildbot.

2010-07-10 Thread Mark Dickinson

Mark Dickinson  added the comment:

On Sat, Jul 10, 2010 at 8:26 AM, Matthias Klose  wrote:
> you already found out, but it's mentioned at the top of the test stdio.

Ah yes, so it is.  Thank you.  I thought I remembered seeing it
somewhere in the buildbot output in the past;  I obviously didn't look
hard enough.

> I'll update the compiler and recheck.

Thank you again!

--

___
Python tracker 

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



[issue1720250] PyGILState_Ensure does not acquires GIL

2010-07-10 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

This is still the case: the documentation should mention that 
PyEval_ReleaseLock() is not the correct function to release "the GIL", both the 
interpreter lock *and* the current thread state have to be released.

--
assignee:  -> d...@python
components:  -Interpreter Core
nosy: +amaury.forgeotdarc, d...@python

___
Python tracker 

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



[issue9110] contextlib.ContextDecorator

2010-07-10 Thread Nick Coghlan

Nick Coghlan  added the comment:

The idea of building this into contextlib actually came out on off-list 
discussion between Michael and I. To quote the original suggestion he sent to 
me:

"""What do you think about adding ContextDecorator to contextlib for Python 3.2?

http://pypi.python.org/pypi/contextdecorator

It's a simple recipe but useful nonetheless (and Barry Warsaw at least is very 
enthusiastic about it ;-).

ContextDecorator allows you to create APIs that behave as both context managers 
and as decorators. It also provides the optional exception handling capability 
of __exit__ for decorators. This isn't an uncommon pattern, used in libraries 
like mock, py.test and django, and it is at least slightly fiddly to get 
right."""

I agree it is good to have that additional motivation (and the reference to 
previous work) here in the tracker issue rather than squirreled away in a 
couple of private email archives.

--

___
Python tracker 

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



[issue9110] contextlib.ContextDecorator

2010-07-10 Thread Nick Coghlan

Nick Coghlan  added the comment:

One thing that Jack's confusion above does suggest to me is that we should 
mention in the *ContextDecorator* documentation that it is automatically 
applied to the context managers created when you use @contextmanager. A lot of 
people familiar with contextmanager are just going to read the docs for the new 
toy, so may miss the fact that we have added __call__ support to 
GeneratorContextManager.

As far as use cases go, this change is just syntactic sugar for any construct 
of the following form:

  def f():
with cm():
  # Do stuff

ContextDecorator lets you instead write:

  @cm
  def f():
# Do stuff

It makes it clear that the CM applies to the whole function, rather than just a 
piece of it (and saving an indentation level is nice, too).

--

___
Python tracker 

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



[issue9110] contextlib.ContextDecorator

2010-07-10 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

> this change is just syntactic sugar for
> any construct of the following form:
>
>  def f():
>with cm():
>  # Do stuff
>
> ContextDecorator lets you instead write:
>
>  @cm
>  def f():
># Do stuff

Nicely expressed.  This ought to go directly into the documentation.

--

___
Python tracker 

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



[issue876421] logging handlers raise exception on level

2010-07-10 Thread Vinay Sajip

Vinay Sajip  added the comment:

If I did this for some but not handler classes, then people would probably log 
issues saying e.g. "Why doesn't NTEventLogHandler" support a level argument? 
Other handlers do." etc.

What's the big problem with using setLevel() to set the level? If you're after 
convenience, you could use the dictionary configuration API which allows you to 
set the levels declaratively.

--

___
Python tracker 

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



[issue4277] asynchat's handle_error inconsistency

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


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



[issue5162] multiprocessing cannot spawn child from a Windows service

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


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



[issue1521950] shlex.split() does not tokenize like the shell

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 3.2 -Python 2.7

___
Python tracker 

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



[issue1522400] irda socket support

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


--
components: +Library (Lib) -Extension Modules
stage: unit test needed -> patch review
versions: +Python 3.2 -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



[issue1576120] Support spawnvp[e] + use native execvp[e] on win32

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 3.2 -Python 2.7

___
Python tracker 

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



[issue1051216] make distutils.core.run_setup re-entrant

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


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



[issue1571878] Improvements to socket module exceptions

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


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



[issue1728741] move intern to sys, make intern() optionally warn

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 3.2 -Python 2.7

___
Python tracker 

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



[issue1691387] Call sys.except_hook if exception occurs in __del__

2010-07-10 Thread Mark Lawrence

Mark Lawrence  added the comment:

Please provide a patch.

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



[issue1613479] pydoc info for a package doesn't list all package contents

2010-07-10 Thread Mark Lawrence

Mark Lawrence  added the comment:

Surely this is a bug?

--
nosy: +BreamoreBoy
type: feature request -> behavior
versions: +Python 3.2

___
Python tracker 

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



[issue1685962] socket.getaddrinfo() should take an address tuple.

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


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



[issue1744456] Patch for feat. 1713877 Expose callbackAPI in readline module

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy: +christian.heimes
versions: +Python 3.2 -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



[issue1713877] Expose callback API in readline module

2010-07-10 Thread Mark Lawrence

Mark Lawrence  added the comment:

Can this be closed as a duplicate as Issue1744456 has a patch?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue1748064] inspect.getargspec fails on built-in or slot wrapper methods

2010-07-10 Thread Mark Lawrence

Mark Lawrence  added the comment:

I think this should be treated as a bug.

--
nosy: +BreamoreBoy
type: feature request -> behavior
versions: +Python 3.2

___
Python tracker 

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



[issue5729] Allows tabs for indenting JSON output

2010-07-10 Thread Mark Lawrence

Mark Lawrence  added the comment:

Patch is small and simple, can we move this forward?

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



[issue1713877] Expose callback API in readline module

2010-07-10 Thread Georg Brandl

Georg Brandl  added the comment:

Yes, that makes sense (the two issues come from the SourceForge era, where bugs 
and patches had different trackers).

--
dependencies:  -Patch for feat. 1713877 Expose callbackAPI in readline module
nosy: +georg.brandl
resolution:  -> duplicate
status: open -> closed
superseder:  -> Patch for feat. 1713877 Expose callbackAPI in readline module

___
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 Georg Brandl

Georg Brandl  added the comment:

Applied patch in r82759.

--
nosy: +georg.brandl

___
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 Georg Brandl

Changes by Georg Brandl :


--
resolution: wont fix -> accepted

___
Python tracker 

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



[issue3080] Full unicode import system

2010-07-10 Thread Georg Brandl

Georg Brandl  added the comment:

Victor is working on this.

--
assignee:  -> haypo
nosy: +georg.brandl, haypo
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



[issue5060] gcc profile guided optimization

2010-07-10 Thread Roumen Petrov

Roumen Petrov  added the comment:

a) search for fficonfig.h is fixed long time ago (i could not remember issue)
b) build python executable cannot run without to setup some environment 
variables  - $(RUNSHARED).

--

___
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 Georg Brandl

Georg Brandl  added the comment:

Thanks, fixed the first sentence in r82760.

--
resolution: works for me -> 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



[issue1726208] SimpleHTTPServer extensions_map

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


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



[issue902065] fails building C++ extensions when configured --without-cxx

2010-07-10 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, closing.

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



[issue1685962] socket.getaddrinfo() should take an address tuple.

2010-07-10 Thread Giampaolo Rodola'

Giampaolo Rodola'  added the comment:

I think the original reason why getaddrinfo() has been designed to accept 
separate host and port args instead of a tuple is because the original C call 
does the same:
http://www2.research.att.com/~gsf/man/man3/getaddrinfo.html

Despite this apparently looks somewhat inconsistent with other calls like 
bind(), connect() and connect_ex() which take an address tuple, they reflect 
the original C behavior in the same manner, also because they're fundamentally 
different than getaddrinfo(), so I see no valid reason to change this situation.

--
nosy: +giampaolo.rodola

___
Python tracker 

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



[issue1471985] mimetools module getencoding error

2010-07-10 Thread Georg Brandl

Georg Brandl  added the comment:

Agreed.

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



[issue2007] cookielib lacks FileCookieJar class for Internet Explorer

2010-07-10 Thread John J Lee

John J Lee  added the comment:

Suggest removing the comment that Terry refers to.  That referenced MSIE code 
doesn't have an automated test, I've no idea whether it still works on modern 
Windows OSes, mechanize no longer supports use with urllib2, and I don't think 
that link is really appropriate in the docs anyway -- Google will likely give 
people more accurate information.

--

___
Python tracker 

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



[issue1522400] irda socket support

2010-07-10 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
nosy: +giampaolo.rodola

___
Python tracker 

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



[issue1685962] socket.getaddrinfo() should take an address tuple.

2010-07-10 Thread Giampaolo Rodola'

Giampaolo Rodola'  added the comment:

I'm closing this out as rejected.

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



[issue1515142] sgmllib should recover from unmatched quotes

2010-07-10 Thread Mark Lawrence

Mark Lawrence  added the comment:

I've tried the patch against 2.7 on Windows Vista and got three test failures.  
Would someone else please try this in case I had finger problems.

--
nosy: +BreamoreBoy
type: feature request -> behavior

___
Python tracker 

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



[issue1459279] sgmllib.SGMLparser and hexadecimal numeric character refs

2010-07-10 Thread Mark Lawrence

Mark Lawrence  added the comment:

sgmllib has been removed from py3k.

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



[issue4277] asynchat's handle_error inconsistency

2010-07-10 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
assignee:  -> giampaolo.rodola

___
Python tracker 

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



[issue1434090] DOM tree inconsistency in expat XML parser

2010-07-10 Thread Georg Brandl

Georg Brandl  added the comment:

Fixed in r82761, thanks!

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



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

2010-07-10 Thread Mark Lawrence

Mark Lawrence  added the comment:

Original link is duff try this.
http://cgi-spec.golux.com/draft-coar-cgi-v11-03.txt

--
nosy: +BreamoreBoy
versions: +Python 3.2 -Python 2.7

___
Python tracker 

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



[issue5817] Right-click behavior from Windows Explorer

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


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



[issue5863] bz2.BZ2File should accept other file-like objects.

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


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



[issue5877] Add a function for updating URL query parameters

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


--
assignee:  -> orsenthil
nosy: +orsenthil
stage:  -> unit test needed
versions: +Python 3.2 -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



[issue5926] bdist_msi - add support for minimum Python version for pure Python packages

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


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



[issue8338] Outdated information

2010-07-10 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, fixed in r82762.

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



[issue1736792] dict reentrant/threading request

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


--
title: dict reentrant/threading bug -> dict reentrant/threading request
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



[issue8456] sqlite3.connect documentation is incorrect

2010-07-10 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, fixed in r82763.

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



[issue2528] Change os.access to check ACLs under Windows

2010-07-10 Thread Mark Lawrence

Mark Lawrence  added the comment:

A quick look tells me that the patch seems clean.  However it involves changes 
to posixmodule.c and I don't (yet) want to get involved with doing builds, so 
could someone else please give this a try.

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



[issue6124] Tkinter should support the OS X zoom button

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


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



[issue4966] Improving Lib Doc Sequence Types Section

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


--
assignee: georg.brandl -> d...@python
nosy: +d...@python
versions: +Python 3.2 -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



[issue8560] regrtest: add a minimal "progress bar"

2010-07-10 Thread Georg Brandl

Georg Brandl  added the comment:

Hmm, I see only one objection...  and I think readability will be much less 
affected if the format is

[  1/340] test_grammar
[  2/340] test_opcodes
[  3/340] test_dict

or somesuch.

--
nosy: +georg.brandl
resolution: invalid -> 
status: closed -> open

___
Python tracker 

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



[issue8040] It would be nice if documentation pages linked to other versions of the same document

2010-07-10 Thread Daniel Stutzbach

Daniel Stutzbach  added the comment:

On Sat, Jul 10, 2010 at 1:56 AM, Terry J. Reedy wrote:

> I think this effectively impossible for volunteers. Microsoft has 1000s of
> paid employees. Chapter and Sections numbers do not match from version to
> version.
>

We don't need to match numbers, we just need to match links, which in 99% of
all cases follow a regular pattern:

For example:

http://docs.python.org/py3k/library/fractions.html
http://docs.python.org/library/fractions.html
http://docs.python.org/release/2.6.5/library/fractions.html

It's pretty easy to generate the links to the corresponding pages.  The
trickier part is testing that the link is valid when building the pages.

In an ideal universe, there would be a way to manually specify when a page
has been renamed (e.g., _winreg -> winreg), but even if those links were
missing it would still be quite useful (IMO, of course).

How many other versions would you link to? Multiple links could get a bit
> ugly.
>

The same number as currently listed in the sidebar on the index page.

--
status: pending -> open
Added file: http://bugs.python.org/file17926/unnamed

___
Python tracker 

___On Sat, Jul 10, 2010 at 1:56 AM, Terry J. Reedy rep...@bugs.python.org> wrote:

I think this effectively impossible for volunteers. Microsoft has 1000s of paid 
employees. Chapter and Sections numbers do not match from version to 
version.We don't need to match 
numbers, we just need to match links, which in 99% of all cases follow a 
regular pattern:

For example:http://docs.python.org/py3k/library/fractions.html"; 
target="_blank">http://docs.python.org/py3k/library/fractions.htmlhttp://docs.python.org/library/fractions.html"; 
target="_blank">http://docs.python.org/library/fractions.html

http://docs.python.org/release/2.6.5/library/fractions.html"; 
target="_blank">http://docs.python.org/release/2.6.5/library/fractions.htmlIt's
 pretty easy to generate the links to the corresponding pages.  The trickier 
part is testing that the link is valid when building the pages.

In an ideal universe, there would be a way to manually 
specify when a page has been renamed (e.g., _winreg -> winreg), but even if 
those links were missing it would still be quite useful (IMO, of course).

How many other versions would you link to? Multiple links could get a bit 
ugly.The same number as currently listed 
in the sidebar on the index page.
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6321] Reload Python modules when running programs

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


--
assignee:  -> kbk
nosy: +kbk
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



[issue8564] Update documentation on doctest/unittest2 integration

2010-07-10 Thread Georg Brandl

Georg Brandl  added the comment:

Applied in r82764. Thanks!

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



[issue6751] Default return value in ConfigParser

2010-07-10 Thread Mark Lawrence

Mark Lawrence  added the comment:

A short inline patch is proposed, would something like this be acceptable?

--
nosy: +BreamoreBoy
stage:  -> patch review

___
Python tracker 

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



[issue8040] It would be nice if documentation pages linked to other versions of the same document

2010-07-10 Thread Daniel Stutzbach

Daniel Stutzbach  added the comment:

On Sat, Jul 10, 2010 at 2:12 AM, Ezio Melotti wrote:

> I think I've already discussed this with Georg a while ago and we ended up
> adding the links on the left sidebar in http://docs.python.org/.
> IIRC there's no easy way to find the same document in another version of
> the doc, not even now with Sphinx.
> I think this can be closed, unless Georg disagrees.

When I opened this issue originally, I hadn't learned Sphinx yet and
couldn't propose a solution.  Since then I've started using Sphinx and have
a much better idea of what it can and cannot do.

It would require a new Sphinx extension, but it need not be a complex one.

Inside sidebartoc:

Docs for other versions

(call extension module)


The extension module would use a global directory (outside of a particular
version's Sphinx build) to keep track of which versions had generated the
same page.  The builds would have to be run twice, once to produce all of
the information and once to include it.  Alternately, they could be run once
if it's acceptable to use Apache Server-Side-Includes (SSI).

If you want to assign the issue to me and leave it open, that would be fine
with me.  I can't promise to get to it soon, but I'm willing to work on it
eventually.

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

___
Python tracker 

___On Sat, Jul 10, 2010 at 2:12 AM, Ezio Melotti rep...@bugs.python.org> 
wrote:
I think I've already discussed this with Georg a while ago and we ended up 
adding the links on the left sidebar in http://docs.python.org/"; 
target="_blank">http://docs.python.org/.
IIRC there's no easy way to find the same document in another version of 
the doc, not even now with Sphinx.
I think this can be closed, unless Georg 
disagrees.When I opened this issue originally, 
I hadn't learned Sphinx yet and couldn't propose a solution.  Since 
then I've started using Sphinx and have a much better idea of what it can 
and cannot do.
It would require a new Sphinx extension, but it need not be 
a complex one.Inside 
sidebartoc:

Docs for other versions

    (call extension module)
The extension module would use a global directory (outside of a particular version's Sphinx build) to keep track of which versions had generated the same page.  The builds would have to be run twice, once to produce all of the information and once to include it.  Alternately, they could be run once if it's acceptable to use Apache Server-Side-Includes (SSI). If you want to assign the issue to me and leave it open, that would be fine with me.  I can't promise to get to it soon, but I'm willing to work on it eventually. ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

[issue8560] regrtest: add a minimal "progress bar"

2010-07-10 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Georg's suggestion is rather nice.

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



[issue8040] It would be nice if documentation pages linked to other versions of the same document

2010-07-10 Thread Daniel Stutzbach

Changes by Daniel Stutzbach :


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

___
Python tracker 

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



[issue8040] It would be nice if documentation pages linked to other versions of the same document

2010-07-10 Thread Daniel Stutzbach

Changes by Daniel Stutzbach :


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

___
Python tracker 

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



[issue1720250] PyGILState_Ensure does not acquires GIL

2010-07-10 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I'm not even sure what PyEval_AcquireLock() and PyEval_ReleaseLock() are good 
for. Perhaps they should be deprecated.

--
nosy: +pitrou

___
Python tracker 

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



[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)

2010-07-10 Thread Jesse Noller

Jesse Noller  added the comment:

Talking with Brett; the fix should be as simple as keeping a reference to the 
debug function which we have in the imports. During interpreter shutdown, the 
sys.modules is iterated and each module replaced with None. Since the 
_handle_workers thread persists slightly past the point of the parent (and can, 
it's a daemon thread) debug is vanishing on us.

We can go with switching this to a classmethod, and keeping a reference on the 
class, passing debug directly into the _handle_workers thread (testing this 
last night fixed it 100% of the time)

--

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

thanks greg; I'm going to take a look and think about this. I'd like to resolve 
bug 9207 first though

--

___
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

Changes by Jesse Noller :


--
assignee:  -> jnoller

___
Python tracker 

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



[issue7284] optparse - display version in usage by default

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


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



[issue7303] pkgutil lacks documentation for useful functions

2010-07-10 Thread Mark Lawrence

Mark Lawrence  added the comment:

Ulrik could you please submit a patch?

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

___
Python tracker 

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



[issue1522400] irda socket support

2010-07-10 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +loewis

___
Python tracker 

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



[issue9174] unittest assertEqual error output sub-optimal for single strings

2010-07-10 Thread Michael Foord

Michael Foord  added the comment:

Committed revision 82767. (py3k)
Committed revision 82765. (release27-maint)
Fix could be ported to Python 3.1 as a bugfix as well.

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



[issue1522400] irda socket support

2010-07-10 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

A new patch should be generated against 3.2 (the current one doesn't apply 
cleanly).

Also, checking for linux/irda.h requires that sys/socket.h is included, hence 
needing the following snippet in configure.in:

# On Linux, irda.h requires sys/socket.h  
AC_CHECK_HEADERS(linux/irda.h,,,[   
#ifdef HAVE_SYS_SOCKET_H
#include  
#endif
])

--
nosy: +pitrou
stage: patch review -> needs patch

___
Python tracker 

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



[issue2528] Change os.access to check ACLs under Windows

2010-07-10 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

But what are the benefits of this change?

--
nosy: +amaury.forgeotdarc

___
Python tracker 

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



[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2010-07-10 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

> I would like to know what happened with hex_codec and what is the new py3 for 
> this.

If you had read this bug report, you'd know that the codec was removed
in Python 3. Use binascii.hexlify/binascii.unhexlify instead (as you
should in 2.x, also).

--

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

Because of the method of implementation, a dialog can be created without 
specifying a parent. There was at least one instance of this in IDLE before my 
patch. This is a bug, since the behavior of the dialog in this instance is 
obviously incorrect (the user can switch focus back to the parent while the 
dialog is still open).

I found that making the EditorWindow the default parent was the best way to 
both fix the bug, make the code more readable, and avoid replicating this bug 
in the future. Feel free to write up a different patch or change mine if you 
feel so strongly about the default parent.

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.

--

___
Python tracker 

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



[issue8560] regrtest: add a minimal "progress bar"

2010-07-10 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
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 Mark Lawrence

Mark Lawrence  added the comment:

I tried to test the patch but got:-
c:\Python26>python.exe lib\test\test_urllib2_localnet.py
Traceback (most recent call last):
  File "lib\test\test_urllib2_localnet.py", line 325, in 
class DigestMD5sessClientAuthTests(BaseTestCase):
NameError: name 'BaseTestCase' is not defined

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



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

2010-07-10 Thread Mark Lawrence

Mark Lawrence  added the comment:

The patch will need reworking to apply to 3.2 only.

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



[issue7797] base64 module docs should indicate that encode methods return bytes, not strings

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


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



[issue7836] Add /usr/sfw/lib to OpenSSL search path for Solaris.

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


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



[issue7935] Cross-reference ast.literal_eval() from eval() docs

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


--
assignee: georg.brandl -> d...@python
nosy: +d...@python
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



[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2010-07-10 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

Martin v. Löwis wrote:
> 
> Martin v. Löwis  added the comment:
> 
>> I would like to know what happened with hex_codec and what is the new py3 
>> for this.
> 
> If you had read this bug report, you'd know that the codec was removed
> in Python 3. Use binascii.hexlify/binascii.unhexlify instead (as you
> should in 2.x, also).

... or wait for Python 3.2 which will readd them :-)

--

___
Python tracker 

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



[issue1653457] Python misbehaves when installed in / (patch attached)

2010-07-10 Thread Mark Lawrence

Mark Lawrence  added the comment:

I think the patch should be looked at very carefully as I guess that the reduce 
function is called all over the place.

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



[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2010-07-10 Thread Georg Brandl

Georg Brandl  added the comment:

... but don't wait too long!

--

___
Python tracker 

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



[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2010-07-10 Thread Georg Brandl

Changes by Georg Brandl :


--

___
Python tracker 

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



[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2010-07-10 Thread Georg Brandl

Georg Brandl  added the comment:

... but don't wait to long to add them!

--

___
Python tracker 

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



[issue1367631] maximum length not enforced in cgi.parse()

2010-07-10 Thread Mark Lawrence

Mark Lawrence  added the comment:

Andrew could you please provide a patch.

--
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.1, 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



[issue5638] test_httpservers fails CGI tests if --enable-shared

2010-07-10 Thread Mark Lawrence

Mark Lawrence  added the comment:

Would anyone like to comment on this.

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



[issue1612012] builtin compile() doc needs PyCF_DONT_IMPLY_DEDENT

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


--
assignee:  -> d...@python
nosy: +d...@python
versions: +Python 2.7, Python 3.1, 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



[issue1522400] irda socket support

2010-07-10 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Here is a straight port of the patch to py3k, compiling under Linux and 
Windows. Several problems though:

1. the patch seems incomplete, in that manual decoding of return values is 
necessary (see posted example obex_test.py)

2. there seems to be no way to test it if you don't have an IRDA device (I 
don't have any)

3. the patch itself seems fragile: for example, it won't always put a 
terminating '\0' in sir_name; also, straight memcpy() of an int into a char[] 
buffer is wrong (endianness issues)

--
Added file: http://bugs.python.org/file17928/irda-32.patch

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

Here's a patch that makes Python-level lock acquisitions interruptible for 
py3k.  There are many users of the C-level lock API, most of whom are not set 
up to deal with lock acquisition failure.  I decided to make a new API function 
and leave the others alone.

If possible, I think this should go out with 3.2.

In that case, I was wondering if I should merge PyThread_acquire_lock_timed 
with my new PyThread_acquire_lock_timed_intr, since PyThread_acquire_lock_timed 
wasn't available in 3.1.  Although it did go out in 2.7, we don't promise C API 
compatibility with the 2.x series, so I don't think it matters.

I've tested this patch on Mac OS X and Linux.  The whole test suite passes on 
both, along with the test that I added to test_threadsignals.py.

I added a noop compatibility wrapper to thread_nt.h, but I haven't tested it or 
built it.  When I get around to testing/fixing the subprocess patch on Windows, 
I'll make sure this works and the test is skipped.

--
keywords: +patch
Added file: http://bugs.python.org/file17929/lock-interrupt.diff

___
Python tracker 

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



[issue1749512] imaplib cannot handle mailboxes with ACL: lrs

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


--
components: +Library (Lib) -Extension Modules
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



[issue1104] msilib.SummaryInfo.GetProperty() truncates the string by one character

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 2.7, Python 3.1, 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



[issue1522400] irda socket support

2010-07-10 Thread Brian Curtin

Changes by Brian Curtin :


--
components: +Extension Modules -Library (Lib)

___
Python tracker 

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



[issue1728741] move intern to sys, make intern() optionally warn

2010-07-10 Thread Benjamin Peterson

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



[issue5715] listen socket close in SocketServer.ForkingMixIn.process_request()

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


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



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

2010-07-10 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Oh, nice!

> I was wondering if I should merge PyThread_acquire_lock_timed with my
> new PyThread_acquire_lock_timed_intr, since PyThread_acquire_lock_timed 
> wasn't available in 3.1.

Yes, I think you should.

I haven't tried the patch, but it seems you got the logic right. There's a 
problem sometimes that you're using 2 spaces for indent rather than 4. Also, 
you forgot to update the RLock implementation in _threadmodule.c (and perhaps 
add another test for it).

(there are other modules which use the PyThread_acquire_lock API, but most of 
the time the locks are held for a short time (and shouldn't deadlock), which 
makes converting them less of a priority)

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



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

2010-07-10 Thread Greg Brockman

Greg Brockman  added the comment:

Cool, thanks.  I'll note that with this patch applied, using the test program 
from 9207 I consistently get the following exception:
"""
Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
  File "/usr/lib/python2.6/threading.py", line 484, in run
  File "/home/gdb/repositories/multiprocessing/pool.py", line 312, in 
_handle_workers
  File "/home/gdb/repositories/multiprocessing/pool.py", line 190, in 
_maintain_pool
  File "/home/gdb/repositories/multiprocessing/pool.py", line 158, in 
_join_exited_workers
: 'NoneType' object is not callable
"""

This is line 148 in the unpatched source, namely the 
'reversed(range(len(self._pool)))' line of _join_exited_workers.  Looks like 
the same issue, where instead reversed/range/len have been set to None.

So I think by changing how much time the worker_handler spends in various 
functions, I've made it possible (or just more likely?) that if we lose the 
race with interpreter shutdown the worker_handler will be in the middle of 
_join_exited_workers.  This may mean that someone should keep around a local 
reference to reversed/range/len... not sure if there's a better solution.

--

___
Python tracker 

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



[issue5758] fileinput.hook_compressed returning bytes from gz file

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


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



[issue5286] urrlib2 digest authentication problems

2010-07-10 Thread Mark Lawrence

Mark Lawrence  added the comment:

To quote msg82284. "The fix in the patch is crude, but it should work better 
than now."  Would this be acceptable?

--
nosy: +BreamoreBoy, orsenthil
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



[issue985064] plistlib crashes too easily on bad files

2010-07-10 Thread Mark Lawrence

Changes by Mark Lawrence :


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



  1   2   3   >