[issue14140] packaging tests: add helpers to create and inspect a tree of files

2012-03-04 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe :


--
nosy: +tshepang

___
Python tracker 

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



[issue14128] _elementtree should expose types and factory functions consistently with ElementTree

2012-03-04 Thread Éric Araujo

Éric Araujo  added the comment:

An aside: Your commit made me realize that ET tests use monkey-patching instead 
of now more common idioms like using support.import_fresh_module and using 
subclasses to run the same tests for a Python and a C module.  There is also a 
doctest that is not executed.  You may want to streamline these tests.

--
nosy: +eric.araujo

___
Python tracker 

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



[issue14188] Sharing site-packages between Apply and python.org builds breaks extensions

2012-03-04 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo
status: pending -> open

___
Python tracker 

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



[issue14128] _elementtree should expose types and factory functions consistently with ElementTree

2012-03-04 Thread Eli Bendersky

Eli Bendersky  added the comment:

Éric,

The tests *do* use import_fresh_module, actually. Moreover, while 
monkeypatching exists it's rather limited (just setting the module name for 
test_main).

The biggest problem with these tests is that they're based on doctest, which 
wasn't designed to be too flexible for this purpose. All new tests I'm adding 
use the unittest infrastructure in a saner way. Rewriting all existing tests 
from doctest to unittest, while a worthy goal, would be probably too time 
consuming at this point.

If you have any specific suggestions for improvement, please open a separate 
issue.

--

___
Python tracker 

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



[issue14128] _elementtree should expose types and factory functions consistently with ElementTree

2012-03-04 Thread Eli Bendersky

Eli Bendersky  added the comment:

Éric,

The tests *do* use import_fresh_module, actually. Moreover, while 
monkeypatching exists it's rather limited (just setting the module name for 
test_main).

The biggest problem with these tests is that they're based on doctest, which 
wasn't designed to be too flexible for this purpose. All new tests I'm adding 
use the unittest infrastructure in a saner way. Rewriting all existing tests 
from doctest to unittest, while a worthy goal, would be probably too time 
consuming at this point.

If you have any specific suggestions for improvement, please open a separate 
issue.

--

___
Python tracker 

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



[issue14128] _elementtree should expose types and factory functions consistently with ElementTree

2012-03-04 Thread Eli Bendersky

Changes by Eli Bendersky :


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

___
Python tracker 

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



[issue14190] Minor C API documentation bugs

2012-03-04 Thread Eli Bendersky

Changes by Eli Bendersky :


--
nosy: +eli.bendersky

___
Python tracker 

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



[issue14190] Minor C API documentation bugs

2012-03-04 Thread Baruch Sterin

Baruch Sterin  added the comment:

A few additional ones:

The prototype in the documentation is incorrect:

* PyFile_SetEncoding accepts PyObject*, not PyFileObject*
* PyFile_SetEncodingAndErrors accepts PyObject*, not PyFileObject*

PyLong_AsSsize_t is also duplicated.

--

___
Python tracker 

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



[issue14188] Sharing site-packages between Apple and python.org builds breaks extensions

2012-03-04 Thread Ned Deily

Changes by Ned Deily :


--
status: open -> pending
title: Sharing site-packages between Apply and python.org builds breaks 
extensions -> Sharing site-packages between Apple and python.org builds breaks 
extensions

___
Python tracker 

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



[issue14192] stdout.encoding not set when redirecting windows command line output

2012-03-04 Thread Redoute

New submission from Redoute :

When running a python script from windows command line (cmd.exe) and 
redirecting its output, stdout.encoding is set to None and printing non-ascii 
chars fails. Encoding should be the same as without redirecting.
Example:

[Code unictest.py]
# -*- coding: utf-8 -*-

from sys import stdout, stderr
print >> stderr, 'stdout.encoding: ', stdout.encoding
print u'äöüß'
[/Code]

[windows command prompt]
C:\Daten>testunic.py
stdout.encoding:  cp850
äöüß

