[issue19373] Tkinter apps including IDLE may not display properly on OS X 10.9 Mavericks

2013-10-23 Thread Ned Deily
New submission from Ned Deily: On OS X 10.9 Mavericks, there is a problem with Aqua Cocoa Tk 8.5 (8.5.15 or earlier) when run in 64-bit mode, the default for most applications. The symptoms are that Tk widgets may not be properly drawn or updated on the screen unless some HID activity takes p

[issue16113] SHA-3 (Keccak) support may need to be removed before 3.4

2013-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'm prepared to pull the plug if there is any doubt about the final version > of SHA-3 before beta 2 is released on Jan 5th. Shouldn't it be removed before beta1? The usual rule of feature freeze applies here. -- ___

[issue19358] Integrate "Argument Clinic" into CPython build

2013-10-23 Thread Larry Hastings
Larry Hastings added the comment: I thought it'd be more like, write a special C program that probes to see if you have a built python in the current directory, and if not looks on the path for a python3 (>=3.3), and if it finds a python it can use it runs Clinic on its arguments. Then make s

[issue19350] macurl2path coverage

2013-10-23 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- versions: +Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19350] macurl2path coverage

2013-10-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Patch committed in these versions. Thank you! 2.7 -5fda64d39540 3.3 - 06b9a9e75a6c 3.4 - 060d9b2e4d5e -- assignee: -> orsenthil resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior _

[issue19364] Implementing __getattr__ breaks copy and deepcopy

2013-10-23 Thread Eric Snow
Eric Snow added the comment: Your example worked correctly, since the copy module is indeed not copiable. :) Did you mean "from copy import copy"? -- nosy: +eric.snow ___ Python tracker __

[issue19372] getaddrinfo() bug

2013-10-23 Thread Daniel
New submission from Daniel: I have two systems, one is CentOS 5.9 with kernel 2.6.18-348, the other is CentOS 6.4 with kernel 2.6.32-358. Python ver is 2.7.5. both configure ok if no other option give, But if I want configure with --enable-shared, CentOS 6.4 get a You must get working getadd

[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2013-10-23 Thread Ned Deily
Ned Deily added the comment: Until the updated readline module is available in python.org 2.7.6 and 3.3.3 maintenance releases, here is a script that will check python.org versions of Python 2.7.x, 3.2.x, 3.3.x, and 3.4.x for interactive crashes and will patch around the problem as needed. On

[issue19281] add __objclass__ to the docs

2013-10-23 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue18458] interactive interpreter crashes and test_readline fails with newer versions of libedit

2013-10-23 Thread Ned Deily
Changes by Ned Deily : Added file: http://bugs.python.org/file32324/patch_readline_issue_18458.sh ___ Python tracker ___ ___ Python-bugs-list

[issue16113] SHA-3 (Keccak) support may need to be removed before 3.4

2013-10-23 Thread Tim Peters
Changes by Tim Peters : -- priority: normal -> release blocker title: Add SHA-3 (Keccak) support -> SHA-3 (Keccak) support may need to be removed before 3.4 ___ Python tracker _

[issue16113] Add SHA-3 (Keccak) support

2013-10-23 Thread Larry Hastings
Larry Hastings added the comment: *sigh* fine. But the title of the issue is no longer accurate. And, Christian, I generate the 3.4 maintenance branch during the release process, not before. So if you have to remove sha3 you're going to have to remove it from trunk. --

[issue16113] Add SHA-3 (Keccak) support

2013-10-23 Thread Tim Peters
Tim Peters added the comment: @Larry, you seem to be misreading this. They're not saying 3.4 can't be released until this feature is added. It's _already_ been added. They're saying 3.4 possibly can't be released until this feature is _removed_ - but whether it needs to be removed is outsid

[issue16113] Add SHA-3 (Keccak) support

2013-10-23 Thread Larry Hastings
Larry Hastings added the comment: You guys are making me cranky. Please stop adding me to this issue. -- ___ Python tracker ___ ___ P

[issue16113] Add SHA-3 (Keccak) support

2013-10-23 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Here "release blocker" would mean that if SHA-3 specification is not finished, then "the release cannot go out until SHA-3 is deleted". -- nosy: +larry ___ Python tracker

[issue16113] Add SHA-3 (Keccak) support

2013-10-23 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: -larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue16113] Add SHA-3 (Keccak) support

