[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-16 Thread Georg Brandl

Georg Brandl added the comment:

Paul, could you confirm that backing out the 2807a5f011e4 changeset on the 3.3 
branch fixes the problem?

--

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



[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-16 Thread Paul Moore

Paul Moore added the comment:

Georg - see http://bugs.python.org/issue20621#msg211209 for what I did. That 
shows backing out did *not* fix the issue. But I did backout on the default 
branch, and my backout may not have worked as I explained.

I just tried to do hg backout on the 3.3 branch and I got merge errors that I 
don't know how to fix.

I'm going to try hg checkout -r 88337 (that's the parent of the changeset you 
quoted) as am alternative approach. It'll take some time to set up the build 
tools I need. But if there's a better way of backing out as you want me to, let 
me know and I'll try that.

--

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



[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-16 Thread Georg Brandl

Georg Brandl added the comment:

Yeah, just tried the backout, it doesn't apply cleanly anymore -- 
Modules/zipimport.c has apparently changed some more afterwards.

I think using the parent changeset is the best thing to do at the moment, until 
Greg comes up with a patch.

--
assignee:  - gregory.p.smith

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



[issue6143] IDLE - an extension to clear the shell window

2014-02-16 Thread Tal Einat

Tal Einat added the comment:

FYI, with some help from Roger answering various questions, I've cooked up a 
version of ClearWindow supporting the current version of IDLE. This includes 
integration with the Squeezer extension.

I haven't tested it, however, nor written appropriate tests. I hope to do so in 
the coming days, and when I have I'll post a patch.

--

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



[issue20638] KeyError building the Python html doc with sphinx

2014-02-16 Thread Xavier de Gaye

New submission from Xavier de Gaye:

Occurs on the tip of the Python default branch on ArchLinux when running 'make 
html PYTHON=python2' from Doc/.
Traceback attached.

--
assignee: docs@python
components: Documentation
files: sphinx-err-DH3qAl.log
messages: 211311
nosy: docs@python, georg.brandl, xdegaye
priority: normal
severity: normal
status: open
title: KeyError building the Python html doc with sphinx
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file34098/sphinx-err-DH3qAl.log

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



[issue20638] KeyError building the Python html doc with sphinx

2014-02-16 Thread Georg Brandl

Georg Brandl added the comment:

Which revision is your tip?

In the latest revision, the documentation should refuse being built with 1.0.7.

--

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



[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-16 Thread Paul Moore

Paul Moore added the comment:

OK, confirmed.

Backing out to just before revision 2807a5f011e4 the problem has disappeared. 
Re-applying just 2807a5f011e4 causes the issue to appear again.

--

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



[issue20570] Bundle pip 1.5.3 in Python 3.4rc2

2014-02-16 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven added the comment:

Just to confirm that I, indeed, did not run into problems any more with RC1 
trying to upgrade setuptools.

--

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



[issue20637] Support key-sharing dictionaries in subclasses

2014-02-16 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Wow, really? Thanks for finding this!

--
nosy: +Mark.Shannon, benjamin.peterson, pitrou
stage:  - patch review

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



[issue20639] pathlib.PurePath.with_suffix() does not allow removing the suffix

2014-02-16 Thread July Tikhonov

July Tikhonov added the comment:

Proposed patch attached.

--
Added file: http://bugs.python.org/file34100/pathlib-with_suffix.diff

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



[issue20639] pathlib.PurePath.with_suffix() does not allow removing the suffix

2014-02-16 Thread July Tikhonov

New submission from July Tikhonov:

The changeset ef2b2ddd27c8 restricted the argument of Path.with_suffix() too 
much, and caused some strange behavior.

Case 1: removing suffix completely is disallowed now.
The following code worked before the fix:

 pathlib.PurePath('a', 'b.c').with_suffix('')
PurePosixPath('a/b')

but now fails with ValueError:

 pathlib.PurePath('a', 'b.c').with_suffix('')
Traceback (most recent call last):
  File stdin, line 1, in module
  File /home/july/source/python/Lib/pathlib.py, line 760, in with_suffix
raise ValueError(Invalid suffix %r % (suffix))
ValueError: Invalid suffix ''

It was the only one obvious way of removing the suffix, and I think it should 
remain so. (BTW: There is a XXX note in the code questioning if 
Path.with_suffix(None) should remove the suffix.)

Case 2: while the output is now always a correct Path, the suffix can still 
contain separator.
The following code produced incorrect path before the fix:

 pathlib.PurePath('a', 'b.c').with_suffix('./.s/.')
PurePosixPath('a/b./.s/.')
 _.parts
('a', 'b./.s/.')

Now, the produced path is correct, but the code itself is still allowed:

 pathlib.PurePath('a', 'b.c').with_suffix('./.s/.')
PurePosixPath('a/b.s')

while I would expect it to fail with ValueError.

Attached: proposed test patch.

--
components: Library (Lib)
files: pathlib-with_suffix-test.diff
keywords: patch
messages: 211316
nosy: july, pitrou
priority: normal
severity: normal
status: open
title: pathlib.PurePath.with_suffix() does not allow removing the suffix
type: behavior
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file34099/pathlib-with_suffix-test.diff

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



[issue20570] Bundle pip 1.5.3 in Python 3.4rc2

2014-02-16 Thread Nick Coghlan

Nick Coghlan added the comment:

Donald, since you haven't been through an RC period before - just a reminder 
that Larry is going to need time to cherry pick the update into the release 
clone before rc2 on the 23rd.

--

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



[issue16728] Missing cross-reference in sequence glossary entry

2014-02-16 Thread A.M. Kuchling

Changes by A.M. Kuchling a...@amk.ca:


--
stage: needs patch - commit review

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



[issue20640] Adds idle test for configHelpSourceEdit

2014-02-16 Thread Saimadhav Heblikar

New submission from Saimadhav Heblikar:

This patch adds tests for Idle's configHelpSourceEdit.py module.

There is however, a minor issue related to this patch,which is an attribute 
error occurring due to lines 108,115,128,139 on 
http://hg.python.org/cpython/file/eef7899ea7ab/Lib/idlelib/configHelpSourceEdit.py
 
The error occurring is an attribute error,wherein 'entryMenu' and 'entryPath' 
attributes are not found. Clearly,the two attributes are created in 
CreateWidgets() defined on lines 52 and 57.
Other attributes defined in the same CreateWidgets() like menu and path dont 
raise any attribute error.

I have asked the same in irc,where i was advised to post this patch with the 
issue mentioned.

Bear with me,i have tried a lot to overcome this issue,but no avail.Please let 
me know how to fix this.

The test other than this issue,should integrate well.

--
components: IDLE, Tests
files: idle-test-config-help-source.patch
keywords: patch
messages: 211319
nosy: sahutd, serhiy.storchaka, taleinat, terry.reedy
priority: normal
severity: normal
status: open
title: Adds idle test for configHelpSourceEdit
versions: Python 3.4
Added file: http://bugs.python.org/file34101/idle-test-config-help-source.patch

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



[issue20637] Support key-sharing dictionaries in subclasses

2014-02-16 Thread Mark Shannon

Mark Shannon added the comment:

Well spotted.

I don't think that the line 
COPYVAL(tp_dictoffset);
should be removed.

inherit_special() is called from PyType_Ready
which is used to initialise static TypeObjects.
So builtin class B which doesn't set tp_dictoffset,
but has builtin class A as its base, will not get its
tp_dictoffset initialized from A.

--

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



[issue13663] pootle.python.org is outdated.

2014-02-16 Thread Benjamin Peterson

Benjamin Peterson added the comment:

pootle.python.org has been disabled.

--
nosy: +benjamin.peterson
resolution:  - wont fix
status: open - closed

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



[issue20640] Adds idle test for configHelpSourceEdit

2014-02-16 Thread Todd Rovito

Changes by Todd Rovito rovit...@rovitotv.org:


--
nosy: +Todd.Rovito

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



[issue12211] Better document math.copysign behavior.

2014-02-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3ad7725b5013 by Andrew Kuchling in branch '3.3':
#12211: clarify math.copysign() documentation and docstring
http://hg.python.org/cpython/rev/3ad7725b5013

--
nosy: +python-dev

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



[issue9009] Improve quality of Python/dtoa.c

2014-02-16 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
resolution:  - wont fix
status: open - closed

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



[issue12211] Better document math.copysign behavior.

2014-02-16 Thread A.M. Kuchling

A.M. Kuchling added the comment:

Applied.  I added two sentences describing the NaN behaviour.

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

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



[issue12211] Better document math.copysign behavior.

2014-02-16 Thread Mark Dickinson

Mark Dickinson added the comment:

The paragraph about NaNs isn't correct.  For example:

 from math import copysign
 copysign(1.0, float('nan'))
1.0
 copysign(1.0, -float('nan'))
-1.0

Though it doesn't really make sense to talk about 'positive' or 'negative' 
NaNs, a NaN still has a sign bit, and that sign bit is used in the copysign 
operation.

--

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



[issue12211] Better document math.copysign behavior.

2014-02-16 Thread A.M. Kuchling

A.M. Kuchling added the comment:

OK; I'll just drop the 'If y is NaN' sentence.

--

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



[issue12211] Better document math.copysign behavior.

2014-02-16 Thread Mark Dickinson

Mark Dickinson added the comment:

More examples, showing that `y` is not ignored when `x` is a NaN.

 result1 = copysign(float('nan'), 1.0)
 result2 = copysign(float('nan'), -1.0)
 copysign(1.0, result1)  # result1 is a NaN whose sign bit is cleared.
1.0
 copysign(1.0, result2)  # result2 is a NaN whose sign bit is set.
-1.0

--

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



[issue12211] Better document math.copysign behavior.

2014-02-16 Thread A.M. Kuchling

A.M. Kuchling added the comment:

Actually ISTM the 'if x is NaN' sentence can also go; it seems to just copy the 
sign bit no matter what x and y are.

 from math import *
 nan = float('nan')
 neg = -nan
 copysign(+1, copysign(nan, neg))
-1.0

--

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



[issue16278] Improve os.rename documentation and tests

2014-02-16 Thread Terry J. Reedy

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


--
assignee: docs@python - 
components: +Library (Lib), Tests
nosy: +loewis
title: os.rename documentation slightly inaccurate - Improve os.rename 
documentation and tests

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



[issue12211] Better document math.copysign behavior.

2014-02-16 Thread Mark Dickinson

Mark Dickinson added the comment:

 It seems to just copy the sign bit no matter what x and y are.

Yep, that's exactly what happens.  The sign bit from y just gets blindly 
transferred to x, with no regard to any meaning of x or y.  So it works exactly 
the same way for zeros, NaNs, infinities, or whatever.

--

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



[issue16251] pickle special methods are looked up on the instance rather than the type

2014-02-16 Thread Simon Cross

Simon Cross added the comment:

Genshi is affected by the 3.4 regression too (it has a class that defines 
__getnewargs__ and __getattr__).

--
nosy: +hodgestar

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



[issue12211] Better document math.copysign behavior.

2014-02-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b01f4ed077fa by Andrew Kuchling in branch '3.3':
#12211: remove paragraph about NaNs
http://hg.python.org/cpython/rev/b01f4ed077fa

--

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



[issue16251] pickle special methods are looked up on the instance rather than the type

2014-02-16 Thread Simon Cross

Simon Cross added the comment:

I have an ugly work-around for those affected:

def __getattr__(self, name):
# work around for pickle bug in Python 3.4
# see http://bugs.python.org/issue16251
if name == __getnewargs_ex__:
raise AttributeError(%r has no attribute %r % (type(self), name))
...

--

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



[issue12211] Better document math.copysign behavior.

2014-02-16 Thread Mark Dickinson

Mark Dickinson added the comment:

Thanks!  (And apologies for the nitpicking.)

--

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



[issue20570] Bundle pip 1.5.3 in Python 3.4rc2

2014-02-16 Thread Donald Stufft

Donald Stufft added the comment:

Yea, I'll get it done. Was planning on doing it this weekend but I had a 
medical issue. I'll see about getting all the things get done asap.

--

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



[issue20414] Python 3.4 has two Overlapped types

2014-02-16 Thread Martin v . Löwis

Martin v. Löwis added the comment:

I fail to see the relevant difference between overlapped_dealloc.patch and 
overlapped_dealloc-2.patch. What I was asking was that

   default:

be replaced with

  case ERROR_IO_INCOMPLETE:

and a new

  default:

be added that handles all other errors.

--

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



[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-16 Thread Gregory P. Smith

Changes by Gregory P. Smith g...@krypto.org:


Added file: http://bugs.python.org/file34103/issue20621-34-rollbacks-gps01.diff

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



[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-16 Thread Gregory P. Smith

Gregory P. Smith added the comment:

if you look at the zipimport.c file log there was one additional tiny change to 
fix a potential memory leak made after the change I suggested backing out:
http://hg.python.org/cpython/log/fb5f4cfc3230/Modules/zipimport.c

anyways, yes, backing up to the change before the ones i suggested backing out 
is the right thing to do.  patches attached though I don't have a reproduction 
case to confirm the problem and subsequent lack of problem yet.

--
keywords: +patch
Added file: http://bugs.python.org/file34102/issue20621-33-rollbacks-gps01.diff

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



[issue20241] Bad reference to RFC in document of ipaddress?

2014-02-16 Thread Berker Peksag

Berker Peksag added the comment:

This was also fixed in default: http://hg.python.org/cpython/rev/2d62ee3c7617

--
nosy: +berker.peksag
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue20640] Adds idle test for configHelpSourceEdit

2014-02-16 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The new file is modeled on test_config_name.py, as appropriate. I think this 
was a good choice for a first test file. The complication you stumbled across 
is that the config help-source dialog has two entry boxes, whereas the config 
name dialog only has one. Therefore, the help-source check functions set the 
focus to the appropriate box when detecting an error, whereas the focus remains 
on the one box when the name check function detects an error.

Problem: the assertEquals on lines 41, 47, 57, and 64 in the test file fail 
with AttributeErrors attributed to lines 108, 115, 128, and 139 in the module. 
The failing module lines all look like
   self.entry(Menu/Path).focus_set()

Reason: The error message is 'dummy_helpsource_dialog' object has no attribute 
'entry(Menu/Path)'. This is true: the *dummy class instances* do not have such 
attributes.

Solution: add a mock Entry class to mock_tk with a dummy .focus_set method. Add 
mock Entry instances to dummy_helpsource_dialog as .entryMenu and .entryPath 
attributes. Tests now run. See 3.3 patch, which should almost work on 2.7.

I still have to review the actual tests, but I anticipate applying this with 
whatever additional changes I think are needed.

Also, when I added test_config_name.py in #18130, rev84040, I found and fixed a 
buglet in method NameOk(), now name_ok(), and otherwise brought the module code 
up to PEP8 standards. I want to check that MenuOk and PathOk do not have a 
similar buglet, and look at the style also.

--
stage:  - patch review
type:  - enhancement
versions: +Python 2.7, Python 3.3
Added file: http://bugs.python.org/file34104/test-help-source.diff

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



[issue16251] pickle special methods are looked up on the instance rather than the type

2014-02-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b328f8ccbccf by Benjamin Peterson in branch 'default':
look up __getnewargs__ and __getnewargs_ex__ on the object type (#16251)
http://hg.python.org/cpython/rev/b328f8ccbccf

--
nosy: +python-dev

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



[issue20261] Cannot pickle some objects that have a __getattr__()

2014-02-16 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Fixed. Should be in 3.4.0.

I'll deal with #16251 in 3.5.

--
assignee: docs@python - larry
nosy: +benjamin.peterson, larry
priority: normal - release blocker
superseder: pickle special methods are looked up on the instance rather than 
the type - 
versions:  -Python 2.7, Python 3.1, Python 3.2, Python 3.3

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



[issue20261] Cannot pickle some objects that have a __getattr__()

2014-02-16 Thread Benjamin Peterson

Benjamin Peterson added the comment:

(See http://hg.python.org/cpython/rev/b328f8ccbccf)

--

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



[issue16251] pickle special methods are looked up on the instance rather than the type

2014-02-16 Thread Benjamin Peterson

Changes by Benjamin Peterson bp+pyb...@benjamin-peterson.org:


--
assignee: eric.snow - benjamin.peterson
versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3, Python 3.4

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



[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-16 Thread Paul Moore

Paul Moore added the comment:

OK, I can confirm that both the patches fix the issue when applied to the 
relevant branches.

--

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



[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-16 Thread Georg Brandl

Georg Brandl added the comment:

OK. What do you think about rolling a 3.3.5 rc1 release next weekend, with the 
final a week later?

--

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



[issue20570] Bundle pip 1.5.3 in Python 3.4rc2

2014-02-16 Thread Donald Stufft

Donald Stufft added the comment:

I put out the email that I'll be rolling 1.5.3 tues/weds of next week (so 18th 
or 19th). Hopefully that's a reasonable time schedule.

--

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



[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-02-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3dd8b0d31543 by Benjamin Peterson in branch '2.7':
backout #19081 to fix #20621
http://hg.python.org/cpython/rev/3dd8b0d31543

--

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



[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5330de5c9d2d by Benjamin Peterson in branch '3.3':
backout 2807a5f011e4 for causing #20621
http://hg.python.org/cpython/rev/5330de5c9d2d

New changeset 52ab9e1ff46a by Benjamin Peterson in branch 'default':
merge backout for #20621
http://hg.python.org/cpython/rev/52ab9e1ff46a

New changeset 3dd8b0d31543 by Benjamin Peterson in branch '2.7':
backout #19081 to fix #20621
http://hg.python.org/cpython/rev/3dd8b0d31543

--
nosy: +python-dev

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



[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-16 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Okay, I backed out the world.

--
nosy: +benjamin.peterson

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



[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-02-16 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Note everything was backed out for #19081.

--
nosy: +benjamin.peterson

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



[issue20635] Fix the grid geometry manager and add tests for geometry managers

2014-02-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

My fault. I tested the patch with 8.5 and 8.6, but was too lazy to check it 
with 8.4. Here is updated patch with workarounded 8.4 peculiarities.

I'm not sure about test_place_forget(). I have removed the check, hope this 
will help.

Thank you Ned.

--
Added file: http://bugs.python.org/file34105/test_geometry_managers_2.patch

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



[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-02-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 10f09881320d by Benjamin Peterson in branch '2.7':
finish backing out #19081
http://hg.python.org/cpython/rev/10f09881320d

--

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



[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-02-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3350c6b7aa28 by Benjamin Peterson in branch '2.7':
remove tests for #19081
http://hg.python.org/cpython/rev/3350c6b7aa28

--

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



[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-02-16 Thread Gregory P. Smith

Gregory P. Smith added the comment:

What do you mean by everything? How much did you back out?  I *ONLY* wanted 
the patches I posted in 20621 backed out as those were the source of the 
problem.

The changes made on 2014-01-06 and 2014-01-07 were good even though they only 
addressed part of the problem (as identified in my 2014-01-21 comment).

Also, as there is no 2.7 release imminent I wish you would've left the problem 
alone in 2.7 for me to FIX the problem instead of having to reapply the whole 
set.  Too late now. :(

--

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



[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-02-16 Thread Benjamin Peterson

Benjamin Peterson added the comment:

In 2.7, I backed out 8dbf8edb7128 - f9c54ada1b32 in zipimport. Most of the 
commits mentioned this issue, so I assumed they were related. I apologize if 
that was too much. It was quite messy with all the subsequent fixups with the 
original commit.

--

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



[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-02-16 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Anyway, isn't the change 20b77ff040b6 on Jan 07 exactly what is backed out in 
the patch on #20621?

--

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



[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-02-16 Thread Benjamin Peterson

Benjamin Peterson added the comment:

On 3.3/default, d28242a636c7, 2807a5f011e4, fafac90b69c4 were removed.

--

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



[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-16 Thread Gregory P. Smith

Gregory P. Smith added the comment:

Confirmed that Modules/zipimport.c in the 3.3 and default branches is identical 
to the version from late last year.  Both should be good for 3.3.5 and 3.4.0 
releases.

--

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



[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-02-16 Thread Gregory P. Smith

Gregory P. Smith added the comment:

At this point i'll be reapplying things since 8dbf8edb7128 to 2.7 and trying to 
untangle where the problem came in.  I confirmed with diff that you've backed 
everything out to the pre-January state in all branches.

I've had part of those 2.7 patches deployed on 100,000 machines for many months 
with a zipped up standard library though the remaining bug causing the fix to 
not work in several situations mentioned in 
http://bugs.python.org/issue19081#msg208754 is still present in what i'm 
running.

Thanks for the rollbacks to unblock 3.3 and 3.4!

--
priority: deferred blocker - high
versions: +Python 2.7, Python 3.5

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



[issue20517] Support errors with two filenames for errno exceptions

2014-02-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I think it is worth to mention this in Doc/whatsnew/3.4.rst, as this is a 
little incompatible change.

Python 3.3:

 x = OSError(2, 'No such file or directory', 'foo', 0, 'bar')
 x.args
(2, 'No such file or directory', 'foo', 0, 'bar')

Python 3.4:

 x = OSError(2, 'No such file or directory', 'foo', 0, 'bar')
 x.args
(2, 'No such file or directory')

--

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



[issue20637] Support key-sharing dictionaries in subclasses

2014-02-16 Thread Peter Ingebretson

Peter Ingebretson added the comment:

Thanks Mark, I agree.

I thought that assigning to tp_dictoffset in inherit_special was redundant with 
the assignment in inherit_slot and the assignment I added, but I see that 
COPYSLOT and COPYVAL are slightly different and extension types won't go 
through type_new.

Here's an updated patch.

--
Added file: http://bugs.python.org/file34106/subclass-keys-pep-412.patch

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



[issue20627] Add context manager support to xmlrpc.client.ServerProxy

2014-02-16 Thread Claudiu.Popa

Claudiu.Popa added the comment:

Hi. Here's a simple patch for this.

--
keywords: +patch
nosy: +Claudiu.Popa
Added file: http://bugs.python.org/file34107/xmlrpc.patch

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



[issue20641] Python installer needs elevated rights to install pip

2014-02-16 Thread Patrick Westerhoff

New submission from Patrick Westerhoff:

When installing Python 3.4 with the MSI, you can choose to install pip as part 
of the setup. With activated UAC on Windows (which is the recommended default), 
the installer will ask for elevated rights during the setup to copy the files 
over to the installation directory.

However, when the setup then attempts to install pip, the Python interpreter 
running the `ensurepip` library to install it is *not* run with elevated 
rights. This obviously results in a permission error when it then tries to copy 
over pip into the `\Scripts\` install directory.

This is similar to the advanced installer option “Compile .py files to byte 
code”, which has been failing forever because of the same problem. But now, 
with pip, this is an actual problem.

I suggest that you either run the pip install process from within the elevated 
setup, inheriting the rights—if that’s even possible—or explicitely request 
elevated rights for it again.

--
components: Windows
messages: 211360
nosy: poke
priority: normal
severity: normal
status: open
title: Python installer needs elevated rights to install pip
versions: Python 3.4

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



[issue20637] Support key-sharing dictionaries in subclasses

2014-02-16 Thread Andreas Stührk

Changes by Andreas Stührk andy-pyt...@hammerhartes.de:


--
nosy: +Trundle

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



[issue20628] csv.DictReader

2014-02-16 Thread Roger Erens

Roger Erens added the comment:

I did not fully realize the meaning of it being a sequence as it is referred to 
a little later indeed. Which implies both a tuple and a list can be used, 
right? So then the patch might look like:

+   The *fieldnames* parameter is a list or tuple of keys used for the dict.

--

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



[issue20642] Enhance deepcopy-ing for tuples

2014-02-16 Thread Claudiu.Popa

New submission from Claudiu.Popa:

Hello!

Here's a patch for improving the performance of tuple deepcopy-ing.

Without patch:

# ./python -m timeit -s import copy; a=tuple(range(100)) -p 
copy.deepcopy(a)
10 loops, best of 3: 1.45 sec per loop

With patch:

# ./python -m timeit -s import copy; a=tuple(range(100)) -p 
copy.deepcopy(a)
10 loops, best of 3: 1.32 sec per loop

--
components: Library (Lib)
files: copy.patch
keywords: patch
messages: 211362
nosy: Claudiu.Popa, alexandre.vassalotti
priority: normal
severity: normal
status: open
title: Enhance deepcopy-ing for tuples
type: performance
versions: Python 3.5
Added file: http://bugs.python.org/file34108/copy.patch

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



[issue20628] csv.DictReader

2014-02-16 Thread Sean Rodman

Sean Rodman added the comment:

It looks like you are right. I have updated the patch to reflect that it could 
be a list or a tuple.

--
Added file: http://bugs.python.org/file34109/DictReader_DictWriter_2.patch

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



[issue20628] csv.DictReader

2014-02-16 Thread Sean Rodman

Changes by Sean Rodman srodman7...@gmail.com:


Removed file: http://bugs.python.org/file34084/DictReader_DictWriter.patch

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



[issue20643] Strange dot in documentation (after generator.close)

2014-02-16 Thread Vladimir Rutsky

New submission from Vladimir Rutsky:

In 3.4 docs after generator.close() description there is strange dot:
http://docs.python.org/3.4/reference/expressions.html#generator.close

Looks like it's due to following code in Doc/reference/expressions.rst:452:

.. class:: .

This line should be removed.

--
assignee: docs@python
components: Documentation
messages: 211364
nosy: docs@python, rutsky
priority: normal
severity: normal
status: open
title: Strange dot in documentation (after generator.close)
versions: Python 3.4

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



[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-16 Thread Paul Moore

Paul Moore added the comment:

Can anyone confirm if this is a Windows-only issue? I need to know whether I 
should block Python 3.3.4 in virtualenv for everyone, or just for Windows.

I only have Windows I can test on.

--

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



[issue20644] OS X installer build broken by changes to documentation build

2014-02-16 Thread Ned Deily

New submission from Ned Deily:

eef7899ea7ab introduces changes to the documentation build process which 
inadvertently breaks OS X installer builds.  See, for example:

http://buildbot.python.org/all/builders/bolen-dmg-3.x/builds/513

Mac/BuildInstaller/build-installer.py should be modified to accommodate the 
changes and, if necessary, the dmg buildbot updated.

BTW, the above change should not be cherry-picked into 3.4 until this issue is 
addressed.

--
assignee: ned.deily
components: Build, Macintosh
messages: 211365
nosy: georg.brandl, ned.deily
priority: deferred blocker
severity: normal
stage: needs patch
status: open
title: OS X installer build broken by changes to documentation build
versions: Python 3.5

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



[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-16 Thread Gregory P. Smith

Gregory P. Smith added the comment:

I believe this happens on all platforms.

--

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



[issue20616] Add tracemalloc.Traceback.format() method

2014-02-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d50a95fab002 by Victor Stinner in branch 'default':
Issue #20616: Add a format() method to tracemalloc.Traceback.
http://hg.python.org/cpython/rev/d50a95fab002

--
nosy: +python-dev

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



[issue20614] test.script_helper should copy SYSTEMROOT environment variable for __cleanenv=True

2014-02-16 Thread STINNER Victor

STINNER Victor added the comment:

Serhiy Interesting, how isolation mode works on Windows or if Python is 
compiled in shared module? Should we keep these environment variables if the 
__isolated keyword is used?

The __isolated parameter of script_helper._assert_python() don't start Python 
with an empty environment, it only adds -I to the command line.

There is a single test which uses __cleanenv=True: test_hash.

Arfrever The name of variable is specific to operating system.

Ah yes, right. It's probably safe to copy all these environment variables 
without taking care of the operating system.

--

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



[issue20641] Python installer needs elevated rights to install pip

2014-02-16 Thread Ned Deily

Ned Deily added the comment:

Elevating to release blocker pending evaluation by Martin et al.

--
nosy: +larry, loewis, ncoghlan, ned.deily
priority: normal - release blocker

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



[issue20614] test.script_helper should copy SYSTEMROOT environment variable for __cleanenv=True

2014-02-16 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



[issue20320] select.select(timeout) and select.kqueue.control(timeout) must round the timeout to the upper bound

2014-02-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 180e4b678003 by Victor Stinner in branch 'default':
Issue #20320: select.select() and select.kqueue.control() now round the timeout
http://hg.python.org/cpython/rev/180e4b678003

--
nosy: +python-dev

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



[issue20320] select.select(timeout) and select.kqueue.control(timeout) must round the timeout to the upper bound

2014-02-16 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
resolution:  - fixed
status: open - closed

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



[issue20511] asyncio: StreamReader should use bytearray for its internal buffer

2014-02-16 Thread STINNER Victor

STINNER Victor added the comment:

The issue has been fixed.

changeset:   88979:260d6e1e9b0f
user:Yury Selivanov yseliva...@sprymix.com
date:Wed Feb 05 18:11:13 2014 -0500
files:   Lib/asyncio/streams.py Lib/test/test_asyncio/test_streams.py
description:
asyncio.streams: Use bytebuffer in StreamReader; Add assertion in feed_data

--
resolution:  - fixed
status: open - closed

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



[issue20645] 3.4 cherry-pick: 1166b3321012 Revert changes of issue #19466 (clear thread state earlier)

2014-02-16 Thread STINNER Victor

New submission from STINNER Victor:

I modified Python shutdown process in issue #19466 to clear Python thread state 
earlier, but it introduced a regression: #20526. So I simply reverted my 
changes until the real bugs are fixed.

Changeset of the revert: 1166b3321012.

--
assignee: larry
messages: 211373
nosy: haypo, larry
priority: release blocker
severity: normal
status: open
title: 3.4 cherry-pick: 1166b3321012 Revert changes of issue #19466 (clear 
thread state earlier)
versions: Python 3.4

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



[issue20646] 3.4 cherry-pick: 180e4b678003 select and kqueue round the timeout aways from zero

2014-02-16 Thread STINNER Victor

New submission from STINNER Victor:

In Python 3.4, poll and epoll were modified to round the timeout away from zero 
to fix a performance issue in asyncio. I also modified select and kqueue for 
the same reason.

changeset:   89230:180e4b678003
tag: tip
user:Victor Stinner victor.stin...@gmail.com
date:Mon Feb 17 00:02:43 2014 +0100
files:   Include/pytime.h Lib/test/test_time.py Misc/NEWS 
Modules/_datetimemodule.c Modules/_testcapimod
description:
Issue #20320: select.select() and select.kqueue.control() now round the timeout
aways from zero, instead of rounding towards zero.

It should make test_asyncio more reliable, especially test_timeout_rounding() 
test.

--
assignee: larry
messages: 211374
nosy: haypo, larry
priority: release blocker
severity: normal
status: open
title: 3.4 cherry-pick: 180e4b678003 select and kqueue round the timeout aways 
from zero
versions: Python 3.4

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



[issue20647] 3.4 cherry-pick: d50a95fab002 add tracemalloc.Traceback.format() method

2014-02-16 Thread STINNER Victor

New submission from STINNER Victor:

As the author of the new tracemalloc of Python 3.4, I would to see this new 
method in Python 3.4 final. See issue #20616 for more information.

changeset:   89229:d50a95fab002
user:Victor Stinner victor.stin...@gmail.com
date:Sun Feb 16 23:53:38 2014 +0100
files:   Doc/library/tracemalloc.rst Lib/test/test_tracemalloc.py 
Lib/tracemalloc.py Misc/NEWS
description:
Issue #20616: Add a format() method to tracemalloc.Traceback.

--
assignee: larry
messages: 211375
nosy: haypo, larry
priority: release blocker
severity: normal
status: open
title: 3.4 cherry-pick: d50a95fab002 add tracemalloc.Traceback.format() method
versions: Python 3.4

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



[issue20637] Support key-sharing dictionaries in subclasses

2014-02-16 Thread Mark Shannon

Mark Shannon added the comment:

This looks good to me.

Also, I think this should go into 3.4
It is a tiny patch and could result in significant memory saving for OO 
programs with inheritance (e.g. Django)

--

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



[issue20637] Support key-sharing dictionaries in subclasses

2014-02-16 Thread STINNER Victor

STINNER Victor added the comment:

 Also, I think this should go into 3.4

I think that it's too late for optimizations in Python 3.4 (RC1 is alread out). 
It can wait Python 3.5, or maybe 3.4.1.

--
nosy: +haypo

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



[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-16 Thread Paul Moore

Paul Moore added the comment:

Will someone make sure this gets logged the way it needs to for Larry's 3.4rc2 
cherrypick process? Ta.

--

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



[issue20648] 3.4 cherry-pick: multiple changesets for asyncio

2014-02-16 Thread STINNER Victor

New submission from STINNER Victor:

I consider that it's not too late to include these changes to Python 3.4 final 
because asyncio module is new in Python 3.4. Very few people outside asyncio 
developers are testing asyncio, so it's not surprising to see these changes 
only recently. asyncio received a lot of love recently, and it was even more 
improved.

Most recent to oldest.

changeset:   89183:3b0a1b3c0022
user:Victor Stinner victor.stin...@gmail.com
date:Thu Feb 13 10:46:05 2014 +0100
files:   Lib/test/test_asyncio/test_events.py
description:
Fix test_asyncio/test_events.py: skip IPv6 if IPv6 is disabled on the host


changeset:   89179:95de14f53cf5
user:Victor Stinner victor.stin...@gmail.com
date:Thu Feb 13 09:24:37 2014 +0100
files:   Doc/library/asyncio-eventloop.rst Lib/asyncio/base_events.py 
Lib/asyncio/proactor_events.py Lib
description:
ayncio, Tulip issue 129: BaseEventLoop.sock_connect() now raises an error if
the address is not resolved (hostname instead of an IP address) for AF_INET and
AF_INET6 address families.


changeset:   89176:6e04027ed53e
user:Guido van Rossum gu...@python.org
date:Wed Feb 12 17:58:19 2014 -0800
files:   Lib/asyncio/tasks.py Lib/test/test_asyncio/test_tasks.py
description:
asyncio: Change as_completed() to use a Queue, to avoid O(N**2) behavior. Fixes 
issue #20566.


changeset:   89175:920304e1f36b
user:Yury Selivanov yseliva...@sprymix.com
date:Wed Feb 12 17:01:52 2014 -0500
files:   Lib/asyncio/events.py
description:
asyncio.events: Use __slots__ in Handle and TimerHandle


changeset:   89157:2ba583191550
user:Victor Stinner victor.stin...@gmail.com
date:Tue Feb 11 18:40:56 2014 +0100
files:   Lib/test/test_asyncio/test_events.py
description:
Issue #20495: Skip test_read_pty_output() of test_asyncio on FreeBSD older than
FreeBSD 8


changeset:   89147:15a6be05e970
user:Victor Stinner victor.stin...@gmail.com
date:Tue Feb 11 11:54:08 2014 +0100
files:   Lib/asyncio/tasks.py Lib/test/test_asyncio/test_tasks.py
description:
asyncio, Tulip issue 131: as_completed() and wait() now raises a TypeError if
the list of futures is not a list but a Future, Task or coroutine object


changeset:   89146:f729e9ee5dfc
user:Victor Stinner victor.stin...@gmail.com
date:Tue Feb 11 11:44:56 2014 +0100
files:   Lib/asyncio/base_events.py Lib/asyncio/subprocess.py 
Lib/test/test_asyncio/test_base_events.py
description:
asyncio, Tulip issue 130: Add more checks on subprocess_exec/subprocess_shell
parameters


changeset:   89145:3ba4742a6fde
user:Victor Stinner victor.stin...@gmail.com
date:Tue Feb 11 11:34:30 2014 +0100
files:   Lib/asyncio/base_events.py Lib/asyncio/test_utils.py 
Lib/test/test_asyncio/test_base_events.py 
description:
asyncio, Tulip issue 126: call_soon(), call_soon_threadsafe(), call_later(),
call_at() and run_in_executor() now raise a TypeError if the callback is a
coroutine function.


Changesets related to debug can be ignored (03cb6ddc7040, 9c1840e8d643, 
a631b01d1715, 360976a6d8b9).

--
assignee: larry
messages: 211379
nosy: gvanrossum, haypo, larry, yselivanov
priority: normal
severity: normal
status: open
title: 3.4 cherry-pick: multiple changesets for asyncio
versions: Python 3.4

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



[issue20648] 3.4 cherry-pick: multiple changesets for asyncio

2014-02-16 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
priority: normal - release blocker

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



[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-16 Thread STINNER Victor

STINNER Victor added the comment:

Does anyone know how to write a unit test to ensure that the regression will 
not be reintroduced later?

--
nosy: +haypo

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



[issue20648] 3.4 cherry-pick: multiple changesets for asyncio

2014-02-16 Thread Yury Selivanov

Yury Selivanov added the comment:

I think we should just ask Larry to merge all commits for asyncio in 3.4.
I.e. we won't commit anything that should not go in 3.4 anyways.

--

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



[issue20648] 3.4 cherry-pick: multiple changesets for asyncio

2014-02-16 Thread Guido van Rossum

Guido van Rossum added the comment:

Right, that has been my understanding. Larry has said he'd give asyncio a
generous exception because it's all new in 3.4.

On Sunday, February 16, 2014, Yury Selivanov rep...@bugs.python.org wrote:


 Yury Selivanov added the comment:

 I think we should just ask Larry to merge all commits for asyncio in 3.4.
 I.e. we won't commit anything that should not go in 3.4 anyways.

 --

 ___
 Python tracker rep...@bugs.python.org javascript:;
 http://bugs.python.org/issue20648
 ___


--

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



[issue20648] 3.4 cherry-pick: multiple changesets for asyncio

2014-02-16 Thread Guido van Rossum

Guido van Rossum added the comment:

Then again Larry might appreciate a full list of what to cherrypick.

On Sunday, February 16, 2014, Guido van Rossum rep...@bugs.python.org
wrote:


 Guido van Rossum added the comment:

 Right, that has been my understanding. Larry has said he'd give asyncio a
 generous exception because it's all new in 3.4.

 On Sunday, February 16, 2014, Yury Selivanov 
 rep...@bugs.python.orgjavascript:;
 wrote:

 
  Yury Selivanov added the comment:
 
  I think we should just ask Larry to merge all commits for asyncio in 3.4.
  I.e. we won't commit anything that should not go in 3.4 anyways.
 
  --
 
  ___
  Python tracker rep...@bugs.python.org javascript:; javascript:;
  http://bugs.python.org/issue20648
  ___
 

 --

 ___
 Python tracker rep...@bugs.python.org javascript:;
 http://bugs.python.org/issue20648
 ___


--

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



[issue12849] Cannot override 'connection: close' in urllib2 headers

2014-02-16 Thread Martin Panter

Changes by Martin Panter vadmium...@gmail.com:


--
nosy: +vadmium

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



[issue20616] Add tracemalloc.Traceback.format() method

2014-02-16 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
resolution:  - fixed
status: open - closed

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



[issue20493] asyncio: OverflowError('timeout is too large')

2014-02-16 Thread STINNER Victor

STINNER Victor added the comment:

 Of all these, 4194303 is the smallest, it's only 2**22-1, i.e. 48 days in the 
 future 

Maybe asyncio can uses a maximum timeout of 30 days? Or maybe even 1 day. Wake 
up every day to recompute the timeout should not kill the battery of your 
laptop or of your phone.

--

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



[issue20632] Define a new __key__ protocol

2014-02-16 Thread Martin Panter

Changes by Martin Panter vadmium...@gmail.com:


--
nosy: +vadmium

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



[issue20637] Support key-sharing dictionaries in subclasses

2014-02-16 Thread Larry Hastings

Larry Hastings added the comment:

I agree: definitely not for 3.5, maybe for 3.4.1.

--
nosy: +larry

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



[issue20351] Add doc examples for DictReader and DictWriter

2014-02-16 Thread Charles-Axel Dein

Charles-Axel Dein added the comment:

Updated patch following review.

--
Added file: http://bugs.python.org/file34110/add_csvdict_examples.patch

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



[issue12849] Cannot override 'connection: close' in urllib2 headers

2014-02-16 Thread Martin Panter

Martin Panter added the comment:

I suggest using setdefault() in urllib.request.AbstractHTTPHandler.do_open():

headers.setdefault(Connection, close)

I am trying to work around a server that truncates its response when this 
header is sent, and this change would allow me to specify 
headers={Connection, Keep-Alive} to get the same effect as dropping the 
Connection header. This is also consistent with the way the other headers 
(Accept-Encoding, User-Agent, Host) may be overridden.

--

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



[issue20627] Add context manager support to xmlrpc.client.ServerProxy

2014-02-16 Thread Brett Cannon

Brett Cannon added the comment:

Thanks for the patch, Cladiu! Since the 3.5 branch is not open yet it might not 
be until late March or April when I can look at this patch and get it 
committed, but I will get to it.

--
assignee:  - brett.cannon

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



[issue20649] Minor grammatical mistake for asyncio dev docs

2014-02-16 Thread Brett Cannon

New submission from Brett Cannon:

http://docs.python.org/3.4/library/asyncio-dev.html

While a task in running in the event loop should be a task is running.

--
assignee: brett.cannon
components: Documentation
messages: 211389
nosy: brett.cannon
priority: low
severity: normal
stage: needs patch
status: open
title: Minor grammatical mistake for asyncio dev docs
versions: Python 3.4, Python 3.5

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



[issue20650] asyncio.BaseEventLoop.run_in_executor docs have awkward wording

2014-02-16 Thread Brett Cannon

New submission from Brett Cannon:

http://docs.python.org/3.4/library/asyncio-eventloop.html#asyncio.BaseEventLoop.run_in_executor

executor is a Executor instance, the default executor is used if executor is 
None. could maybe be The executor argument should be an Executor instance. 
The default executor is used if executor is None.

--
assignee: brett.cannon
components: Documentation
messages: 211390
nosy: brett.cannon
priority: low
severity: normal
status: open
title: asyncio.BaseEventLoop.run_in_executor docs have awkward wording
versions: Python 3.4, Python 3.5

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



[issue20651] 3.4 cherry-pick: 52ab9e1ff46a rolls back bad zipimport changes

2014-02-16 Thread Gregory P. Smith

New submission from Gregory P. Smith:

Please cherry-pick 52ab9e1ff46a to roll back the zipimport brokenness.
This is the change that fixes issue20621 which is causing a rapid 3.3.5 brown 
bag release.

--
assignee: larry
messages: 211391
nosy: gregory.p.smith, larry
priority: release blocker
severity: normal
status: open
title: 3.4 cherry-pick: 52ab9e1ff46a rolls back bad zipimport changes
versions: Python 3.4

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



[issue20652] Example in asyncio task gives resource warning

2014-02-16 Thread Vajrasky Kok

New submission from Vajrasky Kok:

From 
http://docs.python.org/3.4/library/asyncio-task.html#example-future-with-run-until-complete

there is an example code:
import asyncio

@asyncio.coroutine
def slow_operation(future):
yield from asyncio.sleep(1)
future.set_result('Future in done!')

def got_result(future):
print(future.result())
loop.stop()

loop = asyncio.get_event_loop()
future = asyncio.Future()
asyncio.Task(slow_operation(future))
future.add_done_callback(got_result)
loop.run_forever()


I got this:
ethan@amiau:~/Documents/code/python/cpython3.4$ ./python /tmp/demo.py
Future in done!
sys:1: ResourceWarning: unclosed socket object at 0x7feb49df1058
sys:1: ResourceWarning: unclosed socket object at 0x7feb493b48c8

Here is the patch to shut off the resource warning.

--
assignee: docs@python
components: Documentation
files: shut_off_resource_warning_run_forever_asyncio_example.patch
keywords: patch
messages: 211392
nosy: docs@python, haypo, vajrasky
priority: normal
severity: normal
status: open
title: Example in asyncio task gives resource warning
type: resource usage
versions: Python 3.4
Added file: 
http://bugs.python.org/file34111/shut_off_resource_warning_run_forever_asyncio_example.patch

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



  1   2   >