[issue15715] __import__ now raises with non-existing items in fromlist in 3.3

2012-08-17 Thread Eric Snow

Eric Snow added the comment:

The following seems to indicate that an ImportError should be raised as 
expected.  I'm guessing that somewhere along the line the exception gets 
silently eaten.

--

(3.2) Python/import.c:ensure_fromlist() [1]

submod = import_submodule(mod, subname, buf);
Py_DECREF(item8);
Py_XDECREF(submod);
if (submod == NULL) {
Py_DECREF(item);
return 0;
}

[1] http://hg.python.org/cpython/file/3.2/Python/import.c#l2875

--

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



[issue15715] __import__ now raises with non-existing items in fromlist in 3.3

2012-08-17 Thread Georg Brandl

Georg Brandl added the comment:

I agree that we should match 3.2 behavior here.

--

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



[issue15668] PEP 3121, 384 Refactoring applied to random module

2012-08-17 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Sure; I've mentored Robin throughout the summer with this, and this is his GSoC 
project.

As for the specific change: this is primarily to support PEP 3121, and allowing 
multiple interpreters to use a module without fear of global variables being 
shared across interpreters. 

In the current implementation, the Random type would be shared across all 
interpreters, with the change, each interpreter gets its own copy of the Random 
type. For that, the type needs to become a heap type, which is best done with 
the PEP 384 API (even though ABI stability is irrelevant for the random module).

--

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



[issue14977] mailcap does not respect precedence in the presence of wildcards

2012-08-17 Thread Petri Lehtinen

Petri Lehtinen added the comment:

Sounds like a bug to me.

It's not too straightforward to fix, though. The order of MIME types is lost 
because they are stored as keys of a dict. AFAICS, it wouldn't help to use 
OrderedDict and checking for the wildcard type first if its index is smaller. 
Example:

