[issue12546] builtin __format__ methods cannot fill with \x00 char

2014-05-19 Thread STINNER Victor

STINNER Victor added the comment:

I don't understand why it works with , = or :

 {0:\x006d}.format(123)
'123\x00\x00\x00'

But not without:

 {0:\x006d}.format(123)
Traceback (most recent call last):
  File stdin, line 1, in module
ValueError: Invalid format specifier

Compare it to:

 {0:6d}.format(123)
'   123'
 {0:06d}.format(123)
'000123'

--

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



[issue19979] Missing nested scope vars in class scope (bis)

2014-05-19 Thread Armin Rigo

Armin Rigo added the comment:

Terry: I meant exactly what I wrote, and not some unrelated examples:

def f():
n = 1
class A: n = n

doesn't work, but the same two lines (n = 1; class A: n = n) work if 
written at module level instead of in a function.

--

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



[issue21533] built-in types dict docs - construct dict from iterable, not iterator

2014-05-19 Thread Wolfgang Maier

New submission from Wolfgang Maier:

The docs for Python3.4 havethis to say about the arguments to the dict 
constructor:

class dict(**kwarg)
class dict(mapping, **kwarg)
class dict(iterable, **kwarg)

Return a new dictionary initialized from an optional positional argument 
and a possibly empty set of keyword arguments.

If no positional argument is given, an empty dictionary is created. If a 
positional argument is given and it is a mapping object, a dictionary is 
created with the same key-value pairs as the mapping object. Otherwise, the 
positional argument must be an iterator object. Each item in the iterable must 
itself be an iterator with exactly two objects. The first object of each item 
becomes a key in the new dictionary, and the second object the corresponding 
value. If a key occurs more than once, the last value for that key becomes the 
corresponding value in the new dictionary.

This paragraph uses the term iterator twice when it should talk about an 
iterable instead.
I'm attaching the patch for this.

Best,
Wolfgang

--
assignee: docs@python
components: Documentation
files: dict_doc.patch
keywords: patch
messages: 218784
nosy: docs@python, wolma
priority: normal
severity: normal
status: open
title: built-in types dict docs - construct dict from iterable, not iterator
Added file: http://bugs.python.org/file35292/dict_doc.patch

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



[issue12546] builtin __format__ methods cannot fill with \x00 char

2014-05-19 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

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



