[issue15435] Strange behavior when AttributeError raise inside a property get function

2013-02-17 Thread Yariv
Yariv added the comment: Duplicate of http://bugs.python.org/issue1615 , which is open. -- nosy: +Yariv ___ Python tracker ___ ___ Pyt

[issue16893] Create IDLE help.txt from Doc/library/idle.rst

2013-02-17 Thread Ned Deily
Ned Deily added the comment: For comparison, here's a copy of the new rendered help.txt. -- Added file: http://bugs.python.org/file29112/help.txt ___ Python tracker ___ _

[issue16893] Create IDLE help.txt from Doc/library/idle.rst

2013-02-17 Thread Ned Deily
Ned Deily added the comment: There are a few problems with the proposed patch (v2). I commented on those in Rietveld. But, beyond that, I'm not convinced that the generated help.txt is an improvement over the original help.txt. While it is formatted more consistently (a good thing), it is s

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-02-17 Thread STINNER Victor
STINNER Victor added the comment: issue17223_with_test.diff looks good to me (we may just drop {...} around return NULL). -- ___ Python tracker ___ _

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-02-17 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16893] Create IDLE help.txt from Doc/library/idle.rst

2013-02-17 Thread Zachary Ware
Zachary Ware added the comment: Actually, I have an objection myself. In merging this patch with another I'm working on, I noticed that I failed to include the new 'idledoc' target in the Makefile usage message. The attached patch fixes that oversight. -- Added file: http://bugs.pyth

[issue6975] symlinks incorrectly resolved on POSIX platforms

2013-02-17 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: The actual output of last command in "Before these revisions:" is: / -- ___ Python tracker ___ _

[issue6975] symlinks incorrectly resolved on POSIX platforms

2013-02-17 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: The above revisions have broken handling of arguments with >=2 "..". Before these revisions: $ cd /usr/bin $ python3.2 -c 'import os; print(os.path.realpath(".."))' /usr $ python3.2 -c 'import os; print(os.path.realpath("../.."))' / $ pytho

[issue17221] Resort Misc/NEWS

2013-02-17 Thread Ned Deily
Ned Deily added the comment: kbk has requested in the past that IDLE News items be put in Lib/idlelib/News.txt because it is installed with IDLE and there is a button to display it included in the "About IDLE" window. I know we've not been diligent about doing that, at least, I haven't. I su

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-02-17 Thread Manuel Jacob
Manuel Jacob added the comment: I've attached a new patch with a test that segfaults on Python 3.3 and passes on hg tip with the patch applied. -- Added file: http://bugs.python.org/file29110/issue17223_with_test.diff ___ Python tracker

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-02-17 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the report and the patch. Could you also include a test for this? -- ___ Python tracker ___ ___

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-02-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +haypo stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-02-17 Thread Manuel Jacob
Manuel Jacob added the comment: The attached patch fixes the crash. Output: >>> from array import array >>> str(array('u', b'asdf')) Traceback (most recent call last): File "", line 1, in ValueError: character U+66647361 is not in range [U+; U+10] -- keywords: +patch Added fi

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-02-17 Thread Manuel Jacob
New submission from Manuel Jacob: >>> from array import array >>> str(array('u', b'asdf')) [1]19411 segmentation fault (core dumped) python This error occures with Python 3.3 and hg tip but not with Python 3.2. -- components: Library (Lib), Unicode messages: 182291 nosy: ezio.melot

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2013-02-17 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Some third-party modules (e.g. epydoc) refer to sre_constants.MAXREPEAT. Please add 'from _sre import MAXREPEAT' to Lib/sre_constants.py for compatibility. -- nosy: +Arfrever resolution: fixed -> stage: committed/rejected -> statu

[issue17047] Fix double double words words

2013-02-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12596] cPickle - stored data differ for same dictionary

2013-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a minimal reproducer. Results: pickle.dumps('spam', 2) 0: \x80 PROTO 2 2: USHORT_BINSTRING 'spam' 8: qBINPUT 0 10: .STOP highest protocol among opcodes = 2 pickle.dumps('spam1'[:-1], 2) 0: \x80 PROTO 2

[issue17212] os.path.isfile() in Python 3.3 sometimes fails