C:\Daten>testunic.py > testunic.txt
stdout.encoding:  None
Traceback (most recent call last):
  File "C:\Daten\Cmd\testunic.py", line 5, in 
print u'├ñ├Â├╝├ƒ'
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordin
al not in range(128)
[/windows command prompt]

--
components: Windows
messages: 154885
nosy: Redoute
priority: normal
severity: normal
status: open
title: stdout.encoding not set when redirecting windows command line output
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



[issue14188] Sharing site-packages between Apple and python.org builds breaks extensions

2012-03-04 Thread Barry Alan Scott

Barry Alan Scott  added the comment:

I have wxPython installed. Uninstalling it changes the order of sys.path to 
this:

['',
 '/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
 '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
 '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
 '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
 
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
 '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
 '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
 '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
 
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages',
 '/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7',
 '/Library/Python/2.7/site-packages',
 '/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7']

I'll take this up with the wxPython folks.

--
status: pending -> open

___
Python tracker 

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



[issue14183] Test coverage for packaging.install and packaging.pypi.wrapper

2012-03-04 Thread Francisco Martín Brugué

Francisco Martín Brugué  added the comment:

I've updated the patch. Let me know if something has to be changed.

--
Added file: http://bugs.python.org/file24727/issue14183_fbb9847b8f43.patch

___
Python tracker 

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



[issue14179] Test coverage for lib/re.py

2012-03-04 Thread Florian M

Changes by Florian M :


Added file: http://bugs.python.org/file24728/re_coverage.patch

___
Python tracker 

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



[issue14192] stdout.encoding not set when redirecting windows command line output

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

Martin v. Löwis  added the comment:

That is impossible to implement. When outputting to a terminal window, the 
terminal's encoding is queried and used. When the Python script is run on its 
own, there may not even exist a terminal encoding.