[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-19 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

Some comments:

 * Python 2.7 ships with OpenSSL 0.9.8 on Windows, so the Python version will 
always get used on that platform, so it needs to be fast.

 * The iterations loop should use xrange instead of range

 * The .encode('ascii') in _long_to_bin() is not necessary in Python 2

 * Given that _long_to_bin() and _bin_to_long() are only used once in the 
function, it's better to inline the code directly.

 * bytes(buffer()) should not be necessary in Python 2, since objects with a 
buffer interface will usually also implement the tp_str slot used by bytes().

--
nosy: +lemburg

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



[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-19 Thread Christian Heimes

Christian Heimes added the comment:

Sorry that I join the party rather late.

How about you take my back port from 
https://bitbucket.org/tiran/backports.pbkdf2/ and remove all Python 3.x related 
code? :) I spent a lot of time to make the code as fast as possible.

--

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



[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-19 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

On 19.05.2014 12:24, Christian Heimes wrote:
 
 How about you take my back port from 
 https://bitbucket.org/tiran/backports.pbkdf2/ and remove all Python 3.x 
 related code? :) I spent a lot of time to make the code as fast as possible.

Could you perhaps compare this to the proposed patch ?

--

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



[issue14776] Add SystemTap static markers

2014-05-19 Thread Bohuslav Slavek Kabrda

Bohuslav Slavek Kabrda added the comment:

Hi,
I'd like to take this over after Dave Malcolm. I don't see any issues that 
haven't been resolved, so my question is: What else can I do to make this patch 
acceptable?
I'm attaching a rebased version of this patch that applies to current default 
branch (FWIW, we use this patch downstream in Fedora in our python3-debug build 
and it works well)

--
Added file: http://bugs.python.org/file35293/cpython-systemtap-2014-05-19.patch

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



[issue14710] pkgutil.get_loader is broken

2014-05-19 Thread Pavel Aslanov

Pavel Aslanov added the comment:

This function is broken again in version 3.4

The way it should look is:
Python 2.7.6 (default, Feb 26 2014, 12:07:17) 
[GCC 4.8.2 20140206 (prerelease)] on linux2
Type help, copyright, credits or license for more information.
 import pkgutil
 pkgutil.get_loader('no_such_module') # returns None
 

How it really looks:
Python 3.4.0 (default, Apr 27 2014, 23:33:09) 
[GCC 4.8.2 20140206 (prerelease)] on linux
Type help, copyright, credits or license for more information.
 import pkgutil
 pkgutil.get_loader('no_such_module')
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib/python3.4/pkgutil.py, line 467, in get_loader
return find_loader(fullname)
  File /usr/lib/python3.4/pkgutil.py, line 488, in find_loader
return spec.loader
AttributeError: 'NoneType' object has no attribute 'loader'


find_loader is at fault (change return spec.loader - return spec and 
spec.loader). Thanks.

--

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



[issue7856] cannot decode from or encode to big5 \xf9\xd8

2014-05-19 Thread Inndy

Inndy added the comment:

I'm Taiwanese, F9D8 in big5 should be mapped to E8A38F in UTF-8.

--
nosy: +Inndy

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



[issue21528] Fix a number of typos in the documentation

2014-05-19 Thread Georg Brandl

Georg Brandl added the comment:

Looks all good to me.

--
nosy: +georg.brandl

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



[issue21534] 404 on documentation download links

2014-05-19 Thread Zachary Ware

New submission from Zachary Ware:

docs@ has received several reports from people unable to download documentation 
from docs.python.org/[23]/download.html since the release of 3.4.1rc1 and 
2.7.7rc1.

--
assignee: docs@python
components: Documentation
messages: 218792
nosy: benjamin.peterson, docs@python, georg.brandl, larry, zach.ware
priority: high
severity: normal
status: open
title: 404 on documentation download links
type: behavior
versions: Python 2.7, Python 3.4

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



[issue14776] Add SystemTap static markers

2014-05-19 Thread Dave Malcolm

Dave Malcolm added the comment:

On Mon, 2014-05-19 at 11:10 +, Bohuslav Slavek Kabrda wrote:
 Bohuslav Slavek Kabrda added the comment:
 
 Hi,
 I'd like to take this over after Dave Malcolm. I don't see any issues that 
 haven't been resolved, so my question is: What else can I do to make this 
 patch acceptable?
 I'm attaching a rebased version of this patch that applies to current default 
 branch (FWIW, we use this patch downstream in Fedora in our python3-debug 
 build and it works well)
 
 --
 Added file: 
 http://bugs.python.org/file35293/cpython-systemtap-2014-05-19.patch

Is this attachment missing the instrumentation.rst?

There are also a couple of example scripts we ship in the RPMs, iirc.

--

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



[issue14776] Add SystemTap static markers

2014-05-19 Thread Dave Malcolm

Dave Malcolm added the comment:

On Mon, 2014-05-19 at 14:15 +, Dave Malcolm wrote:
 Dave Malcolm added the comment:
 
 On Mon, 2014-05-19 at 11:10 +, Bohuslav Slavek Kabrda wrote:
  Bohuslav Slavek Kabrda added the comment:
  
  Hi,
  I'd like to take this over after Dave Malcolm. I don't see any issues that 
  haven't been resolved, so my question is: What else can I do to make this 
  patch acceptable?
  I'm attaching a rebased version of this patch that applies to current 
  default branch (FWIW, we use this patch downstream in Fedora in our 
  python3-debug build and it works well)
  
  --
  Added file: 
  http://bugs.python.org/file35293/cpython-systemtap-2014-05-19.patch
 
 Is this attachment missing the instrumentation.rst?

FWIW I see it within
http://bugs.python.org/file26074/cpython-systemtap-2012-06-21-001.patch

 There are also a couple of example scripts we ship in the RPMs, iirc.

--

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



[issue19217] Calling assertEquals for moderately long list takes too long

2014-05-19 Thread Ankur Ankan

Changes by Ankur Ankan ankuran...@gmail.com:


--
nosy: +ankurankan

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



[issue19217] Calling assertEquals for moderately long list takes too long

2014-05-19 Thread Ankur Ankan

Changes by Ankur Ankan ankuran...@gmail.com:


--
nosy: +Ankur.Ankan

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



[issue21535] test_license_exists_at_url fails with 3.4.1, wrong/unexpected http error code

2014-05-19 Thread Matthias Klose

New submission from Matthias Klose:

==
FAIL: test_license_exists_at_url (test.test_site.ImportSideEffectTests)
--
Traceback (most recent call last):
  File /scratch/packages/python/3.4/python3.4-3.4.1/Lib/test/test_site.py, 
line 438, in test_license_exists_at_url
self.assertEqual(code, 200, msg=Can't find  + url)
AssertionError: 404 != 200 : Can't find 
http://www.python.org/download/releases/3.4.1/license

--
components: Tests
messages: 218795
nosy: doko
priority: normal
severity: normal
status: open
title: test_license_exists_at_url fails with 3.4.1, wrong/unexpected http error 
code
versions: Python 3.4

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



[issue14776] Add SystemTap static markers

2014-05-19 Thread Bohuslav Slavek Kabrda

Bohuslav Slavek Kabrda added the comment:

As usual, I forgot to hg add the new files before running hg diff, so the newly 
created files didn't get added to the patch. Attaching a fixed version that 
hopefully has everything.
AFAICS all the scripts that Fedora has are 1:1 copy of documentation in 
instrumentation.rst, so I don't think it's necessary to add them here (there 
are enough files attached here already ;)).

--
Added file: 
http://bugs.python.org/file35294/cpython-systemtap-2014-05-19-all-files.patch

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



[issue12546] builtin __format__ methods cannot fill with \x00 char

2014-05-19 Thread Eric V. Smith

Eric V. Smith added the comment:

For int, the spec is:
[[fill]align][sign][#][0][width][,][.precision][type]

So, for 06d, 0 is matched as the literal 0, 6 is matched as width, and 
d is matched as type.

For \x006d, \x00 is matched as fill,  as align, 6 as width, and d 
as type.

For \x006d, there's no align. So \x00 cannot match as fill. \x00 doesn't 
match anything else, so it's an invalid format specifier, thus the exception.

--

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



[issue14776] Add SystemTap static markers

2014-05-19 Thread Terry J. Reedy

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


--
versions: +Python 3.5 -Python 3.4

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



[issue21532] 2.7.7rc1 msi is lacking libpython27.a

2014-05-19 Thread Steve Dower

Steve Dower added the comment:

Thanks for catching this.

Do I need a specific version of Cygwin or will the latest version suffice?

--

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



[issue21531] Sending a zero-length UDP packet to asyncore invokes handle_close()

2014-05-19 Thread Santoso Wijaya

Changes by Santoso Wijaya santoso.wij...@gmail.com:


--
nosy: +santa4nt

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



[issue21531] Sending a zero-length UDP packet to asyncore invokes handle_close()

2014-05-19 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

That doesn't surprise me as asyncore does not natively support UDP protocol in 
the first place.

--
nosy: +giampaolo.rodola

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



[issue21532] 2.7.7rc1 msi is lacking libpython27.a

2014-05-19 Thread Martin v . Löwis

Martin v. Löwis added the comment:

I think any version should do.

--

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



[issue7856] cannot decode from or encode to big5 \xf9\xd8

2014-05-19 Thread Martin v . Löwis

Martin v. Löwis added the comment:

I'm still looking for an official source of that.

 u\u88cf.encode(big5hkscs)
'\xf9\xd8'

works fine (and always has been working fine), and the character clearly is in 
big5hkscs. According to 

http://en.wikipedia.org/wiki/Big5

F9D8 is Reserved for user-defined characters, so this suggests that the 
character does *not* have a fixed meaning in BIG-5. However, it is part of the 
Hong Kong Supplementary Character Set.

--

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



[issue21532] 2.7.7rc1 msi is lacking libpython27.a

2014-05-19 Thread Steve Dower

Steve Dower added the comment:

I installed mingw32-binutils and it seems to work fine. 2.7.7 will have the 
file again.

--

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



[issue14710] pkgutil.get_loader is broken

2014-05-19 Thread Brett Cannon

Brett Cannon added the comment:

I'll take a look the next time I have some Python time (in a week or two) and 
make sure this gets dealt with.

--
assignee:  - brett.cannon

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



[issue7856] cannot decode from or encode to big5 \xf9\xd8

2014-05-19 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Inndy, you might also be talking about big5-2003, from

http://www.csie.ntu.edu.tw/~r92030/project/big5/

Python currently does not support big5-2003, but a contribution of such an 
encoding would surely be welcome.

--

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



[issue21535] test_license_exists_at_url fails with 3.4.1, wrong/unexpected http error code

2014-05-19 Thread Berker Peksag

Berker Peksag added the comment:

This is probably related to issue 21534.

--
nosy: +berker.peksag, larry

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



[issue21529] JSON module: reading arbitrary process memory

2014-05-19 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--
nosy: +jcea

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



[issue21536] extension built with a shared python cannot be loaded with a static python

2014-05-19 Thread Antoine Pitrou

New submission from Antoine Pitrou:

When a C extension is built (using distutils) with a shared library Python, it 
cannot be loaded with an otherwise identical statically linked Python. The 
other way round works fine. Trivial example using the _ssl module:

 import sys
 sys.path.insert(0, 
 '/home/antoine/cpython/shared/build/lib.linux-x86_64-3.5/')
 import _ssl
Traceback (most recent call last):
  File stdin, line 1, in module
ImportError: libpython3.5m.so.1.0: cannot open shared object file: No such file 
or directory

This is probably because of an additional -L flag that is passed when linking a 
C extension with a shared library Python. I don't think the flag is useful 
under Linux (or perhaps under any other OS at all), since the relevant symbols 
are already loaded when the interpreter tries to load the C extension.

(AFAIK, systems notorious for providing shared library Pythons are RedHat-alike 
systems, while Debian/Ubuntu provide statically linked Pythons)

--
components: Library (Lib)
messages: 218806
nosy: dstufft, eric.araujo, loewis, ncoghlan, pitrou
priority: normal
severity: normal
status: open
title: extension built with a shared python cannot be loaded with a static 
python
type: enhancement
versions: Python 3.5

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



[issue21530] Integer overflow in strop

2014-05-19 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--
nosy: +jcea

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



[issue21529] JSON module: reading arbitrary process memory

2014-05-19 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

Fixed also in 3.2 (b9913eb96643), 3.3 (4f15bd1ab28f), 3.4 (7b95540ced5c) and 
3.5 (3a414c709f1f).

--

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



[issue21537] functools.lru_cache does not cache exceptions

2014-05-19 Thread Stephen Paul Chappell

New submission from Stephen Paul Chappell:

While examining the implementation for lru_cache, it came to my attention that 
the wrappers ignore the possibility of exceptions. Is this on purpose? If the 
cache is designed to reduce the overhead of running certain functions, it seems 
like lru_cache should handle returned values along with raised exceptions.

--
components: Library (Lib)
messages: 218808
nosy: Zero
priority: normal
severity: normal
status: open
title: functools.lru_cache does not cache exceptions
type: enhancement
versions: Python 3.4

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



[issue14710] pkgutil.get_loader is broken

2014-05-19 Thread Eric Snow

Changes by Eric Snow ericsnowcurren...@gmail.com:


--
nosy: +eric.snow

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



[issue21536] extension built with a shared python cannot be loaded with a static python

2014-05-19 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Actually, it's not a -L flag but a -l flag. Removing the -lpython3.5m flag 
from the linker line works fine under Linux, and allows the resulting extension 
to be loaded with both a shared libary Python and a statically-linked Python.

--

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



[issue21537] functools.lru_cache does not cache exceptions

2014-05-19 Thread Raymond Hettinger

Raymond Hettinger added the comment:

 Is this on purpose? 

The short answer is yes.  It is a can of worms and there isn't much of a payoff.

--
nosy: +rhettinger
resolution:  - not a bug
status: open - closed

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



[issue21507] memory used by frozenset created from set differs from that of frozenset created from other iterable

2014-05-19 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
assignee:  - rhettinger

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



[issue21507] memory used by frozenset created from set differs from that of frozenset created from other iterable

2014-05-19 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
status: open - closed

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



[issue2506] Add mechanism to disable optimizations

2014-05-19 Thread Raymond Hettinger

Raymond Hettinger added the comment:

There has been no activity on this for several year.  Marking as rejected for 
the reasons originally listed.

--
resolution:  - rejected
status: open - closed

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



[issue21484] More clarity needed about difference between x += e and x = x + e

2014-05-19 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I agree with Josh.  If anything this belongs in a wiki entry, faq page, or 
stack overflow question.

--
nosy: +rhettinger
resolution:  - rejected
status: open - closed

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



[issue21536] extension built with a shared python cannot be loaded with a static python

2014-05-19 Thread Martin v . Löwis

Martin v. Löwis added the comment:

I think you are right. It would IMO be useful to research a few comparable 
systems. E.g. Apache modules don't link a shared library, but still refer to 
apr_ functions as undefined symbols - but then, there isn't an APR shared 
library in the first place (at least not on Debian - how about Redhat?)

PHP might be close to our case: Debian includes a libphp5.so (in 
/usr/lib/php5), yet neither /usr/bin/php5 nor the Apache libphp5.so link 
against it, and all the PHP modules (in /usr/lib/php5/20100525+lfs/) don't link 
with the shared library - on Debian. I wonder how it is on systems that 
actually use the PHP shared library.

--

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



[issue2506] Add mechanism to disable optimizations

2014-05-19 Thread Ned Batchelder

Ned Batchelder added the comment:

Raymond, thanks for keeping us honest!

I am still hoping to convince people that this is a good idea.  I think Guido's 
+1 (https://mail.python.org/pipermail/python-dev/2012-December/123099.html) 
should help in that regard.

Part of your reason for today's rejection is the lack of activity.  Can I 
assume that with a patch you would be supportive?

--

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



[issue14776] Add SystemTap static markers

2014-05-19 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

I would like to point out that if this patch gets accepted, maybe issue #13405 
(updated, I keep an up to date version in my mercurial repo) should too.

--

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



[issue2506] Add mechanism to disable optimizations

2014-05-19 Thread Trip Volpe

Trip Volpe added the comment:

I found this issue just the other day while researching why we were getting 
false gaps in our test coverage reports (using Ned's coverage module, natch!). 
I agree that this seems like a fairly minor nuisance, but it's a nuisance that 
anybody who has tests and measures test coverage will run into sooner or later 
-- and that's *everybody*, right?

I think some kind of fix ought to be discussed. After all, it should be 
possible to have accurate coverage results is a proposition that seems fairly 
reasonable to me.

--

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



[issue2506] Add mechanism to disable optimizations

2014-05-19 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

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



[issue14776] Add SystemTap static markers

2014-05-19 Thread Martin v . Löwis

Martin v. Löwis added the comment:

I still wish there was a patch that combined both dtrace and systemtap support, 
und used as much code sharing between them as feasible. I'd be +1 on such a 
patch, and -0 on two separate patches that achieve the same functionality, but 
on different code paths.

For example, the systemtap version has a helper function get_frame_marker_info 
that covers more cases than the dtrace version; OTOH, the dtrace version has 
more trace points.

If consensus on functionality is not easily achieved, I propose to have the 
intersection on functionality first, i.e. only use the function-entry/exit 
trace points even in the dtrace version. Or else you agree on what trace points 
both systems ought to provide.

--

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



[issue20620] Update the min()/max() docs for the new default argument

2014-05-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b60258f4499c by Raymond Hettinger in branch '3.4':
Issue 20620: Update the min()/max() docs for the new default argument.
http://hg.python.org/cpython/rev/b60258f4499c

--
nosy: +python-dev

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



[issue20620] Update the min()/max() docs for the new default argument

2014-05-19 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Thanks for the patch.

--
resolution:  - fixed
status: open - closed

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



[issue21535] test_license_exists_at_url fails with 3.4.1, wrong/unexpected http error code

2014-05-19 Thread Ned Deily

Ned Deily added the comment:

The license file page for 3.4.1 now exists.

--
nosy: +ned.deily
stage:  - resolved
status: open - closed

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



[issue21535] test_license_exists_at_url fails with 3.4.1, wrong/unexpected http error code

2014-05-19 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
resolution:  - fixed

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



[issue7776] http.client.HTTPConnection tunneling is broken

2014-05-19 Thread Senthil Kumaran

Changes by Senthil Kumaran sent...@uthcode.com:


--
versions: +Python 2.7

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



[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-19 Thread John Lehr

New submission from John Lehr:

plistlib has key error when attempting to load the iOS7  
var/mobile/Applications/com.apple.mobilesafari/Library/Safari/History.plist.  
No detected issues with other iOS7 plists.

In [8]: with 
open('cases/vitale_test_iphone/unback/AppDomain-com.apple.mobilesafari/Library/Safari/History.plist',
 'rb') as f:
   ...: plist = plistlib.lo
plistlib.load   plistlib.loads  
   ...: plist = plistlib.load(f)
   ...: 
---
KeyError  Traceback (most recent call last)
ipython-input-8-7824ac03848c in module()
  1 with 
open('cases/vitale_test_iphone/unback/AppDomain-com.apple.mobilesafari/Library/Safari/History.plist',
 'rb') as f:
 2 plist = plistlib.load(f)
  3 

/usr/lib/python3.4/plistlib.py in load(fp, fmt, use_builtin_types, dict_type)
993 p = _FORMATS[fmt]['parser'](use_builtin_types=use_builtin_types)
994 
-- 995 return p.parse(fp)
996 
997 

/usr/lib/python3.4/plistlib.py in parse(self, fp)
620 ) = struct.unpack('6xBBQQQ', trailer)
621 self._fp.seek(offset_table_offset)
-- 622 offset_format = '' + _BINARY_FORMAT[offset_size] * 
num_objects
623 self._ref_format = _BINARY_FORMAT[self._ref_size]
624 self._object_offsets = struct.unpack(

KeyError: 3

--
messages: 218821
nosy: slo.sleuth
priority: normal
severity: normal
status: open
title: plistlib unable to load iOS7 Safari History.plist
type: crash
versions: Python 3.4

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



[issue10510] distutils upload/register should use CRLF in HTTP requests

2014-05-19 Thread Éric Araujo

Éric Araujo added the comment:

Patch looks good, will apply.  Thanks.

--
stage: needs patch - commit review
versions: +Python 3.5 -Python 3.3

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



[issue21509] json.load fails to read UTF-8 file with (BOM) Byte Order Marks

2014-05-19 Thread Santoso Wijaya

Santoso Wijaya added the comment:

I think you should use codecs.BOM_UTF8 rather than using hardcoded string 
\xef\xbb\xbf directly.

And why special casing UTF-8 while we're at it? What about other encodings and 
their BOMs?

--
nosy: +santa4nt

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



[issue21386] ipaddress.IPv4Address.is_global not implemented

2014-05-19 Thread Santoso Wijaya

Changes by Santoso Wijaya santoso.wij...@gmail.com:


--
nosy: +santa4nt
type:  - enhancement

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



[issue20620] Update the min()/max() docs for the new default argument

2014-05-19 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
stage: patch review - resolved

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



[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-19 Thread Ned Deily

Ned Deily added the comment:

Can you attach a zipped version of the failing plist or at least identify what 
data in it is causing the exception?  Presumably that plist is user-specific, 
i.e. contains browser history.

--
nosy: +ned.deily

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



[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-19 Thread John Lehr

John Lehr added the comment:

I have shared the file for which I have permission, but neither of two
History.plists in my possession will load, both with the same traceback.

Thank you.

On Mon, May 19, 2014 at 4:18 PM, Ned Deily rep...@bugs.python.org wrote:


 Ned Deily added the comment:

 Can you attach a zipped version of the failing plist or at least identify
 what data in it is causing the exception?  Presumably that plist is
 user-specific, i.e. contains browser history.

 --
 nosy: +ned.deily

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue21538
 ___


--
Added file: http://bugs.python.org/file35295/History.plist.7z

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21538
___

History.plist.7z
Description: application/7z-compressed
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1191964] asynchronous Subprocess

2014-05-19 Thread Josiah Carlson

Josiah Carlson added the comment:

First off, thank you everyone who has reviewed and commented so far. I very 
much appreciate your input and efforts.

Does anyone have questions, comments, or concerns about the patch? If no one 
mentions anything in the next week or so, I'll ping the email thread.

--

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



[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-19 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
components: +Library (Lib)
nosy: +ronaldoussoren, serhiy.storchaka -ned.deily
type: crash - 
versions: +Python 3.5

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



[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-19 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


Removed file: http://bugs.python.org/file35295/History.plist.7z

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



[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-19 Thread Ned Deily

Ned Deily added the comment:

John, a quick look at the file shows that it contains browsing history 
information that might be personally identifiable.  I don't think that is 
appropriate to store on a public web site like this one so I've deleted the 
file.  Is there some way to provide a simpler file with non-personal history?

--
nosy: +ned.deily

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



[issue21531] Sending a zero-length UDP packet to asyncore invokes handle_close()

2014-05-19 Thread Tony Gedge

Tony Gedge added the comment:

If it's true that asyncore doesn't support UDP, I'd suggest at least a 
statement to this effect in the documentation.  As far as I can see, there's 
nothing to suggest it won't work with UDP.

--

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



[issue2506] Add mechanism to disable optimizations

2014-05-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Trip, see msg140290, which was ignored.

--

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



[issue21477] Idle: improve idle_test.htest

2014-05-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 33a39dfc239e by Terry Jan Reedy in branch '2.7':
Issue #21477: idle htests - lower case function names, other cleanups.
http://hg.python.org/cpython/rev/33a39dfc239e

New changeset 7c70198ec48e by Terry Jan Reedy in branch '3.4':
Issue #21477: idle htests - lower case function names, other cleanups.
http://hg.python.org/cpython/rev/7c70198ec48e

--
nosy: +python-dev

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



[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-19 Thread tholzer

tholzer added the comment:

We encountered the same problem, this is in the context of using PyQt 
(specifically QProcess) or twisted. They both rely on SIGCHLD for their 
notification framework.

I've attached a httplib EINTR patch for 2.6.4  2.7.3.

--
nosy: +tholzer
Added file: http://bugs.python.org/file35296/httplib_2.6.4_eintr_patch.py

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



[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-19 Thread tholzer

Changes by tholzer thol...@wetafx.co.nz:


Added file: http://bugs.python.org/file35297/httplib_2.7.3_eintr_patch.py

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



[issue21539] pathlib's Path.mkdir() should allow for mkdir -p functionality

2014-05-19 Thread Jim Garrison

New submission from Jim Garrison:

As of Python 3.2, `os.makedirs()` takes `exist_ok` as a keyword argument.  If 
set to true, the function does not raise an error if the directory already 
exists.  This makes the function's behavior similar to `mkdir -p` on the UNIX 
commandline.  (See https://docs.python.org/3/library/os.html#os.makedirs)

However, this functionality is missing in Python's new pathlib. In fact, the 
documentation for `Path.mkdir()` even mentions that if `parent=True` is passed, 
then it should behave like `mkdir -p`.  This is accurate in that it indeed 
recursively makes any parent directories necessary, but it is inaccurate in 
that it raises an error if the directory already exists.

I propose that either `parents=True` should imply that there is no error if the 
directory already exists (which would be a backwards-incompatible change); or, 
there could be a new `exist_ok=True`, which could suppress the error for an 
existing directory.  Either way, it ought to be possible to get the `mkdir -p` 
functionality easily from pathlib.  And the documentation for `Path.mkdir()` 
should be updated to explain how to get this `mkdir -p` functionality, with the 
existing (inaccurate) `mkdir -p` mention removed.

--
components: Library (Lib)
messages: 218832
nosy: garrison
priority: normal
severity: normal
status: open
title: pathlib's Path.mkdir() should allow for mkdir -p functionality
type: enhancement

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



[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-19 Thread tholzer

tholzer added the comment:

Here is a reproducible test case:

import threading
import signal
import os
import httplib

def killer():
while 1:
os.kill(os.getpid(), signal.SIGINT)

def go():
signal.signal(signal.SIGINT, lambda x,y: None)
thread = threading.Thread(target=killer)
thread.start()
while 1:
connection = httplib.HTTPConnection(localhost:80)
connection.connect()
connection.close()

if __name__ == '__main__':
go()

Which gives:

Traceback (most recent call last):
  File ./repro1.py, line 22, in module
go()
  File ./repro1.py, line 18, in go
connection.connect()
  File .../lib/python2.7/httplib.py, line 757, in connect
self.timeout, self.source_address)
  File .../lib/python2.7/socket.py, line 571, in create_connection
raise err
socket.error:

--

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



[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-19 Thread John Lehr

John Lehr added the comment:

Ned, I understand.  I did get permission to post that history, and as I
feared, the sanitized History.plist I'm attaching now doesn't have the
loading issue that the first did.  Possibly a URL character is throwing the
exception?

Can you suggest where I can put a print statement in the library or some
other way to post to get you meaningful debug information?  I don't have
any experience with pdb, and a verbose python execution is pretty lengthy.
 As I said before, I have two more extensive History.plist files from two
different devices that won't load.

On Mon, May 19, 2014 at 5:51 PM, Ned Deily rep...@bugs.python.org wrote:


 Ned Deily added the comment:

 John, a quick look at the file shows that it contains browsing history
 information that might be personally identifiable.  I don't think that is
 appropriate to store on a public web site like this one so I've deleted the
 file.  Is there some way to provide a simpler file with non-personal
 history?

 --
 nosy: +ned.deily

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue21538
 ___


--
Added file: http://bugs.python.org/file35298/History.plist

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21538
___

History.plist
Description: Binary data
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-19 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


Added file: http://bugs.python.org/file35295/History.plist.7z

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



[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-19 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


Removed file: http://bugs.python.org/file35295/History.plist.7z

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



[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I think this patch should fix the issue. But tests needed.

--
keywords: +patch
stage:  - test needed
type:  - behavior
Added file: http://bugs.python.org/file35299/plistlib_read_refs.patch

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



[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-19 Thread Charles-François Natali

Charles-François Natali added the comment:

As said in a previous comment, we don't want to have EINTR handling
code everywhere.
The right way to do this is to handle it at the syscall level.

--

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