2013-10-23 Thread Larry Hastings
Larry Hastings added the comment: "release blocker" means "the release cannot go out until this issue is solved". Adding SHA-3, while nice, is simply not something I am going to hold up 3.4 for, full stop. Please stop marking this issue as a "release blocker". -- ___

[issue16113] Add SHA-3 (Keccak) support

2013-10-23 Thread Christian Heimes
Christian Heimes added the comment: Larry: I have marked this new feature as release blocker because I may have to remove it and reschedule its addition for 3.5. I'd like to remove it after you have branched off the 3.4 branch. -- nosy: +larry ___ P

[issue16113] Add SHA-3 (Keccak) support

2013-10-23 Thread Christian Heimes
Christian Heimes added the comment: I'm tracking the SHA-3 progress closely. I'm prepared to pull the plug if there is any doubt about the final version of SHA-3 before beta 2 is released on Jan 5th. Larry: I have marked this new feature as release blocker because I may have to remove it and

[issue16113] Add SHA-3 (Keccak) support

2013-10-23 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: -larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue16113] Add SHA-3 (Keccak) support

2013-10-23 Thread Larry Hastings
Larry Hastings added the comment: Victor: a "new feature" is not a "release blocker". -- priority: release blocker -> normal ___ Python tracker ___ __

[issue16113] Add SHA-3 (Keccak) support

2013-10-23 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +larry priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue16113] Add SHA-3 (Keccak) support

2013-10-23 Thread haakon
haakon added the comment: Please make sure that the currently committed code is not released as part of Python 3.4. SHA-3 is not standardised yet, and NIST has said that they intend to make some changes to the Keccak SHA-3 submission before standardisation as a FIPS. The links englabenny post

[issue19371] timing test too tight

2013-10-23 Thread Antoine Pitrou
New submission from Antoine Pitrou: Looks like test_asyncio still has rather tight timing expectations: http://buildbot.python.org/all/builders/x86%20Windows%20Server%202008%20%5BSB%5D%203.x/builds/1495/steps/test/logs/stdio ==

[issue19370] Entering integers in python interpreter causes segfault

2013-10-23 Thread Ned Deily
Ned Deily added the comment: This is a duplicate of Issue18458. Until 2.7.6 is available for download, a workaround is to disable readline processing by moving _readline.so as suggested in the other issue. -- nosy: +ned.deily resolution: -> duplicate stage: -> committed/rejected sta

[issue19370] Entering integers in python interpreter causes segfault

2013-10-23 Thread STINNER Victor
STINNER Victor added the comment: It looks like a duplicate of #19366. -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mai

[issue19366] Segfault in REPL due to escaped tab.

2013-10-23 Thread STINNER Victor
STINNER Victor added the comment: #19370 is probably a duplicate of this one. -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-l

[issue19369] PyObject_LengthHint is slow

2013-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Here is a patch which uses _PyObject_HasLen. It has same performance > but is much simpler. Thanks! -- ___ Python tracker ___ ___

[issue19370] Entering integers in python interpreter causes segfault

2013-10-23 Thread Henry Corrigan-Gibbs
New submission from Henry Corrigan-Gibbs: Since upgrading to Mac OS X 10.9 (13A603), the interactive python interpreter crashes after I enter two lines of code, no matter how simple they are. The trace below shows that the shell segfaults after entering the integer "1" followed by the integer

[issue19369] PyObject_LengthHint is slow

2013-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which uses _PyObject_HasLen. It has same performance but is much simpler. -- Added file: http://bugs.python.org/file32323/lengthhint_2.patch ___ Python tracker _

[issue18458] interactive interpreter crashes and test_readline fails with newer versions of libedit

2013-10-23 Thread Ned Deily
Ned Deily added the comment: Robert, I appreciate your effort but I do not think it is good practice to recommend downloading and installing binary bits from the bug tracker from an uploaded file. Also, at a cursory examination, the readline.so supplied is not exactly a drop-in replacement fo

[issue19359] reversed() does not work with weakref.proxy of sequences

2013-10-23 Thread Claudiu.Popa
Claudiu.Popa added the comment: Attached an attemptive patch. -- keywords: +patch nosy: +Claudiu.Popa Added file: http://bugs.python.org/file32322/reversed_proxy.patch ___ Python tracker ___

[issue19331] Revise PEP 8 recommendation for class names