In any case, this issue is resolved in Python 3 (not by setting the encoding to 
the terminal's encoding, but to the system code page). For 2.7, changing this 
would be a new feature, so I'm closing this as resolved - please upgrade to 
Python 3.

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



[issue13183] pdb skips frames after hitting a breakpoint and running step

2012-03-04 Thread Xavier de Gaye

Xavier de Gaye  added the comment:

This message is just a reminder that this 4 months old issue raises
the point that the step command in pdb is broken. A patch and test
case have been proposed.
No comment so far.

As the author of pyclewn, a Vim front end to pdb and gdb, I would be
grateful for any progress on this problem.

--

___
Python tracker 

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



[issue14193] broken link on PEP 385

2012-03-04 Thread Tshepang Lekhonkhobe

New submission from Tshepang Lekhonkhobe :

The pymigr link on pep385 is broken.

--
assignee: docs@python
components: Documentation
messages: 154890
nosy: docs@python, tshepang
priority: normal
severity: normal
status: open
title: broken link on PEP 385

___
Python tracker 

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



[issue14193] broken link on PEP 385

2012-03-04 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, fixed in 636320b98756.

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



[issue14192] stdout.encoding not set when redirecting windows command line output

2012-03-04 Thread Redoute

Redoute  added the comment:

Martin, thanks for your response.

I have to take it, although I am not really convinced. The system codepage 
probably differs from the console codepage (here 1152 vs. 850). Print 
statements on the other hand are typical for console programs. Calling 
python.exe (vs. pythonw.exe) means console program means print output has to 
use console codepage as default.

It is disappointing that output changes and programs fail because of a command 
line redirection.

--

___
Python tracker 

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



[issue14166] private dispatch table for picklers

2012-03-04 Thread sbt

sbt  added the comment:

> I don't understand the following code:
> ... 
> since self.dispatch_table is a property returning
> self._dispatch_table. Did you mean type(self).dispatch_table?

More or less.  That code was a botched attempt to match the behaviour of the C 
implementation.

The C implementation does not expose the dispatch table unless it has been 
explicitly set (on the pickler or the pickler class), and it ignores any 
"dispatch_table" (or "persistent_id") attribute on the metaclass.

I will do a fixed patch with docs.

--

___
Python tracker 

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



[issue12328] multiprocessing's overlapped PipeConnection on Windows

2012-03-04 Thread sbt

sbt  added the comment:

> Hmm, I tried to apply the latest patch to the default branch and it 
> failed.  It also seems the patch was done against a changeset 
> (508bc675af63) which doesn't exist in the repo...

I will do an updated patch against a "public" changeset.  (I usually use a 
patch for the project files to disable those extensions which my windows setup 
cannot compile.)

--

___
Python tracker 

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



[issue14194] typo in pep414

2012-03-04 Thread Tshepang Lekhonkhobe

New submission from Tshepang Lekhonkhobe :

in pep414:

"in additional to" --> "in addition to"

--
messages: 154895
nosy: tshepang
priority: normal
severity: normal
status: open
title: typo in pep414

___
Python tracker 

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



[issue14194] typo in pep414

2012-03-04 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe :


--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python

___
Python tracker 

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



[issue14194] typo in pep414

2012-03-04 Thread Georg Brandl

Georg Brandl  added the comment:

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



[issue14166] private dispatch table for picklers

2012-03-04 Thread sbt

sbt  added the comment:

Updated patch with docs.

--
Added file: http://bugs.python.org/file24729/pickle_dispatch.patch

___
Python tracker 

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



[issue14192] stdout.encoding not set when redirecting windows command line output

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

Martin v. Löwis  added the comment:

> I have to take it, although I am not really convinced. The system  
> codepage probably differs from the console codepage (here 1152 vs.  
> 850). Print statements on the other hand are typical for console  
> programs. Calling python.exe (vs. pythonw.exe) means console program  
> means print output has to use console codepage as default.

I think in practice, this statement is incorrect for most applications.
When they use print, they want to create text files, and those will
be opened with notepad (or some other text editor on Windows), and will
have to be in cp1252. So guessing that it should be cp850 will be incorrect
most of the time.

In any case, you have perfectly described why the initial design decision
in Python 2 was to refuse to guess.

--

___
Python tracker 

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



[issue13704] Random number generator in Python core

2012-03-04 Thread Georg Brandl

Georg Brandl  added the comment:

Demoting from release blocker since the hash collision issue got remedied 
differently.

If this is not needed anymore, please close.

--
priority: release blocker -> normal

___
Python tracker 

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



[issue12346] Python source code build fails with old mercurial

2012-03-04 Thread Georg Brandl

Georg Brandl  added the comment:

Is there anything left to do here?  It doesn't appear to be a release blocker 
anymore.

--
priority: release blocker -> normal

___
Python tracker 

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



[issue14188] Sharing site-packages between Apple and python.org builds breaks extensions

2012-03-04 Thread Ned Deily

Changes by Ned Deily :


--
status: open -> closed

___
Python tracker 

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



[issue14166] private dispatch table for picklers

2012-03-04 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset f7a9a10ae0c0 by Antoine Pitrou in branch 'default':
Issue #14166: Pickler objects now have an optional `dispatch_table` attribute 
which allows to set custom per-pickler reduction functions.
http://hg.python.org/cpython/rev/f7a9a10ae0c0

--
nosy: +python-dev

___
Python tracker 

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



[issue14166] private dispatch table for picklers

2012-03-04 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I've replaced occurrences of "pickle.Pickler" with "self.pickler_class" in the 
tests. Otherwise, the patch looks perfect and I've now committed it. Thank you!

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

___
Python tracker 

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



[issue12328] multiprocessing's overlapped PipeConnection on Windows

2012-03-04 Thread sbt

sbt  added the comment:

Updated patch against 2822765e48a7.

--
Added file: http://bugs.python.org/file24730/pipe_poll_fix.patch

___
Python tracker 

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



[issue13704] Random number generator in Python core

2012-03-04 Thread Christian Heimes

Christian Heimes  added the comment:

Yes, this ticket can be closed unless there is an interest to include the PRNG 
in the core.

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

___
Python tracker 

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



[issue1040439] Missing documentation on how to link with libpython

2012-03-04 Thread Eli Bendersky

Eli Bendersky  added the comment:

Éric, go ahead :)

