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

2013-10-23 Thread Austin Bingham
New submission from Austin Bingham: When passed a weakref.proxy to a legitimate sequence, reversed() throws a TypeError complaining that its argument isn't a sequence. Perhaps this is the expected behavior, but it's surprising to at least me and the few others I've spoken with about it. -

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

2013-10-23 Thread Tim Golden
Tim Golden added the comment: I don't feel strongly about this. However, ISTM that we work reasonably hard to work with the vagaries of *nix toolchains so I don't see why an unintrusive change like this shouldn't go in to support some corner cases on the Windows front. -- __

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

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

[issue19358] Integrate "Argument Clinic" into CPython build

2013-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, I don't really know how to do it. You'd have to have a step that somehow scans for .c files in the source tree, looks for clinic headers and compute whether they're outdated? (but this must only be done if the .c files are younger than the .o files, i.e.

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

2013-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: I see other instances of _self in elementtree and ctypes. Don't you want to replace those too? -- nosy: +pitrou ___ Python tracker ___

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

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

[issue17791] PC/pyconfig.h defines PREFIX macro

2013-10-23 Thread Tim Golden
Tim Golden added the comment: Ok by me: build and tests all ok. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue17791] PC/pyconfig.h defines PREFIX macro

2013-10-23 Thread Christian Heimes
Christian Heimes added the comment: Fantastic! Does anybody know anything about Cygwin builds? I expect that Cygwin uses autoconf to generate its own pyconfig.h. -- ___ Python tracker _

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

2013-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: A list of a couple events should be very cheap to allocate. How many events do you get? -- nosy: +pitrou ___ Python tracker ___ ___

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

2013-10-23 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

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

2013-10-23 Thread Christian Heimes
Christian Heimes added the comment: How is iterpoll() suppose to work? Do epoll_wait() with maxevents=1 in a loop, yield (fd, event) tuples and stop/block on no events? -- components: +Extension Modules type: -> enhancement versions: +Python 3.4 ___

[issue19237] Proposal : LCM function to complement GCD

2013-10-23 Thread Mark Dickinson
Mark Dickinson added the comment: I'm going to reject this for the reasons already given above. It's easy to write your own (lightweight, inefficient) lcm and multi-argument gcd if you need them. For more serious work, you probably want to avoid Python's gcd anyway---it's horribly inefficien

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

2013-10-23 Thread Antoine Pitrou
New submission from Antoine Pitrou: If I configure Python with "$HOME/.local" as a prefix, test_site fails: == FAIL: test_s_option (test.test_site.HelperFunctionsTests) ---

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

2013-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Proposed patch. -- keywords: +patch Added file: http://bugs.python.org/file32310/test_site_19360.patch ___ Python tracker ___ __

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

2013-10-23 Thread Christian Heimes
Christian Heimes added the comment: *bump up* I'd like to see the feature in 3.4. It shouldn't be too hard to implement it. A patch would also solve #1322 and #9514 on most modern systems. For the record RHEL 5, RHEL 6.4, SLES 11 and Ubuntu 10.04 don't have /etc/os-release. Ubuntu 12.04 has

[issue17761] platform._parse_release_file doesn't close the /etc/lsb-release file, doesn't know about 'Ubuntu'

2013-10-23 Thread Christian Heimes
Christian Heimes added the comment: #17762 suggests /etc/os-release instead of /etc/lsb-release. -- nosy: +christian.heimes type: -> behavior ___ Python tracker ___

[issue19361] Specialize exceptions thrown by JSON parser

2013-10-23 Thread Utkarsh Upadhyay
New submission from Utkarsh Upadhyay: The JSON parser currently throws exceptions which contain information about where the error happened but this information is encoded in a string and not available to the programmer. This leads to issues like this: http://stackoverflow.com/questions/1951940

[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 ___ _

[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

[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 _

[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? --

[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

[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

[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 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 : -- nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[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

[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.

[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 ___ __

[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 ___ __

[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 ___ ___

[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

[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

[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

[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

[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 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

[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 __

[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 Christian Heimes
Christian Heimes added the comment: I agree with not fixing 3.3. -- status: pending -> open ___ Python tracker ___ ___ Python-bugs-list

[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))

[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 ___ __

[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 ___

[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

[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 _

[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

[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

[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 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: this is probably due to system upgrade from OS X 10.8 to 10.9 (mavericks) yesterday. -- ___ 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

[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

[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

[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: Oops! Now it' the 5th comment ;-) The one starting "running the following command, I got it working ...". -- ___ Python tracker ___ _

[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 ___

[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:

[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 ___ _

[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

[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 Antoine Pitrou
Antoine Pitrou added the comment: Fixed! -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[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 _

[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

[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

[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

[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

[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

[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-

[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

[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

[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 ___

[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

[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

[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 _

[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

[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 Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[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 ___ __

[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

[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

[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

[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

[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

[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

[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

[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 ___

[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

[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 _

[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 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 ___ ___

[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

[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

[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

[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 ==

[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

[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 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 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 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

  1   2   >