2013-10-23 Thread Ethan Furman
Changes by Ethan Furman : Added file: http://bugs.python.org/file32321/issue19331.stoneleaf.02.patch ___ Python tracker ___ ___ Python-bugs-li

[issue18458] interactive interpreter crashes and test_readline fails with newer versions of libedit

2013-10-23 Thread Robert Xiao
Robert Xiao added the comment: I've attached a fixed readline.so built from today's 2.7 branch, for the convenience of anyone who upgraded to 10.9 and now has crashing Python. Drop the file in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload, replacing the original

[issue18685] Restore re performance to pre-PEP393 level

2013-10-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: -Pointers point out of array bound in _sre.c ___ Python tracker ___ ___ Python-bugs-li

[issue18684] Pointers point out of array bound in _sre.c

2013-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Because currently there is no way to test behavior change of this patch (besides rollback a patch committed in issue17998) I think that it worth to apply only in 3.4. When the bug will be reproduced we could backport it to maintenance releases. -- v

[issue19369] PyObject_LengthHint is slow

2013-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What if use _PyObject_HasLen? if (_PyObject_HasLen(o)) { res = PyObject_Length(o); ... } hint = _PyObject_LookupSpecial(o, &PyId___length_hint__); ... -- nosy: +serhiy.storchaka ___ Python tracker

[issue19332] Guard against changing dict during iteration

2013-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: If there's no performance regression, then this sounds like a reasonable idea. The remaining question would be whether it can break existing code. Perhaps you should ask python-dev? -- ___ Python tracker

[issue19360] test_site fails when installed into $HOME/.local

2013-10-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7f465e154b6d by Antoine Pitrou in branch '3.3': Issue #19360: fix test_site when Python is installed into $HOME/.local http://hg.python.org/cpython/rev/7f465e154b6d New changeset 61463ff7dc68 by Antoine Pitrou in branch 'default': Issue #19360: fix

[issue19360] test_site fails when installed into $HOME/.local

2013-10-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue19332] Guard against changing dict during iteration

2013-10-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue19368] Seg Fault after upgrading to OS X Mavericks

2013-10-23 Thread Ned Deily
Ned Deily added the comment: This is a duplicate of Issue18458. The problem is due to an incompatible update to the GNU readline compatibility layer of the editline shared library (libedit) in OS X 10.9. The fix for this will be in the upcoming Python 2.7.6 and 3.3.3 maintenance releases, exp

[issue19332] Guard against changing dict during iteration

2013-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In the first patch the counter was placed in the _dictkeysobject structure. In the second place it is placed in the PyDictObject so it now has no memory cost. Access time to new counter for non-modifying operations is same as in current code. The only additi

[issue19369] PyObject_LengthHint is slow

2013-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. Micro-benchmark: $ ./python -m timeit -s "l=[]; it=(x for x in ())" "l.extend(it)" -> before: 0.449 usec per loop -> after: 0.179 usec per loop -- keywords: +patch Added file: http://bugs.python.org/file32318/lengthhint.patch _

[issue19369] PyObject_LengthHint is slow

2013-10-23 Thread Antoine Pitrou
New submission from Antoine Pitrou: PyObject_LengthHint is in the critical patch for many operations (such as list constructor, or list.extend), but it's quite unoptimized. -- components: Interpreter Core messages: 201060 nosy: benjamin.peterson, pitrou, rhettinger priority: normal seve

[issue19368] Seg Fault after upgrading to OS X Mavericks

2013-10-23 Thread Matt Dodge
New submission from Matt Dodge: Upgraded to OS X Mavericks (not sure if this is what caused it or not). Running Python 2.7.5 (v2.7.5:ab05e7dd2788, May 13 2013, 13:18:45) Python will seg fault when trying to evaluate the expression bool('False') To reproduce, from terminal, launch Python, enter

[issue19365] Quadratic complexity in the parsing of re replacement string

2013-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Antoine for your review. -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue19365] Quadratic complexity in the parsing of re replacement string

2013-10-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset b322047fec55 by Serhiy Storchaka in branch 'default': Issue #19365: Optimized the parsing of long replacement string in re.sub*() http://hg.python.org/cpython/rev/b322047fec55 -- nosy: +python-dev ___ Pyt

[issue19366] Segfault in REPL due to escaped tab.

2013-10-23 Thread George King
George King added the comment: thank you. i worked around this by building python3 from source, with gnu readline libs i had previously compiled (those did not require a rebuild on osx 10.9). -- ___ Python tracker