--

___
Python tracker 

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



[issue14190] Minor C API documentation bugs

2012-03-04 Thread Eli Bendersky

Changes by Eli Bendersky :


--
keywords: +easy
versions: +Python 3.2, Python 3.3

___
Python tracker 

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



[issue13704] Random number generator in Python core

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

Martin v. Löwis  added the comment:

This is indeed out-of-date.

--
status: pending -> closed

___
Python tracker 

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



[issue14176] Fix unicode literals

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

Martin v. Löwis  added the comment:

I propose to close this issue as invalid (although out-of-date might be fine as 
well). Jean-Michel is apparently unable to describe what issue *precisely* he 
wants to see fixed, rather than just complaining that open source is a 
disaster. I don't think we can anything do about open source being a disaster, 
and I'm not able to reproduce that perception.

Jean-Michel: please try to use this bug tracker in the way it is intended, i.e. 
report one bug at time, following this structure:
- this is what I did
- this is what happened
- this is what should have happened instead

--

___
Python tracker 

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



[issue14171] warnings from valgrind about openssl as used by CPython

2012-03-04 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 9a69b47f194e by Martin v. Löwis in branch 'default':
Issue #14171: Add valgrind suppressions for OpenSSL issue.
http://hg.python.org/cpython/rev/9a69b47f194e

--
nosy: +python-dev

___
Python tracker 

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



[issue14171] warnings from valgrind about openssl as used by CPython

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

Martin v. Löwis  added the comment:

It may indeed be that recompiling OpenSSL properly could fix this. I added this 
anyway since it probably doesn't cause harm. Thanks for the patch.

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



[issue14195] WeakSet has ordering relations wrong

2012-03-04 Thread Antoine Pitrou

New submission from Antoine Pitrou :

>>> a = weakref.WeakSet()
>>> a < a
True
>>> a > a
True

--
components: Library (Lib)
messages: 154910
nosy: pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: WeakSet has ordering relations wrong
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3

___
Python tracker 

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



[issue1508475] transparent gzip compression in urllib

2012-03-04 Thread Evgeny Kapun

Changes by Evgeny Kapun :


--
nosy: +abacabadabacaba

___
Python tracker 

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



[issue14168] Bug in minidom 3.3 after optimization patch

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

Martin v. Löwis  added the comment:

Instead of calling _ensure_attributes (which creates the attribute 
dictionaries), getAttribute should return "" immediately if there are no 
attributes at all, to avoid creating those dictionaries.

I'll do a patch shortly, unless somebody beats me.

--

___
Python tracker 

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



[issue2377] Replace __import__ w/ importlib.__import__

2012-03-04 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I have taken a look at the latest code again, and I'm worried that import.c 
still has large chunks of code dealing with module finding and loading. These 
functionalities should be redirected to the corresponding importlib code 
instead.

--

___
Python tracker 

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



[issue13719] bdist_msi upload fails

2012-03-04 Thread Ralf Schmitt

Ralf Schmitt  added the comment:

sorry, I'm currently short on time and don't use windows at the moment.

bdist_msi runs without user interaction. just let the buildbots test it.

--

___
Python tracker 

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



[issue14144] urllib2 HTTPRedirectHandler not forwarding POST data in redirect

2012-03-04 Thread Jay Deiman

Jay Deiman  added the comment:

I have no problem making doc and test changes.  I'll probably need a pointer as 
to where these changes need to be made and submitted to, but like you said, 
I'll wait until the patch is accepted before doing that.

--

___
Python tracker 

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



[issue2377] Replace __import__ w/ importlib.__import__

2012-03-04 Thread Nick Coghlan

Nick Coghlan  added the comment:

Yes, the import related C API should be turned into a mere wrapper around the 
appropriate importlib code wherever possible.

I don't think that needs to be a gating criteria for the initial commit, though.

--

___
Python tracker 

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



[issue14196] Unhandled exceptions in pdb return value display

2012-03-04 Thread Simon Chopin