2013-02-17 Thread STINNER Victor
STINNER Victor added the comment: Looks like a duplicate of issue #17137. Le 17 févr. 2013 23:08, "Antoine Pitrou" a écrit : > > Changes by Antoine Pitrou : > > > -- > nosy: +haypo > > ___ > Python tracker > >

[issue17212] os.path.isfile() in Python 3.3 sometimes fails

2013-02-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17221] Resort Misc/NEWS

2013-02-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: unittest is a library, not a part of the test suite, so its enhancements should remain in the library section. -- nosy: +pitrou ___ Python tracker

[issue16551] Cleanup the pure Python pickle implementation

2013-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue17012] Differences between /usr/bin/which and shutil.which()

2013-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue17216] sparc linux build fails with "could not import runpy module"

2013-02-17 Thread Ned Deily
Ned Deily added the comment: I'm glad you got a little further. Now it seems the build is failing when trying to build the _ssl and _hashlib extension modules. building '_ssl' extension gcc -pthread -fPIC -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I./Include -I. -I

[issue17222] py_compile.compile() replaces target files, breaking special files and symlinks

2013-02-17 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: Since d4eb02b6aac9 py_compile.compile() replaces target files, breaking special files and symlinks. Any custom permissions set on target files are also lost. This is a major regression. # cd /tmp # touch test.py # ls -l /dev/null crw-rw-

[issue17221] Resort Misc/NEWS

2013-02-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch moves some Misc/NEWS entities to more appropriate sections (IDLE, C-API, Tests, Documentation, Tools/Demos). Please review. -- assignee: docs@python components: Documentation files: NEWS-3.4.patch keywords: patch messages: 182282

[issue15767] add ModuleNotFoundError

2013-02-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue17044] Implement PEP 422: Simple class initialisation hook

2013-02-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue17219] cross add Python's library directory when building python standard extensions

2013-02-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue17220] Little enhancements of _bootstrap.py

2013-02-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue17197] c/profile refactoring

2013-02-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Of course you're right. I didn't realize that. How about this (in attachment)? -- keywords: +patch Added file: http://bugs.python.org/file29106/profile-refactoring.diff ___ Python tracker

[issue17220] Little enhancements of _bootstrap.py

2013-02-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch a little cleans and optimizes some bits of _bootstrap.py. -- components: Interpreter Core files: _bootstrap.diff keywords: patch messages: 182280 nosy: brett.cannon, ncoghlan, serhiy.storchaka priority: normal severity: normal stag

[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists

2013-02-17 Thread Eric V. Smith
Eric V. Smith added the comment: I don't think such files are common: I've never seen such a file "in the wild". I created one, by accident, while testing PEP 420. OTOH, it was surprisingly easy to create the malformed file with zipfile. -- ___ Pyth

[issue17219] cross add Python's library directory when building python standard extensions

2013-02-17 Thread Roumen Petrov
Changes by Roumen Petrov : -- components: +Cross-Build -Build type: -> compile error ___ Python tracker ___ ___ Python-bugs-list mail

[issue17219] cross add Python's library directory when building python standard extensions

2013-02-17 Thread Roumen Petrov
New submission from Roumen Petrov: For native build distutils add current directory to library path. This is not activated in case of cross-build. Before , as part of issue3871 and issue15483, was updated setup.py , but now I would like to propose a simple more general solution with attached p

[issue12641] Remove -mno-cygwin from distutils

2013-02-17 Thread Roumen Petrov
Roumen Petrov added the comment: Hi Matthias, This issue is only for windows. In scope autotool based builds compiler customization is used to 'transfer' some build settings (flags, options) to distutils. This include compiler set in make macro (variable) CC. Transfer is not complete but thi

[issue17211] pkgutil.iter_modules and walk_packages should return a namedtuple

2013-02-17 Thread Ramchandra Apte
Ramchandra Apte added the comment: Please review. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue17044] Implement PEP 422: Simple class initialisation hook

2013-02-17 Thread Daniel Urban
Changes by Daniel Urban : Added file: http://bugs.python.org/file29102/pep422.patch ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue17044] Implement PEP 422: Simple class initialisation hook

2013-02-17 Thread Daniel Urban
Daniel Urban added the comment: Yes, if we would add a regular (instance) method __init_class__ to type, it could (probably) work for regular (non-meta) classes, but not for metaclasses. If a metaclass Meta wouldn't define __init_class__ itself, calling Meta.__init_class__() in __build_class_