[issue18314] Have os.unlink remove junction points

2013-10-23 Thread Tim Golden
Tim Golden added the comment: Sounds like a decent plan to me. Good luck with the buffer sizing! -- ___ Python tracker ___ ___ Python-

[issue18314] Have os.unlink remove junction points

2013-10-23 Thread Kim Gräsman
Kim Gräsman added the comment: I didn't know about _winapi; looks like a good place! It looks like it exposes the Windows API pretty faithfully, but the junction point stuff feels like it would be better represented as a simple _winapi.CreateJunctionPoint(source, target) rather than attempting

[issue5300] distutils ignores file permissions

2013-10-23 Thread Garrett Cooper
Garrett Cooper added the comment: The whole permissions setting operation seems a bit convoluted. I was hoping there was something formalized with install_data.py where I could specify a default or fine-grained user/group/mode for files, but it doesn't appear to be possible. I'll investigate a

[issue19366] Segfault in REPL due to escaped tab.

2013-10-23 Thread Ned Deily
Ned Deily added the comment: This is a duplicate of Issue18458. The problem is due to an incompatible update to the GNU readline compatibility layer of the editline shared library (libedit) in OS X 10.9. The fix for this will be in the upcoming Python 2.7.6 and 3.3.3 maintenance releases, exp

[issue19367] IDLE wont open

2013-10-23 Thread MrE Merry
New submission from MrE Merry: Python IDLE won't open - just get firewall error message, yet no firewalls are present. Tried both on school laptop (I'm a teacher) and pupil work station (logged on as myself). Students are able to open IDLE without issues. -- components: IDLE files: E

[issue19356] Change argument _self in _io/textio.c

2013-10-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 763af3d957f3 by Antoine Pitrou in branch '3.3': Issue #19356: Avoid using a C variabled named "_self", it's a reserved word in some C compilers. http://hg.python.org/cpython/rev/763af3d957f3 New changeset f6430aec5bf2 by Antoine Pitrou in branch 'd

[issue19356] Change argument _self in _io/textio.c

2013-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the patches, they're committed now. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: -Python 2.7 ___ Python tracker _

[issue19352] unittest loader barfs on symlinks

2013-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed! -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue19352] unittest loader barfs on symlinks

2013-10-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset a830cc1c0565 by Antoine Pitrou in branch '3.3': Issue #19352: Fix unittest discovery when a module can be reached through several paths (e.g. under Debian/Ubuntu with virtualenv). http://hg.python.org/cpython/rev/a830cc1c0565 New changeset ebbe8720

[issue19352] unittest loader barfs on symlinks

2013-10-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset d7ec961cea1c by Antoine Pitrou in branch '2.7': Issue #19352: Fix unittest discovery when a module can be reached through several paths (e.g. under Debian/Ubuntu with virtualenv). http://hg.python.org/cpython/rev/d7ec961cea1c -- nosy: +pyth

[issue19340] test_sysconfig.test_srcdir fails when sys.base_prefix="/"

2013-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patched committed, thank you! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue19340] test_sysconfig.test_srcdir fails when sys.base_prefix="/"

2013-10-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset ef6eb5ce4f8e by Antoine Pitrou in branch '3.3': Issue #19340: Fix test_sysconfig when Python is built with an empty prefix. http://hg.python.org/cpython/rev/ef6eb5ce4f8e New changeset f797a14cbcfd by Antoine Pitrou in branch 'default': Issue #19340:

[issue19345] Unclear phrasing in whatsnew/3.4.rst

2013-10-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5e606f093d8f by Victor Stinner in branch 'default': Close #19345: fix typo http://hg.python.org/cpython/rev/5e606f093d8f -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> closed ___

[issue19366] Segfault in REPL due to escaped tab.

2013-10-23 Thread Tim Peters
Tim Peters added the comment: Oops! Now it' the 5th comment ;-) The one starting "running the following command, I got it working ...". -- ___ Python tracker ___ _

[issue19366] Segfault in REPL due to escaped tab.

2013-10-23 Thread STINNER Victor
Changes by STINNER Victor : -- assignee: -> ronaldoussoren components: +Macintosh ___ Python tracker ___ ___ Python-bugs-list mailing

[issue19366] Segfault in REPL due to escaped tab.