New submission from Simon Chopin :

This issue occurred at least in Python 2.7, I haven't checked in other versions.

When stepping on a return statement, pdb calls the return value __str__() 
method to display it at the end of the line. Only, it doesn't handle the 
potential exceptions raised within those functions.

An exemple would be:
import pdb

class A(object):
def __new__(cls):
pdb.set_trace()
return super(A, cls).__new__()
def __init__(self):
self.value = "Foo"
def __str__(self):
return self.value

pdb.run("A()")

When using the step by step, pdb will be interrupted by an unhandled 
AttributeError.

--
components: Library (Lib)
messages: 154916
nosy: Simon.Chopin
priority: normal
severity: normal
status: open
title: Unhandled exceptions in pdb return value display
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



[issue2377] Replace __import__ w/ importlib.__import__

2012-03-04 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> I don't think that needs to be a gating criteria for the initial commit, 
> though.

I think it should, otherwise we will end up in a situation worse than
currently (we will have two competing default implementations of import,
depending which API you invoke).

--

___
Python tracker 

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



[issue14195] WeakSet has ordering relations wrong

2012-03-04 Thread Meador Inge

Meador Inge  added the comment:

Ouch, WeakSet.__lt__ and WeakSet.__gt__ are defined in terms of set.issubset 
and set.issuperset, respectively.  set.issubset and set.issuperset are *not* 
proper subset and superset operations, thus the error.  The attached patch 
fixes this.

--
keywords: +patch
nosy: +meador.inge
Added file: http://bugs.python.org/file24731/issue14195-v1.patch

___
Python tracker 

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



[issue14195] WeakSet has ordering relations wrong

2012-03-04 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

+1 thanks for fixing this

--
nosy: +rhettinger
priority: normal -> high

___
Python tracker 

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



[issue14195] WeakSet has ordering relations wrong

2012-03-04 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 4b3f1decb1af by Meador Inge in branch '2.7':
Issue #14195: Make WeakSet.__lt__ and WeakSet.__gt__ irreflexive.
http://hg.python.org/cpython/rev/4b3f1decb1af

New changeset 5b88475aae96 by Meador Inge in branch '3.2':
Issue #14195: Make WeakSet.__lt__ and WeakSet.__gt__ irreflexive.
http://hg.python.org/cpython/rev/5b88475aae96

New changeset 31dc8fe15b02 by Meador Inge in branch 'default':
Issue #14195: Make WeakSet.__lt__ and WeakSet.__gt__ irreflexive.
http://hg.python.org/cpython/rev/31dc8fe15b02

--
nosy: +python-dev

___
Python tracker 

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



[issue14195] WeakSet has ordering relations wrong

2012-03-04 Thread Meador Inge

Changes by Meador Inge :


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

___
Python tracker 

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



[issue14189] Documentation for some C APIs is missing clear specification of the type of reference they return

2012-03-04 Thread Meador Inge

Changes by Meador Inge :


--
nosy: +meador.inge

___
Python tracker 

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



[issue14184] test_recursion_limit fails on OS X when compiled with clang

2012-03-04 Thread Meador Inge

Changes by Meador Inge :


--
nosy: +meador.inge

___
Python tracker 

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



[issue13951] Seg Fault in .so called by ctypes causes the interpreter to Seg Fault

2012-03-04 Thread Meador Inge

Changes by Meador Inge :


--
nosy: +meador.inge

___
Python tracker 

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



[issue14181] Support getbuffer redirection scheme in memoryview

2012-03-04 Thread Meador Inge

Changes by Meador Inge :


--
nosy: +meador.inge

___
Python tracker 

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



[issue14197] MacOS10.7 compiled uWSGI the issue.

2012-03-04 Thread shibingli

New submission from shibingli :

Artificial libpython3.2.a soft links to libpython3.2m.a

--
components: None
messages: 154921
nosy: shibingli
priority: normal
severity: normal
status: open
title: MacOS10.7 compiled uWSGI the issue.
type: compile error
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



[issue14169] compiler.compile fails on "if" statement in attached file