[issue17216] sparc linux build fails with "could not import runpy module"

2013-02-17 Thread uservorname usernachname
uservorname usernachname added the comment: I also tried to compile with ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --bindir=/usr --sysconfdir=/etc --sbindir=/usr/sbin/ --build=sparc-linux --libdir=/usr/lib --includedir=/usr/include --datarootdir=/usr/share -

[issue17215] documentation misprints

2013-02-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. July, would you fill Licence agreement http://www.python.org/psf/contrib/? -- nosy: +asvetlov resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue17215] documentation misprints

2013-02-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8c7719b06ba6 by Andrew Svetlov in branch '3.3': Issue #17215: Fix documentation misprints (patch by July Tikhonov) http://hg.python.org/cpython/rev/8c7719b06ba6 New changeset 627ebd001708 by Andrew Svetlov in branch 'default': Issue #17215: Fix docu

[issue15767] add ModuleNotFoundError

2013-02-17 Thread Brett Cannon
Brett Cannon added the comment: Eric: knock yourself out. =) Serhiy: What exception is raised in that situation is controlled by the eval loop, not importlib so that would be a separate change. But regardless, there is no way to infer whether you expected an attribute or module to be there, j

[issue17191] pdb list shows unexpected code when stack frame includes a try / finally block

2013-02-17 Thread Xavier de Gaye
Xavier de Gaye added the comment: This is fixed in python 3.2 by changeset 670d4cbf1464, and indeed the '>>' marker is shown at line 8 of pdb_list_bug_reproduce.py when debugging this (modified for py3) script with python 3.2. -- nosy: +xdegaye ___ Py

[issue17216] sparc linux build fails with "could not import runpy module"

2013-02-17 Thread uservorname usernachname
uservorname usernachname added the comment: Thanks for your hint. I did: ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --bindir=/usr --sysconfdir=/etc --sbindir=/usr/sbin/ & make 2>&1 | tee build-log.txt and get: gcc -pthread -fPIC -Wno-unused-result -DNDEBUG -g

[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

2013-02-17 Thread Stefan Krah
Stefan Krah added the comment: Serhiy Storchaka wrote: > > { path: [string, bytes, int] => path_converter => path_t }, > > And register types somewhere: I must admit that I had a similar thought when I first heard about the project: If we're going through all this anyway, why not have a regist

[issue17044] Implement PEP 422: Simple class initialisation hook

2013-02-17 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, I think I see your point - because __init_class__ is supposed to be a class method on instances of the metaclass, the anchor needs to be on object (the highest level instance of the default metaclass), not on type if we don't want super to behave strangely?

[issue15004] add weakref support to types.SimpleNamespace

2013-02-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: No, you should also test the weakref returns None once the object is garbage collected. -- ___ Python tracker ___ _

[issue17044] Implement PEP 422: Simple class initialisation hook

2013-02-17 Thread Daniel Urban
Changes by Daniel Urban : Added file: http://bugs.python.org/file29098/pep422_4.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17044] Implement PEP 422: Simple class initialisation hook

2013-02-17 Thread Daniel Urban
Changes by Daniel Urban : Removed file: http://bugs.python.org/file29097/pep422_4.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue17044] Implement PEP 422: Simple class initialisation hook

2013-02-17 Thread Daniel Urban
Daniel Urban added the comment: Thanks for the grammar correction, I've fixed it in the new patch. The new patch also adds object.__init_class__ (which is a no-op), to support cooperative multiple inheritance of __init_class__. (Adding type.__init_class__ was mentioned in the python-dev discus

[issue13124] Add "Running a Build Slave" page to the devguide

2013-02-17 Thread Stefan Krah
Stefan Krah added the comment: Eric Snow wrote: > Looking this over, it seems like there were outstanding objections to adding > this to the devguide and to the content. I have no issues with the content of the second patch. However, snakebite has changed the situation a little: We don't need

[issue15767] add ModuleNotFoundError

2013-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: from foo import bar Here bar can be not module, but an attribute of foo (for example, os.path). What error will be raised in this case? Module or attribute - this is an implementation detail; why do we distinguish between these cases? -- nosy: +serh