image/*; foo %s; test=/bin/false
image/jpeg; bar %s; test=/bin/true
image/*; baz %s; test=/bin/true

In this case, the image/jpeg entry should be returned, but both image/* entries 
get grouped together, so they would be evaluated first and the baz %s entry 
would be returned.

The API expects the result of getcaps() (a dict) to be passed to findmatch(), 
which makes it very hard to change the caps representation. The only way I can 
think of would be to change the representation to a dict subclass with extra 
semantics. Plain dict would still have to be supported for backwards 
compatibility, though.

--
nosy: +petri.lehtinen

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



[issue14977] mailcap does not respect precedence in the presence of wildcards

2012-08-17 Thread Petri Lehtinen

Changes by Petri Lehtinen pe...@digip.org:


--
keywords:  -easy

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



[issue15702] Multiprocessing Pool deadlocks on join after empty map operation

2012-08-17 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


--
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed

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



[issue15718] Possible OverflowError in __len__ method undocumented (when called via len() function)

2012-08-17 Thread Rostyslav Dzinko

New submission from Rostyslav Dzinko:

I've encountered that OverflowError which can happen in __len__ method is still 
undocumented, though one issue on this problem: 
http://bugs.python.org/issue12159 ended up with need to be documented comment.

Link to documentation: 
http://docs.python.org/reference/datamodel.html#object.__len__

I think it must be clarified that __len__ return value is constrained to upper 
boundary (Py_ssize_t c type) when you plan to call it via len() built-in 
function.

--
assignee: docs@python
components: Documentation
messages: 168439
nosy: Rostyslav.Dzinko, docs@python
priority: normal
severity: normal
status: open
title: Possible OverflowError in __len__ method undocumented (when called via 
len() function)
versions: Python 2.7

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



[issue15718] Possible OverflowError in __len__ method undocumented (when called via len() function)

2012-08-17 Thread Rostyslav Dzinko

Changes by Rostyslav Dzinko rostislav.dzi...@gmail.com:


--
type:  - behavior

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



[issue15573] Support unknown formats in memoryview comparisons

2012-08-17 Thread Stefan Krah

Stefan Krah added the comment:

There is still one corner case involving NaNs: Released memoryviews always
compare equal. I took that over from the 3.2 implementation.

 import array
 a = array.array('d', [float('nan')])
 m = memoryview(a)
 m == m
False
 m.release()
 m == m
True


I guess we have to live with that, since it is of course impossible to access
the values of a released view.

--

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



[issue15635] memory leak with generators

2012-08-17 Thread Florent Xicluna

Florent Xicluna added the comment:

Thank you for digging into this. I close the issue.

I discover now that this kind of problem is quite common in the Mac world.

Other references:
http://news.ycombinator.com/item?id=3879194
http://www.markvanda.net/apple/mac-os-x-memory-issues/

--
resolution:  - invalid
status: open - closed

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



[issue15528] Better support for finalization with weakrefs

2012-08-17 Thread Richard Oudkerk

Richard Oudkerk added the comment:

Updated patch.

--
Added file: http://bugs.python.org/file26879/finalize.patch

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



[issue14501] Error initialising BaseManager class with 'authkey' argument of string type.

2012-08-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 636f75da4b9e by Richard Oudkerk in branch '3.2':
Issue #14501: Clarify that authentication keys are byte strings
http://hg.python.org/cpython/rev/636f75da4b9e

--
nosy: +python-dev

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



[issue14501] Error initialising BaseManager class with 'authkey' argument of string type.

2012-08-17 Thread Richard Oudkerk

Richard Oudkerk added the comment:

I have fixed the documentation and examples to say that authentication keys are 
byte strings.

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

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



[issue15477] test_cmath failures on OS X 10.8

2012-08-17 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Without looking into the details of the issue: conditionalizing a work-around 
on OSX sounds right. On the one hand, it may penalize OSX releases which get it 
right. OTOH, it's all Apple's fault (IIUC), so they deserve it :-) 

Further, using a build-time check for the OS release is inappropriate, since 
the binary should work on other releases as well; a run-time check is probably 
more costly than the work-around.

--
nosy: +loewis

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



[issue15412] Note in documentation for weakrefs

2012-08-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 78b0f294674c by Richard Oudkerk in branch '2.7':
Issue #15412: Remove erroneous note about weakrefs
http://hg.python.org/cpython/rev/78b0f294674c

New changeset 24b13be81d61 by Richard Oudkerk in branch '3.2':
Issue #15412: Remove erroneous note about weakrefs
http://hg.python.org/cpython/rev/24b13be81d61

--
nosy: +python-dev

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



[issue15412] Note in documentation for weakrefs

2012-08-17 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue15715] __import__ now raises with non-existing items in fromlist in 3.3

2012-08-17 Thread Brett Cannon

Brett Cannon added the comment:

And this is why we have said people should use the idiom of 
``__import__('http.blah'); mod = sys.modules['http.blah']`` if importlib is not 
used (which is on PyPI and works as far back as Python 2.3), else you will deal 
with an AttributeError later instead of an ImportError upfront. grumbleDarn 
backwards-compatibility/grumble.

Eric's patch looks fine, so I will get it committed today.

--
assignee:  - brett.cannon
stage: needs patch - commit review

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



[issue15627] Add a method to importlib.abc.SourceLoader for converting source to a code object

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15640] Document importlib.abc.Finder as deprecated

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15641] Clean up importlib for Python 3.4

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15642] Integrate pickle protocol version 4 GSoC work by Stefan Mihaila

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15650] PEP 3121, 384 refactoring applied to dbm module

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15651] PEP 3121, 384 refactoring applied to elementtree module

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15653] PEP 3121, 384 refactoring applied to hashopenssl module

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15652] PEP 3121, 384 refactoring applied to gdbm module

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15654] PEP 384 Refactoring applied to bz2 module

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15655] PEP 384 Refactoring applied to json module

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15657] Error in Python 3 docs for PyMethodDef

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15662] PEP 3121 refactoring applied to locale module

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15665] PEP 3121, 384 refactoring applied to lsprof module

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15666] PEP 3121, 384 refactoring applied to lzma module

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15667] PEP 3121, 384 refactoring applied to pickle module

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15669] PEP 3121, 384 Refactoring applied to sre module

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15670] PEP 3121, 384 Refactoring applied to ssl module

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15671] PEP 3121, 384 Refactoring applied to struct module

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15672] PEP 3121, 384 Refactoring applied to testbuffer module

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15673] PEP 3121, 384 Refactoring applied to testcapi module

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15674] PEP 3121, 384 Refactoring applied to thread module

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15675] PEP 3121, 384 Refactoring applied to array module

2012-08-17 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue15715] __import__ now raises with non-existing items in fromlist in 3.3

2012-08-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0d52f125dd32 by Brett Cannon in branch 'default':
Issue #15715: Ignore failed imports triggered by the use of fromlist.
http://hg.python.org/cpython/rev/0d52f125dd32

--
nosy: +python-dev

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



[issue15715] __import__ now raises with non-existing items in fromlist in 3.3

2012-08-17 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


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

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



[issue15653] PEP 3121, 384 refactoring applied to hashopenssl module

2012-08-17 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Antoine: Py_DECREF calls tp_dealloc directly, so the type needs to be DECREFed 
in the course of tp_dealloc. I don't think there is any alternative to that.

One may wonder why regular extension types don't do that: this is because of a 
hack that excludes static (non-heap) types from being reference counted in 
their instances. Heap types do refcount their types, consequently, 
subtype_dealloc also DECREFs the type.

I certainly agree that this is muddy, in particular when it comes to subtyping 
where the derived subtype calls the base tp_dealloc. In an ideal world, 
object_dealloc would decref the type, and subtypes would be required to call 
the base type's dealloc. However, I feel that this cannot be changed before 
Python 4.

So I'd propose that it is actually the leaf subtype which decrefs ob_type. The 
check whether you are the leaf type is then done by checking whether tp_dealloc 
is the one you are in right now.

--

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



[issue15715] __import__ now raises with non-existing items in fromlist in 3.3

2012-08-17 Thread Eric Snow

Eric Snow added the comment:

When people want to import modules with runtime names, they regrettably turn 
to __import__() and likely will for a while.  What a source of headaches!

If it were less convenient to use __import__(), perhaps fewer people would use 
it.  Could we remove it from module.__builtins__, so that it would not be 
found during the lookup chain?  We could still expose it in the builtins module 
or move it to imp.

--

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



[issue5765] stack overflow evaluating eval(() * 30000)

2012-08-17 Thread Mark Shannon

Mark Shannon added the comment:

I've re-reviewed Andrea's patch (I was looking over Andrea's shoulder at the 
EuroPython sprint when he wrote it).

It looks good and applies cleanly. 
Could someone commit it please.

--
nosy: +Mark.Shannon

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



[issue15717] Mail System Error - Returned Mail

2012-08-17 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


Removed file: http://bugs.python.org/file26877/file.zip

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



[issue15717] Mail System Error - Returned Mail

2012-08-17 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


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

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



[issue15717] Mail System Error - Returned Mail

2012-08-17 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +ezio.melotti
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

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



[issue15710] logging module crashes in Python 2.7.3 for handler.setLevel(long)

2012-08-17 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo

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



[issue15694] link to file object glossary entry in open() and io docs

2012-08-17 Thread Éric Araujo

Éric Araujo added the comment:

LGTM.

--
nosy: +eric.araujo, pitrou

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



[issue15715] __import__ now raises with non-existing items in fromlist in 3.3

2012-08-17 Thread Brett Cannon

Brett Cannon added the comment:

We might be able to hide it in Python 3 since importlib.import_module() has 
been available since Python 3.1 (and 3.0 is dead anyway).

--

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




[issue15643] Support OpenCSW in setup.py

2012-08-17 Thread Éric Araujo

Éric Araujo added the comment:

+1

--
nosy: +eric.araujo

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



[issue15629] Run doctests in Doc/*.rst as part of regrtest

2012-08-17 Thread Terry J. Reedy

Terry J. Reedy added the comment:

On Windows, .rst files are not part of the install, so running doctests on .rst 
files cannot be a required part of the standard regrtest.

--
nosy: +terry.reedy
versions: +Python 3.4

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



[issue15031] Split .pyc parsing from module loading

2012-08-17 Thread Brett Cannon

Brett Cannon added the comment:

While thinking about terminology, source files/modules vs. bytecode 
files/modules make the distinction clear enough to differentiate just straight 
bytecode for an object (i.e. what dis outputs) vs. bytecode plsu the other 
stuff that goes with .pyc files.

--

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



[issue15640] Document importlib.abc.Finder as deprecated

2012-08-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4bbb1ff4f7ea by Brett Cannon in branch 'default':
Issue #15640: Document importlib.abc.Finder as deprecated.
http://hg.python.org/cpython/rev/4bbb1ff4f7ea

--
nosy: +python-dev

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



[issue15640] Document importlib.abc.Finder as deprecated

2012-08-17 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


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

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



[issue15636] base64.decodebytes is only available in Python3.1+

2012-08-17 Thread Éric Araujo

Éric Araujo added the comment:

3.0 is considered an alpha release by python-dev, is is not officially 
supported and is basically dead.  3.1 was released very soon after, mostly to 
fix the slow I/O.  That’s why the docs don’t detail what’s new in 3.1, as this 
version is considered the first Python 3 version.

If this explanation satisfies you, I will close this bug.  Thanks for the 
report anyway.

--
nosy: +eric.araujo
resolution:  - invalid
stage:  - committed/rejected
status: open - pending
versions:  -Python 3.1, Python 3.2, Python 3.3, Python 3.4

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



[issue15631] Python 3.3 beta 1 installation issue lib/lib64 folders

2012-08-17 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo

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



[issue15634] Add serialized decorator to the threading module

2012-08-17 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
title: synchronized decorator for the threading module - Add serialized 
decorator to the threading module

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



[issue15717] Mail System Error - Returned Mail

2012-08-17 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +loewis

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



[issue15717] Mail System Error - Returned Mail

2012-08-17 Thread Martin v . Löwis

Martin v. Löwis added the comment:

This is spam/a virus. Please don't just unlink the file, as it still remains 
accessible, and will ultimately result in Google (and perhaps other search 
engines) declare the bug tracker as a spam host.

Instead, the proper action is to select the mark as spam button on each file 
and each message (which I just did).

--

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



[issue15636] base64.decodebytes is only available in Python3.1+

2012-08-17 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Once a version goes off normal maintenance, we stop patching the manual except 
for changes related to security fixes. So the 3.1 manual is also frozen (except 
for possible security fixes). The same is true of 2.6 and will be true of 3.2 
when its final maintenance release comes out.

Andrew, we recommend that you ignore 3.0 even if you are trying to write 
multi-version 3.x code.

--
nosy: +terry.reedy
status: pending - closed

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



[issue15717] Mail System Error - Returned Mail

2012-08-17 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +eric.araujo

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



[issue15717] Mail System Error - Returned Mail

2012-08-17 Thread Éric Araujo

Éric Araujo added the comment:

It seems the spam controls are only accessible to tracker devs.  Is there a 
list somewhere to let bug triagers know who should be added to nosy to take 
action?

--

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



[issue15636] base64.decodebytes is only available in Python3.1+

2012-08-17 Thread R. David Murray

R. David Murray added the comment:

We have plenty of versionadded and versionchanged tags for 3.1 in the docs. 
 We should add one for this as well to the 3.2 and 3.3 docs.

--
nosy: +r.david.murray
resolution: invalid - 
stage: committed/rejected - needs patch
status: closed - open
type: enhancement - behavior
versions: +Python 3.2, Python 3.3

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



[issue15657] Error in Python 3 docs for PyMethodDef

2012-08-17 Thread Andrew Svetlov

Andrew Svetlov added the comment:

I think we can change PyCFunction_Call to accept METH_KEYWORDS as alias for 
METH_VARARGS | METH_KEYWORDS.
It cannot make incompatibility with existing code base.

--

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



[issue15717] Mail System Error - Returned Mail

2012-08-17 Thread Ezio Melotti

Ezio Melotti added the comment:

http://psf.upfronthosting.co.za/roundup/meta/issue120 should fix the problem.
Why did the message come from python-dev though?

--

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



[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-08-17 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Your OS and distribution/version might be relevant information.

--
nosy: +terry.reedy

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



[issue15717] Mail System Error - Returned Mail

2012-08-17 Thread R. David Murray

R. David Murray added the comment:

Because the spammer faked that address, presumably.

--
nosy: +r.david.murray

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



[issue15717] Mail System Error - Returned Mail

2012-08-17 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Éric, while issue 120 is being considered, I have given you the Coordinator. 
Use your new powers carefully :-)

--

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



[issue15660] In str.format there is a misleading error message about alignment

2012-08-17 Thread Terry J. Reedy

Terry J. Reedy added the comment:

As I read the docs, the error message is correct and this issue is invalid as a 
behavior issue. I read the OP's second message as more or less saying this also.

'='Forces the padding to be placed after the sign (if any) but before the 
digits. This is used for printing fields in the form ‘+00120’. This 
alignment option is only valid for numeric types.

If the width field is preceded by a zero ('0') character, this enables 
zero-padding. This is equivalent to an alignment type of '=' and a fill 
character of '0'.

So :02 is equivalent to :0=2, which is invalid.

 '{:02d}'.format(1)
'01'
works fine.

I decided make this a doc issue and add  for numeric types after this 
enables zero-padding before closing this.

--
assignee:  - docs@python
components: +Documentation -Interpreter Core
nosy: +docs@python, terry.reedy
versions: +Python 2.7, Python 3.3

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



[issue15694] link to file object glossary entry in open() and io docs

2012-08-17 Thread Antoine Pitrou

Antoine Pitrou added the comment:

LGTM too.

--

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



[issue15477] test_cmath failures on OS X 10.8

2012-08-17 Thread Trent Nelson

Trent Nelson added the comment:

I ran into this last night and posted to python-dev before realizing this bug 
had been raised: 
http://mail.python.org/pipermail/python-dev/2012-August/121359.html

I'll reproduce it here as I made a few observations that haven't yet been 
mentioned in this issue:


The Mountain Lion build slave I set up earlier this evening fails on
test_cmath:

==
FAIL: test_specific_values (test.test_cmath.CMathTests)
--
Traceback (most recent call last):
  File 
/Volumes/bay2/buildslave/cpython/2.7.snakebite-mountainlion-amd64/build/Lib/test/test_cmath.py,
 line 352, in test_specific_values
msg=error_message)
  File 
/Volumes/bay2/buildslave/cpython/2.7.snakebite-mountainlion-amd64/build/Lib/test/test_cmath.py,
 line 94, in rAssertAlmostEqual
'got {!r}'.format(a, b))
AssertionError: atan: atan(complex(0.0, 0.0))
Expected: complex(0.0, 0.0)
Received: complex(0.0, -0.0)
Received value insufficiently close to expected value.

Mountain Lion's atan/log1p appear to drop the negative sign when
passed in -0.0, whereas previous versions of OS X didn't:

Mountain Lion:
% ~/log1p-viper

log1p_drops_zero_sign_test:
atan2(log1p(-0.), -1.) != atan2(-0., -1.)
  3.14159 vs  -3.14159

atan_drops_zero_sign_test:
atan2(-0.,  0.): -0.0
atan2( 0., -0.): 3.14159
atan2(-0., -0.): -3.14159
atan2( 0.,  0.): 0.0
log1p(-0.):  0.0
log1p( 0.):  0.0

Lion:
% ./log1p

log1p_drops_zero_sign_test:
atan2(log1p(-0.), -1.) == atan2(-0., -1.)
  -3.14159 vs  -3.14159

atan_drops_zero_sign_test:
atan2(-0.,  0.): -0.0
atan2( 0., -0.): 3.14159
atan2(-0., -0.): -3.14159
atan2( 0.,  0.): 0.0
log1p(-0.):  -0.0
log1p( 0.):  0.0

(The C code for that is below.)

configure.ac already has a test for this (it makes mention of AIX
having similar behaviour), and the corresponding sysconfig entry
named 'LOG1P_DROPS_ZERO_SIGN' is already being used on a few tests,
i.e.:


  # The algorithm used for atan and atanh makes use of the system
  # log1p function; If that system function doesn't respect the sign
  # of zero, then atan and atanh will also have difficulties with
  # the sign of complex zeros.
  @requires_IEEE_754
  @unittest.skipIf(sysconfig.get_config_var('LOG1P_DROPS_ZERO_SIGN'),
   system log1p() function doesn't preserve the sign)
  def testAtanSign(self):
  for z in complex_zeros:
  self.assertComplexIdentical(cmath.atan(z), z)

  @requires_IEEE_754
  @unittest.skipIf(sysconfig.get_config_var('LOG1P_DROPS_ZERO_SIGN'),
   system log1p() function doesn't preserve the sign)
  def testAtanhSign(self):
  for z in complex_zeros:
  self.assertComplexIdentical(cmath.atanh(z), z)

Taking a look at cmath_testcases.txt, and we can see this:

-- These are tested in testAtanSign in test_cmath.py
-- atan atan 0.0 0.0 - 0.0 0.0
-- atan0001 atan 0.0 -0.0 - 0.0 -0.0
-- atan0002 atan -0.0 0.0 - -0.0 0.0
-- atan0003 atan -0.0 -0.0 - -0.0 -0.0

However, a few lines down, those tests crop up again:

-- special values
atan1000 atan -0.0 0.0 - -0.0 0.0
snip
atan1014 atan 0.0 0.0 - 0.0 0.0

which is what causes the current test failures.  I hacked
test_cmath.py a bit to spit out all the errors it finds after
it's finished parsing the test file (instead of bombing out on
the first one), and it yielded this:

FAIL: test_specific_values (test.test_cmath.CMathTests)
--
Traceback (most recent call last):
  File 
/Volumes/bay2/buildslave/cpython/3.2.snakebite-mountainlion-amd64/build/Lib/test/test_cmath.py,
 line 446, in test_specific_values
self.fail(\n.join(failures))
AssertionError: atan1000: atan(complex(-0.0, 0.0))
Expected: complex(-0.0, 0.0)
Received: complex(-0.0, -0.0)
Received value insufficiently close to expected value.
atan1014: atan(complex(0.0, 0.0))
Expected: complex(0.0, 0.0)
Received: complex(0.0, -0.0)
Received value insufficiently close to expected value.
atanh0225: atanh(complex(-0.0, 5.6067e-320))
Expected: complex(-0.0, 5.6067e-320)

[issue15660] In str.format there is a misleading error message about alignment

2012-08-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 85cd54b2d3a1 by Terry Jan Reedy in branch '2.7':
Issue 15660: Clarify 0 prefix for width field in str.format doc.
http://hg.python.org/cpython/rev/85cd54b2d3a1

New changeset 6bc14974024f by Terry Jan Reedy in branch '3.2':
Issue 15660: Clarify 0 prefix for width field in str.format doc.
http://hg.python.org/cpython/rev/6bc14974024f

New changeset f181dd088e63 by Terry Jan Reedy in branch 'default':
Merge with 3.2 #15660
http://hg.python.org/cpython/rev/f181dd088e63

--
nosy: +python-dev

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



[issue15660] In str.format there is a misleading error message about alignment

2012-08-17 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
resolution:  - fixed

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



[issue15660] Clarify 0 prefix for width specifier in str.format doc,

2012-08-17 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
stage: needs patch - committed/rejected
status: open - closed
title: In str.format there is a misleading error message about alignment - 
Clarify 0 prefix for width specifier in str.format doc,

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



[issue15660] Clarify 0 prefix for width specifier in str.format doc,

2012-08-17 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
assignee: docs@python - terry.reedy

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



[issue15623] Init time relative imports no longer work from __init__.so modules

2012-08-17 Thread Brett Cannon

Brett Cannon added the comment:

So I can't reproduce under 3.2. First off, building the example code in 
test.tgz fails thanks to __Py_ZeroStruct not being found (this is with using 
both an installed Python 3.2 and a checkout build).

Second, when I just make audioop a package in Python 3.2 it still grabs the 
__init__.py file, so I can't reproduce that way either.

Third, I hand-traced the import code starting in load_module() in Python 3.2 
and if you follow::

  import.c:load_module() -
  importdl.c:_PyImport_GetDynLoadFunc() -
  import.c:_PyImport_FixupExtensionUnicode()

you will find where a new module gets set in sys.modules (through 
PyImport_GetModuleDict()) and it's after the PyInit function for the extension 
module is called. So if there is some magical path that is deep in import.c 
that is setting the module in sys.modules when there is a __init__.py next to 
an __init__.so I will need someone who has actually made this work with an 
empty __init__.py figure out how it's all happening since 
_PyImport_GetDynLoadFunc() would short-circuit if the module was already in 
sys.modules and entirely skip executing the PyInit for the extension module.

Fourth, if you go with the work-around, Stefan, just make sure that on error 
anywhere in your PyInit you remove the module from sys.modules that you 
injected.

Because of all of this I am making this pending as won't fix. If someone can 
figure out what is happening in Python 3.2 I will leave it open until we decide 
how to handle this, else I will close this before rc1.

--
resolution:  - wont fix
status: open - pending

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



[issue15718] Possible OverflowError in __len__ method undocumented (when called via len() function)

2012-08-17 Thread Terry J. Reedy

Terry J. Reedy added the comment:

In #12159, Victor correctly labelled this an implementation (IE, CPython) 
detail (limitation). I don't believe any implementation has to limit the range 
of len(). So the question is whether we should add a CPython implementation 
limit note, including the possibility of OverflowError, and if so, to both 
len() and __len__() entries. I am not sure of the current doc policy.

The second sentence of the len entry is out of date.  The argument may be a 
sequence (string, tuple or list) or a mapping (dictionary). Sets and any 
collections with a size (__len__ method) can also be arguments. I am not sure 
how to revise that either.

--
nosy: +benjamin.peterson, georg.brandl, haypo, terry.reedy
stage:  - needs patch
versions: +Python 3.2, Python 3.3

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



[issue15307] Patch for --symlink support in pyvenv with framework python

2012-08-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4610ac42130e by Ned Deily in branch 'default':
Issue #15678: Fix menu customization for IDLE started from OS X
http://hg.python.org/cpython/rev/4610ac42130e

--

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



[issue15678] IDLE menu customization is broken from OS X command lines

2012-08-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4610ac42130e by Ned Deily in branch 'default':
Issue #15678: Fix menu customization for IDLE started from OS X
http://hg.python.org/cpython/rev/4610ac42130e

--
nosy: +python-dev

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



[issue15678] IDLE menu customization is broken from OS X command lines

2012-08-17 Thread Ned Deily

Ned Deily added the comment:

Applied for 3.3.0rc1

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

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



[issue15719] Sort dict items in urlencode()

2012-08-17 Thread Guido van Rossum

New submission from Guido van Rossum:

From http://mail.python.org/pipermail/python-dev/2012-August/121364.html :


I just fixed a unittest for some code used at Google that was
comparing a url generated by urllib.encode() to a fixed string. The
problem was caused by turning on PYTHONHASHSEED=1. Because of this,
the code under test would generate a textually different URL each time
the test was run, but the intention of the test was just to check that
all the query parameters were present and equal to the expected
values.

The solution was somewhat painful, I had to parse the url, split the
query parameters, and compare them to a known dict.

I wonder if it wouldn't make sense to change urlencode() to generate
URLs that don't depend on the hash order, for all versions of Python
that support PYTHONHASHSEED? It seems a one-line fix:

query = query.items()

with this:

query = sorted(query.items())

This would not prevent breakage of unit tests, but it would make a
much simpler fix possible: simply sort the parameters in the URL.


MvL's response 
(http://mail.python.org/pipermail/python-dev/2012-August/121366.html) seems to 
suggest that this can go in as a bugfix in 3.2 and later if augmented with a 
check for type(query) is dict and a check for whether dict hashing is enabled.

Does anyone want to turn this idea into a patch?

--
keywords: easy
messages: 168477
nosy: gvanrossum
priority: normal
severity: normal
status: open
title: Sort dict items in urlencode()
versions: Python 3.2, Python 3.3, Python 3.4

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



[issue15355] generator docs should mention already-executing exception

2012-08-17 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Good suggestion, David.  Here is such sample test code.  It is adapted from the 
sample code for ValueError: generator already executing included in PEP 255:

def test_gen(call_gen_method):
def gen():
call_gen_method(me)
yield 1
me = gen()

try:
me.__next__()
except Exception as e:
print(repr(e))

test_gen(lambda g: g.__next__())
test_gen(lambda g: g.send(1))
test_gen(lambda g: g.throw(OSError))
test_gen(lambda g: g.close())

This outputs:

ValueError('generator already executing',)
ValueError('generator already executing',)
ValueError('generator already executing',)
ValueError('generator already executing',)

--

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



[issue15719] Sort dict items in urlencode()

2012-08-17 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo

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



[issue15632] regrtest.py: spurious leaks with -R option

2012-08-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset dc18d73e67a5 by Stefan Krah in branch 'default':
Closes #15632: regrtest.py: fix spurious refleaks due to various caches
http://hg.python.org/cpython/rev/dc18d73e67a5

--
nosy: +python-dev
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-08-17 Thread Stefan Holek

Stefan Holek added the comment:

Mac OS X 10.6.8 (Snow Leopard)
Xcode Tools 3.2.6

./configure --prefix=/usr/local/python3.3
make
sudo make install

--

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



[issue15642] Integrate pickle protocol version 4 GSoC work by Stefan Mihaila

2012-08-17 Thread Alexandre Vassalotti

Changes by Alexandre Vassalotti alexan...@peadrop.com:


Added file: http://bugs.python.org/file26881/pickle4-2.diff

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



[issue15642] Integrate pickle protocol version 4 GSoC work by Stefan Mihaila

2012-08-17 Thread Alexandre Vassalotti

Changes by Alexandre Vassalotti alexan...@peadrop.com:


--
dependencies: +Unbinding of methods

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



[issue15599] test_circular_imports() of test_threaded_import fails on FreeBSD 9.0

2012-08-17 Thread Stefan Krah

Stefan Krah added the comment:

Reproduced by another FreeBSD bot:

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%20dtrace%203.x/builds/238/steps/test/logs/stdio

--

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



[issue15642] Integrate pickle protocol version 4 GSoC work by Stefan Mihaila

2012-08-17 Thread Alexandre Vassalotti

Changes by Alexandre Vassalotti alexan...@peadrop.com:


Removed file: http://bugs.python.org/file26881/pickle4-2.diff

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



[issue15642] Integrate pickle protocol version 4 GSoC work by Stefan Mihaila

2012-08-17 Thread Alexandre Vassalotti

Alexandre Vassalotti added the comment:

Oops, wrong patch. Uploading the right one.

--
Added file: http://bugs.python.org/file26882/pickle4-2.diff

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



[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-08-17 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I believe there are known problems with 3.3 and mac, so I added the mac experts.

--
nosy: +hynek, ned.deily, ronaldoussoren

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



[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-08-17 Thread Ned Deily

Ned Deily added the comment:

I took a quick look at the issue and I could reproduce by doing a make 
install of 3.3.0b1 then a build and make install of 3.3.0b2 in the same 
locations.  Doing a clean 3.3.0b2 build and install produce the expected 
results.  It appears to be a unix Makefile issue that shouldn't be unique to OS 
X.  I don't have time to look further into it right at the moment, though.  
(And I'm not sure what known problems with 3.3 and mac means; the buildbots 
are happy.)

--

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



[issue15694] link to file object glossary entry in open() and io docs

2012-08-17 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Thanks. Could either one of you commit this for me?

--

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



[issue15694] link to file object glossary entry in open() and io docs

2012-08-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1d5c451a1365 by R David Murray in branch '3.2':
#15694: Link discussion of file objects to glossary entry.
http://hg.python.org/cpython/rev/1d5c451a1365

New changeset 977606940531 by R David Murray in branch 'default':
Merge #15694: Link discussion of file objects to glossary entry.
http://hg.python.org/cpython/rev/977606940531

New changeset 083c37e75c49 by R David Murray in branch '3.2':
#15694: reflow paragraph.
http://hg.python.org/cpython/rev/083c37e75c49

New changeset d57ea50bc526 by R David Murray in branch 'default':
Merge #15694: reflow paragraph.
http://hg.python.org/cpython/rev/d57ea50bc526

--
nosy: +python-dev

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



[issue15694] link to file object glossary entry in open() and io docs

2012-08-17 Thread R. David Murray

R. David Murray added the comment:

Thanks, Chris.

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

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



[issue15355] generator docs should mention already-executing exception

2012-08-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset dc4b00f51c48 by R David Murray in branch '3.2':
#15355: Mention already-executing Exception in generator docs.
http://hg.python.org/cpython/rev/dc4b00f51c48

New changeset 73f1ba3319dd by R David Murray in branch 'default':
Merge #15355: Mention already-executing Exception in generator docs.
http://hg.python.org/cpython/rev/73f1ba3319dd

New changeset a62309ae88a2 by R David Murray in branch '2.7':
#15355: Mention already-executing Exception in generator docs.
http://hg.python.org/cpython/rev/a62309ae88a2

--
nosy: +python-dev

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



[issue15355] generator docs should mention already-executing exception

2012-08-17 Thread R. David Murray

R. David Murray added the comment:

Confirmed that 2.7 raises the same errors (as I expected) using your test.

Thanks, Chris.

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

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



[issue15636] base64.decodebytes is only available in Python3.1+

2012-08-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ca5b36754892 by R David Murray in branch '3.2':
#15636: add versionadded for decodebytes
http://hg.python.org/cpython/rev/ca5b36754892

New changeset a343fa692bb0 by R David Murray in branch 'default':
Merge #15636: add versionadded for decodebytes
http://hg.python.org/cpython/rev/a343fa692bb0

--
nosy: +python-dev

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



  1   2   >