[issue15416] 3 * [] gives a list of 3 cross-referenced lists, a[1]='blah' writes in to ALL three!

2013-01-03 Thread Martin Mokrejs
Martin Mokrejs added the comment: For the sake of internet archives, the following could be included in the FAQ you referred to: http://www.scipy.org/Cookbook/BuildingArrays >>> import numpy as np >>> a=np.array(5*[False],bool) >>> a array([False, False, False, False, False], dtype=bool) >>> a

[issue15416] 3 * [] gives a list of 3 cross-referenced lists, a[1]='blah' writes in to ALL three!

2013-01-03 Thread R. David Murray
R. David Murray added the comment: But that's about numpy, which is not part of core Python, and so doesn't belong in a Python FAQ. But perhaps your posting it here will help someone doing an internet search... -- nosy: +r.david.murray ___ Python t

[issue16856] Segfault from calling repr() on a dict with a key whose repr raise an exception

2013-01-03 Thread David M. Cooke
New submission from David M. Cooke: The following segfaults: class A(int): def __repr__(self): raise Exception() a = A() d = {a : 1} repr(d) This is with Python 3.3.0, running on Mac OS 10.7.5, from MacPorts: Python 3.3.0 (default, Sep 29 2012, 08:16:08) [GCC 4.2.1 Compatible Apple

[issue16856] Segfault from calling repr() on a dict with a key whose repr raise an exception

2013-01-03 Thread R. David Murray
R. David Murray added the comment: Confirmed on Gentoo linux. On default, too. This is a regression from 3.2. -- nosy: +r.david.murray versions: +Python 3.4 ___ Python tracker

[issue16850] Atomic open + close-and-exec

2013-01-03 Thread STINNER Victor
STINNER Victor added the comment: > Also, I'm not sure why "e". The choice of the "e" letter comes from the GNU version of fopen(). Extract of fopen manual page on Linux: e (since glibc 2.7) Open the file with the O_CLOEXEC flag. See open(2) for more information. Oh, by

[issue10529] Write argparse i18n howto

2013-01-03 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue16857] replace email address on howto with my home page

2013-01-03 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe: I would rather not get the 'thanks' I have been getting since this was published. Rather let that be my website. -- assignee: docs@python components: Documentation files: no-mail.diff keywords: patch messages: 179000 nosy: docs@python, tshepang

[issue16857] replace my email address on argparse howto with my website

2013-01-03 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- title: replace email address on howto with my home page -> replace my email address on argparse howto with my website ___ Python tracker ___

[issue16853] add a Selector to the select module

2013-01-03 Thread Guido van Rossum
Guido van Rossum added the comment: I think this is a great idea. But let's wait until Tulip is a bit further along; the design of its Pollster might still change as PEP 3156 gets more review and feedback. According to PEP 429 the first beta of 3.4 won't go out until November this year. ---

[issue16076] xml.etree.ElementTree.Element and xml.etree.ElementTree.TreeBuilder are no longer pickleable

2013-01-03 Thread Daniel Shahaf
Daniel Shahaf added the comment: Eli Bendersky wrote on Thu, Jan 03, 2013 at 14:44:02 +: > On Tue, Jan 1, 2013 at 2:56 PM, Daniel Shahaf wrote: > > I added the "_elementtree" to the tp_name in order to bypass the above > > error. Module-qualified names were in use elsewhere (including by > >

[issue16857] replace my email address on argparse howto with my website

2013-01-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset c7ae3772b4d4 by Benjamin Peterson in branch '3.2': drop email (closes #16857) http://hg.python.org/cpython/rev/c7ae3772b4d4 New changeset c8e885ecbc89 by Benjamin Peterson in branch '2.7': drop email (closes #16857) http://hg.python.org/cpython/rev/

[issue16857] replace my email address on argparse howto with my website

2013-01-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: I hope that works for you. -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-lis

[issue16858] tarfile silently hides errors

2013-01-03 Thread Марк Коренберг
New submission from Марк Коренберг: TarFile.next() silently drop error of one of - EOFHeaderError - InvalidHeaderError occur. So, extracting corrupted .tar file will not raise error. -- components: Library (Lib) messages: 179005 nosy: mmarkk priority: normal severity: normal status: o

[issue16859] tarfile.TarInfo.fromtarfile does not check read() return value

2013-01-03 Thread Марк Коренберг
New submission from Марк Коренберг: tarfile.TarInfo.fromtarfile does not check read() return value. read() may return less than requested size, so, buf = tarfile.fileobj.read(BLOCKSIZE) ... obj.offset = tarfile.fileobj.tell() - BLOCKSIZE may do something nasty. -- messages: 179006 nosy

<    1   2