2012-03-04 Thread Meador Inge

Changes by Meador Inge :


--
nosy: +meador.inge

___
Python tracker 

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



[issue14144] urllib2 HTTPRedirectHandler not forwarding POST data in redirect

2012-03-04 Thread Éric Araujo

Éric Araujo  added the comment:

> I have no problem making doc and test changes.  I'll probably need a
> pointer as to where these changes need to be made
Great!  I think the right test file is Lib/test/test_urllib2.py (the test files 
were not renamed in Python 3 when some modules were renamed); there is a 
test_redirect method that should be the right place.  Senthil will confirm.

Remember to work from a 3.3 checkout (i.e. the default branch of 
http://hg.python.org/cpython).  More help about contributing (like where to 
find files) is at http://docs.python.org/devguide.

> and submitted to,
Just as a patch on this report.

--

___
Python tracker 

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



[issue14197] MacOS10.7 compiled uWSGI the issue.

2012-03-04 Thread Ned Deily

Ned Deily  added the comment:

Sorry, can you explain better what problem you are seeing including specific 
error messages?

--
nosy: +ned.deily

___
Python tracker 

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



[issue11379] Remove "lightweight" from minidom description

2012-03-04 Thread Éric Araujo

Éric Araujo  added the comment:

This alternate version of my patch (a) merges the first two paragraphs to make 
the intro less redundant and heavy, and (b) reorganizes a bit the list of 
modules in Doc/library/markup.rst to have xml.etree first and pyexpat (less 
interesting for most people) at the end.  Tell me if you prefer this version, 
or if I should commit the first one (possibly with the (b) change).

--
Added file: http://bugs.python.org/file24732/minidom-desc-2.diff

___
Python tracker 

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



[issue14197] MacOS10.7 compiled uWSGI the issue.

2012-03-04 Thread shibingli

shibingli  added the comment:

Use the Mac OS 10.7 compiler uWSGI Makefile.Py32 (make-f), will report a 
compile error. Information in the annex.Artificially will the soft 
libpython3.2.a / 
Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/config-3.2m 
under connection to a libpython3.2m.a, the problem-solving.

--
Added file: http://bugs.python.org/file24733/py32_uWSGI.txt

___
Python tracker 

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



[issue14197] MacOS10.7 compiled uWSGI the issue.

2012-03-04 Thread shibingli

shibingli  added the comment:

Has been revised to permit BUG Description

在 2012-3-5,下午1:18, Ned Deily 写道:

> 
> Ned Deily  added the comment:
> 
> Sorry, can you explain better what problem you are seeing including specific 
> error messages?
> 
> --
> nosy: +ned.deily
> 
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue14168] Bug in minidom 3.3 after optimization patch

2012-03-04 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 73c76466cf44 by Martin v. Löwis in branch 'default':
Issue #14168: Check for presence of _attrs before accessing it.
http://hg.python.org/cpython/rev/73c76466cf44

--
nosy: +python-dev

___
Python tracker 

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



[issue14168] Bug in minidom 3.3 after optimization patch

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

Changes by Martin v. Löwis :


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



[issue14114] 2.7.3rc1 chm gives JS error

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

Martin v. Löwis  added the comment:

It worked fine in the 3.3a1 chm, so I consider it indeed fixed.

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



[issue14174] argparse.REMAINDER fails to parse remainder correctly

2012-03-04 Thread Éric Araujo

Éric Araujo  added the comment:

Thanks for the report.  Could you edit your script to add the expected results, 
for example Namespace(foo=..., command=[...])?

--
nosy: +eric.araujo
stage:  -> needs patch
versions: +Python 3.3

___
Python tracker 

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



[issue14191] argparse: nargs='*' doesn't get out-of-order positional parameters

2012-03-04 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +bethard
title: argparse: nargs='*' doesn't parse all positional parameters -> argparse: 
nargs='*' doesn't get out-of-order positional parameters
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



[issue14190] Minor C API documentation bugs

2012-03-04 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +haypo, loewis

___
Python tracker 

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