2013-10-23 Thread Tim Peters
Tim Peters added the comment: See the 4th comment on this post: http://stackoverflow.com/questions/18158381/python-crashing-when-running-two-commands Let us know whether it fixes your problem! -- nosy: +tim.peters ___ Python tracker

[issue19336] No API to get events from epoll without allocating a list

2013-10-23 Thread Charles-François Natali
Charles-François Natali added the comment: I'm also skeptical: I doubt the list allocation weights much compared to the syscall. And like Christian, I'm curious to know which implementation you'd chose. -- ___ Python tracker

[issue14157] time.strptime without a year fails on Feb 29

2013-10-23 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19366] Segfault in REPL due to escaped tab.

2013-10-23 Thread George King
George King added the comment: this is probably due to system upgrade from OS X 10.8 to 10.9 (mavericks) yesterday. -- ___ Python tracker ___ ___

[issue19366] Segfault in REPL due to escaped tab.

2013-10-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +hynek, ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue19366] Segfault in REPL due to escaped tab.

2013-10-23 Thread George King
George King added the comment: actually, the second line of any interactive session is segfaulting; my installation must be corrupted. -- ___ Python tracker ___

[issue19366] Segfault in REPL due to escaped tab.

2013-10-23 Thread George King
New submission from George King: I can crash python2.7.5 python3.3.2 from the REPL consistently: $ python3 Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> s

[issue19365] Quadratic complexity in the parsing of re replacement string

2013-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Normally optimizations should only land in the default branch, unless it's catastrophic regression. -- nosy: +tim.peters versions: -Python 2.7, Python 3.3 ___ Python tracker

[issue19365] Quadratic complexity in the parsing of re replacement string

2013-10-23 Thread Christian Heimes
Christian Heimes added the comment: LTGM except for Python 2.7. I think we should slowly stop applying optimizations and other non-critical fixes to 2.7. -- nosy: +christian.heimes ___ Python tracker _

[issue1540] Refleak tests: test_doctest and test_gc are failing

2013-10-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19362] Documentation for len() fails to mention that it works on sets

2013-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, the patch is for the builtins documentation as well as len.__doc__. -- ___ Python tracker ___

[issue19362] Documentation for len() fails to mention that it works on sets

2013-10-23 Thread R. David Murray
R. David Murray added the comment: I thought we were talking about the reference guide, not the tutorial? -- ___ Python tracker ___ __

[issue19365] Quadratic complexity in the parsing of re replacement string

2013-10-23 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: sre_parse.parse_template uses string concatenation to accumulate characters. def literal(literal, p=p, pappend=a): if p and p[-1][0] is LITERAL: p[-1] = LITERAL, p[-1][1] + literal else: pappend((LITERAL, literal))

[issue1540] Refleak tests: test_doctest and test_gc are failing

2013-10-23 Thread Christian Heimes
Christian Heimes added the comment: I agree with not fixing 3.3. -- status: pending -> open ___ Python tracker ___ ___ Python-bugs-list

[issue19345] Unclear phrasing in whatsnew/3.4.rst

2013-10-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: docs@python -> haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue1540] Refleak tests: test_doctest and test_gc are failing

2013-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: The GC behaves gracefully in 3.4: the gc_bug script shows no uncollectable object. I don't think this is worth fixing in 3.3. -- nosy: +pitrou resolution: -> out of date status: open -> pending versions: -Python 3.4 __

[issue19362] Documentation for len() fails to mention that it works on sets

2013-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Perhaps it would be better to say that "the argument may be any > object with a __len__, such as the commonly used Python sequence and > container types str, bytes, tuple, list, dict, and set". After all, > there are other built in types it works on as well: b

[issue19361] Specialize exceptions thrown by JSON parser

2013-10-23 Thread Utkarsh Upadhyay
Utkarsh Upadhyay added the comment: Excellent! Is there an issue for merging Simplejson into stdlib? If so, can this issue be linked to that issue? -- ___ Python tracker ___ ___

[issue19362] Documentation for len() fails to mention that it works on sets

2013-10-23 Thread R. David Murray
R. David Murray added the comment: Perhaps it would be better to say that "the argument may be any object with a __len__, such as the commonly used Python sequence and container types str, bytes, tuple, list, dict, and set". After all, there are other built in types it works on as well: bytea

[issue19362] Documentation for len() fails to mention that it works on sets

2013-10-23 Thread Gareth Rees
Gareth Rees added the comment: I considered suggesting "container", but the problem is that "container" is used elsewhere to mean "object supporting the 'in' operator" (in particular, collections.abc.Container has a __contains__ method but no __len__ method). The abstract base class for "objec

[issue19361] Specialize exceptions thrown by JSON parser

2013-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Simplejson already have JSONDecodeError. class JSONDecodeError(ValueError): """Subclass of ValueError with the following additional properties: msg: The unformatted error message doc: The JSON document being parsed pos: The start index of doc

[issue19364] Implementing __getattr__ breaks copy and deepcopy

2013-10-23 Thread Kassym Dorsel
New submission from Kassym Dorsel: When __getattr__ is implemented without also implementing __copy__ and __deepcopy__ trying to (deep)copy the class fails. >>> import copy >>> class foo(): ... def __getattr__(self, attr): ... return None ... >>> f = foo() >>> copy(f) Traceback (most rece

[issue17762] platform.linux_distribution() should honor /etc/os-release

2013-10-23 Thread Andrei Dorian Duma
Andrei Dorian Duma added the comment: I'm working on a patch. Hopefully, it will be ready in a day or two. -- nosy: +AndreiDuma ___ Python tracker ___ ___

[issue19362] Documentation for len() fails to mention that it works on sets

2013-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: "Return the number of items of a container" sounds simple and accurate to me. -- nosy: +pitrou, rhettinger ___ Python tracker ___ __

[issue19340] test_sysconfig.test_srcdir fails when sys.base_prefix="/"

2013-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch looks fine to me. -- nosy: +pitrou priority: normal -> low stage: -> patch review versions: +Python 3.3 ___ Python tracker ___ __

[issue19363] Python 2.7's future_builtins.map is not compatible with Python 3's map

2013-10-23 Thread Jon Clements
Changes by Jon Clements : -- nosy: +joncle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue19363] Python 2.7's future_builtins.map is not compatible with Python 3's map

2013-10-23 Thread Gareth Rees
New submission from Gareth Rees: In Python 2.7, future_builtins.map accepts None as its first (function) argument: Python 2.7.5 (default, Aug 1 2013, 01:01:17) >>> from future_builtins import map >>> list(map(None, range(3), 'ABC')) [(0, 'A'), (1, 'B'), (2, 'C')] But in Pytho

[issue19340] test_sysconfig.test_srcdir fails when sys.base_prefix="/"

2013-10-23 Thread Sunny K
Changes by Sunny K : -- nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[issue19362] Documentation for len() fails to mention that it works on sets

2013-10-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue19340] test_sysconfig.test_srcdir fails when sys.base_prefix="/"

2013-10-23 Thread Sunny K
Changes by Sunny K : -- keywords: +patch Added file: http://bugs.python.org/file32314/test_sysconfig.patch ___ Python tracker ___ ___

[issue19362] Documentation for len() fails to mention that it works on sets

2013-10-23 Thread Gareth Rees
New submission from Gareth Rees: The help text for the len() built-in function says: Return the number of items of a sequence or mapping. This omits to mention that len() works on sets too. I suggest this be changed to: Return the number of items of a sequence, mapping, or set. Simil

[issue18314] Have os.unlink remove junction points

2013-10-23 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue18314] Have os.unlink remove junction points

2013-10-23 Thread Tim Golden
Tim Golden added the comment: Just picking this up. Considering testing... My current proposal is to add junction point support to _winapi, initially for the sole purpose of testing this change, but with a view to possibly supporting it formally via the os module. Any better ideas? --

[issue19356] Change argument _self in _io/textio.c

2013-10-23 Thread Jeffrey Armstrong
Jeffrey Armstrong added the comment: And finally here's the necessary changes to Modules/_elementree.c as well. -- Added file: http://bugs.python.org/file32312/_elementree._self.3.3.2.patch ___ Python tracker _

[issue19356] Change argument _self in _io/textio.c

2013-10-23 Thread Jeffrey Armstrong
Jeffrey Armstrong added the comment: That was sloppy of me to not check other modules. I hadn't encountered them in my build yet. Here's a patch for Modules/_ctypes/_ctypes.c and Modules/_ctypes/callbacks.c. The arguments were changed similarly to "myself." -- Added file: http://bug

[issue19361] Specialize exceptions thrown by JSON parser

2013-10-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Library (Lib) nosy: +ezio.melotti, pitrou, rhettinger versions: +Python 3.4 ___ Python tracker ___ _

  1   2   >