[issue19358] Integrate Argument Clinic into CPython build
New submission from Larry Hastings: Somebody needs to figure out how to best integrate Argument Clinic into the build. Antoine, I think you said it sounded like... fun? Maybe? Anyway, I'm hoping you're willing to take a stab at it. If not please assign the issue back to nobody, and sorry the intrusion. -- assignee: pitrou components: Build messages: 201000 nosy: larry, pitrou priority: normal severity: normal status: open title: Integrate Argument Clinic into CPython build versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19358 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19357] Module does not get pulled from sys.modules during importlib testing
Changes by Eric Snow ericsnowcurren...@gmail.com: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19357 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19358] Integrate Argument Clinic into CPython build
Changes by Antoine Pitrou pit...@free.fr: -- assignee: pitrou - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19358 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19358] Integrate Argument Clinic into CPython build
Larry Hastings added the comment: Drat! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19358 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19356] Change argument _self in _io/textio.c
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +brian.curtin, tim.golden versions: +Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19356 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19359] reversed() does not work with weakref.proxy of sequences
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. -- components: Library (Lib) files: reversed_proxy_failure.py messages: 201002 nosy: abingham priority: normal severity: normal status: open title: reversed() does not work with weakref.proxy of sequences type: behavior versions: Python 2.7, Python 3.3 Added file: http://bugs.python.org/file32309/reversed_proxy_failure.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19359 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19356] Change argument _self in _io/textio.c
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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19356 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19359] reversed() does not work with weakref.proxy of sequences
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19359 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19358] Integrate Argument Clinic into CPython build
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. the step should probably be integrated to the C compilation step) -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19358 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19356] Change argument _self in _io/textio.c
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 rep...@bugs.python.org http://bugs.python.org/issue19356 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19336] No API to get events from epoll without allocating a list
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19336 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17791] PC/pyconfig.h defines PREFIX macro
Tim Golden added the comment: Ok by me: build and tests all ok. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17791 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17791] PC/pyconfig.h defines PREFIX macro
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 rep...@bugs.python.org http://bugs.python.org/issue17791 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19336] No API to get events from epoll without allocating a list
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 rep...@bugs.python.org http://bugs.python.org/issue19336 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19336] No API to get events from epoll without allocating a list
Changes by Christian Heimes li...@cheimes.de: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19336 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19336] No API to get events from epoll without allocating a list
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19336 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19237] Proposal : LCM function to complement GCD
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 inefficient, and there are 3rd party solutions for specialised number-theoretic work (e.g., SymPy, SAGE, gmpy2). -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19237 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19360] test_site fails when installed into $HOME/.local
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) -- Traceback (most recent call last): File /home/antoine/cpython/opt/Lib/test/test_site.py, line 182, in test_s_option self.assertEqual(rc, 0) AssertionError: 1 != 0 This is because the user site then falls in the same place as the main site-packages: site.getsitepackages() ['/home/antoine/.local/lib/python3.4/site-packages', '/home/antoine/.local/lib/site-python'] site.getusersitepackages() '/home/antoine/.local/lib/python3.4/site-packages' (what is site-python btw??) -- components: Tests messages: 201011 nosy: christian.heimes, pitrou priority: low severity: normal stage: needs patch status: open title: test_site fails when installed into $HOME/.local type: behavior versions: Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19360 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19360] test_site fails when installed into $HOME/.local
Antoine Pitrou added the comment: Proposed patch. -- keywords: +patch Added file: http://bugs.python.org/file32310/test_site_19360.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19360 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17762] platform.linux_distribution() should honor /etc/os-release
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 the file. -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17762 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17761] platform._parse_release_file doesn't close the /etc/lsb-release file, doesn't know about 'Ubuntu'
Christian Heimes added the comment: #17762 suggests /etc/os-release instead of /etc/lsb-release. -- nosy: +christian.heimes type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17761 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19361] Specialize exceptions thrown by JSON parser
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/19519409/how-to-get-error-location-from-json-loads-in-python Would it be a problem if the errors thrown were specialized exceptions, e.g. JSONParsingError, which has ValueError as a base class with these details (line number, char number, etc.) exposed as public members? The changes required seem to be limited to changing http://hg.python.org/cpython/file/4c4f31a1b706/Lib/json/decoder.py and the related documentation. -- components: Extension Modules messages: 201015 nosy: musically_ut priority: normal severity: normal status: open title: Specialize exceptions thrown by JSON parser type: enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19361 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19361] Specialize exceptions thrown by JSON parser
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Library (Lib) nosy: +ezio.melotti, pitrou, rhettinger versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19361 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19356] Change argument _self in _io/textio.c
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://bugs.python.org/file32311/_ctypes._self.3.3.2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19356 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19356] Change argument _self in _io/textio.c
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 rep...@bugs.python.org http://bugs.python.org/issue19356 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18314] Have os.unlink remove junction points
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? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18314 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18314] Have os.unlink remove junction points
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: -haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18314 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19362] Documentation for len() fails to mention that it works on sets
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. Similarly, the documentation for len() says: The argument may be a sequence (string, tuple or list) or a mapping (dictionary). I suggest this be changed to The argument may be a sequence (string, tuple or list), a mapping (dictionary), or a set. (Of course, strictly speaking, len() accepts any object with a __len__ method, but sequences, mappings and sets are the ones that are built-in to the Python core, and so these are the ones it is important to mention in the help and the documentation.) -- assignee: docs@python components: Documentation files: len-set.patch keywords: patch messages: 201019 nosy: Gareth.Rees, docs@python priority: normal severity: normal status: open title: Documentation for len() fails to mention that it works on sets type: enhancement Added file: http://bugs.python.org/file32313/len-set.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19362 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19340] test_sysconfig.test_srcdir fails when sys.base_prefix=/
Changes by Sunny K sunfin...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file32314/test_sysconfig.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19340 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19362] Documentation for len() fails to mention that it works on sets
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19362 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19340] test_sysconfig.test_srcdir fails when sys.base_prefix=/
Changes by Sunny K sunfin...@gmail.com: -- nosy: +tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19340 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19363] Python 2.7's future_builtins.map is not compatible with Python 3's map
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 Python 3.x, map does not accept None as its first argument: Python 3.3.2 (default, May 21 2013, 11:50:47) list(map(None, range(3), 'ABC')) Traceback (most recent call last): File stdin, line 1, in module TypeError: 'NoneType' object is not callable The documentation says, if you want to write code compatible with Python 3 builtins, import them from this module, so this incompatibility may give Python 2.7 programmers the false impression that a program which uses map(None, ...) is portable to Python 3. I suggest that future_builtins.map in Python 2.7 should behave the same as map in Python 3: that is, it should raise a TypeError if None was passed as the first argument. -- components: Library (Lib) messages: 201020 nosy: Gareth.Rees priority: normal severity: normal status: open title: Python 2.7's future_builtins.map is not compatible with Python 3's map type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19363 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19363] Python 2.7's future_builtins.map is not compatible with Python 3's map
Changes by Jon Clements jon...@googlemail.com: -- nosy: +joncle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19363 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19340] test_sysconfig.test_srcdir fails when sys.base_prefix=/
Antoine Pitrou added the comment: Patch looks fine to me. -- nosy: +pitrou priority: normal - low stage: - patch review versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19340 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19362] Documentation for len() fails to mention that it works on sets
Antoine Pitrou added the comment: Return the number of items of a container sounds simple and accurate to me. -- nosy: +pitrou, rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19362 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17762] platform.linux_distribution() should honor /etc/os-release
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 rep...@bugs.python.org http://bugs.python.org/issue17762 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19364] Implementing __getattr__ breaks copy and deepcopy
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 recent call last): File stdin, line 1, in module TypeError: 'module' object is not callable The copy module checks if a class has implemented __copy__ using hasattr: if hasattr(x, '__copy__'): ... An easy fix would be to use: if getattr(x, '__copy__', None): ... In Python 3 this change has already been made. -- components: Library (Lib) messages: 201024 nosy: Kassym.Dorsel, alexandre.vassalotti priority: normal severity: normal status: open title: Implementing __getattr__ breaks copy and deepcopy type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19364 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19361] Specialize exceptions thrown by JSON parser
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 where parsing failed end: The end index of doc where parsing failed (may be None) lineno: The line corresponding to pos colno: The column corresponding to pos endlineno: The line corresponding to end (may be None) endcolno: The column corresponding to end (may be None) Adding it to the stdlib is only matter of time. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19361 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19362] Documentation for len() fails to mention that it works on sets
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 object with a length is collections.abc.Sized, but I don't think using the term sized would be clear to users. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19362 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19362] Documentation for len() fails to mention that it works on sets
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: bytearray, frozenset, memoryview. For the other, the number of items in a sequence or container type would mostly cover it, but at the cost of being a bit obscure. Perhaps that's OK for the help text, though, since it is supposed to be a reminder, not the full documentation. Another even more obscure alternative would be the number of items in a Sized object, which would also be more accurate (since an object with a __len__ doesn't *have* to conform fully to the sequence or container ABCs...nor does a container *have* to implement __len__). -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19362 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19361] Specialize exceptions thrown by JSON parser
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 rep...@bugs.python.org http://bugs.python.org/issue19361 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19362] Documentation for len() fails to mention that it works on sets
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: bytearray, frozenset, memoryview. __len__ is an implementation detail for experts. Beginners don't need to know about __len__ in order to understand querying the length of a container. Similarly, they don't need to know about ABCs to understand, intuitively, what a container is ;-) -- title: Documentation for len() fails to mention that it works on sets - Documentation for len() fails to mention that it works on sets ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19362 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1540] Refleak tests: test_doctest and test_gc are failing
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1540 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19345] Unclear phrasing in whatsnew/3.4.rst
Changes by Antoine Pitrou pit...@free.fr: -- assignee: docs@python - haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19345 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1540] Refleak tests: test_doctest and test_gc are failing
Christian Heimes added the comment: I agree with not fixing 3.3. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1540 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19365] Quadratic complexity in the parsing of re replacement string
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)) This operation have quadratic calculation complexity for long replacement strings. $ ./python -m timeit -n1 -r1 -s from sre_parse import parse_template; repl = 'x'*10 parse_template(repl, '') 1 loops, best of 1: 3.38 sec per loop $ ./python -m timeit -n1 -r1 -s from sre_parse import parse_template; repl = 'x'*20 parse_template(repl, '') 1 loops, best of 1: 18.2 sec per loop The proposed patch change amortized complexity to be linear. It also speeds up parsing shorter strings. $ ./python -m timeit -n1 -r1 -s from sre_parse import parse_template; repl = 'x'*10 parse_template(repl, '') 1 loops, best of 1: 915 msec per loop $ ./python -m timeit -n1 -r1 -s from sre_parse import parse_template; repl = 'x'*20 parse_template(repl, '') 1 loops, best of 1: 1.79 sec per loop -- components: Library (Lib), Regular Expressions files: re_parse_template.patch keywords: patch messages: 201032 nosy: ezio.melotti, mrabarnett, pitrou, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Quadratic complexity in the parsing of re replacement string type: performance versions: Python 2.7, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file32315/re_parse_template.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19365 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19362] Documentation for len() fails to mention that it works on sets
R. David Murray added the comment: I thought we were talking about the reference guide, not the tutorial? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19362 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19362] Documentation for len() fails to mention that it works on sets
Antoine Pitrou added the comment: Well, the patch is for the builtins documentation as well as len.__doc__. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19362 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1540] Refleak tests: test_doctest and test_gc are failing
Changes by Antoine Pitrou pit...@free.fr: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1540 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19365] Quadratic complexity in the parsing of re replacement string
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 rep...@bugs.python.org http://bugs.python.org/issue19365 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19365] Quadratic complexity in the parsing of re replacement string
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 rep...@bugs.python.org http://bugs.python.org/issue19365 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19366] Segfault in REPL due to escaped tab.
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 = '\\t' s Segmentation fault: 11 $ the same goes for: Python 2.7.5 (v2.7.5:ab05e7dd2788, May 13 2013, 13:18:45) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin both of these python builds are the mac binaries from python.org. -- components: Interpreter Core messages: 201037 nosy: George.King priority: normal severity: normal status: open title: Segfault in REPL due to escaped tab. type: crash versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19366 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19366] Segfault in REPL due to escaped tab.
George King added the comment: actually, the second line of any interactive session is segfaulting; my installation must be corrupted. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19366 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19366] Segfault in REPL due to escaped tab.
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +hynek, ned.deily, ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19366 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19366] Segfault in REPL due to escaped tab.
George King added the comment: this is probably due to system upgrade from OS X 10.8 to 10.9 (mavericks) yesterday. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19366 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14157] time.strptime without a year fails on Feb 29
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14157 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19336] No API to get events from epoll without allocating a list
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 rep...@bugs.python.org http://bugs.python.org/issue19336 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19366] Segfault in REPL due to escaped tab.
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 rep...@bugs.python.org http://bugs.python.org/issue19366 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19366] Segfault in REPL due to escaped tab.
Changes by STINNER Victor victor.stin...@gmail.com: -- assignee: - ronaldoussoren components: +Macintosh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19366 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19366] Segfault in REPL due to escaped tab.
Tim Peters added the comment: Oops! Now it' the 5th comment ;-) The one starting running the following command, I got it working -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19366 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19345] Unclear phrasing in whatsnew/3.4.rst
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19345 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19340] test_sysconfig.test_srcdir fails when sys.base_prefix=/
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: Fix test_sysconfig when Python is built with an empty prefix. http://hg.python.org/cpython/rev/f797a14cbcfd -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19340 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19340] test_sysconfig.test_srcdir fails when sys.base_prefix=/
Antoine Pitrou added the comment: Patched committed, thank you! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19340 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19352] unittest loader barfs on symlinks
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: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19352 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19352] unittest loader barfs on symlinks
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 ebbe87204114 by Antoine Pitrou in branch 'default': 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/ebbe87204114 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19352 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19352] unittest loader barfs on symlinks
Antoine Pitrou added the comment: Fixed! -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19352 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19356] Change argument _self in _io/textio.c
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 rep...@bugs.python.org http://bugs.python.org/issue19356 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19356] Change argument _self in _io/textio.c
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 'default': Issue #19356: Avoid using a C variabled named _self, it's a reserved word in some C compilers. http://hg.python.org/cpython/rev/f6430aec5bf2 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19356 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19367] IDLE wont open
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: Error.gif messages: 201051 nosy: MrE.Merry priority: normal severity: normal status: open title: IDLE wont open type: performance versions: Python 3.3 Added file: http://bugs.python.org/file32316/Error.gif ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19367 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19366] Segfault in REPL due to escaped tab.
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, expected soon. In the meantime, the workaround proposed in the Stackoverflow comment will eliminate the crash. (Issue18458 will be updated shortly to include a script to do this.) -- assignee: ronaldoussoren - ned.deily resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - interactive interpreter crashes and test_readline fails with newer versions of libedit ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19366 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5300] distutils ignores file permissions
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 applying a custom rule after install is run, but I would prefer for this to be formalized in the future. -- nosy: +yaneurabeya ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5300 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18314] Have os.unlink remove junction points
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 to expose DeviceIoControl and associated structures. I'll try to cook up a patch and we can argue about details based on that :-) Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18314 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18314] Have os.unlink remove junction points
Tim Golden added the comment: Sounds like a decent plan to me. Good luck with the buffer sizing! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18314 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19366] Segfault in REPL due to escaped tab.
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 rep...@bugs.python.org http://bugs.python.org/issue19366 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19365] Quadratic complexity in the parsing of re replacement string
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19365 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19365] Quadratic complexity in the parsing of re replacement string
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 rep...@bugs.python.org http://bugs.python.org/issue19365 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19368] Seg Fault after upgrading to OS X Mavericks
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 bool('False') without quotes and press enter. -- assignee: ronaldoussoren components: Macintosh files: debug.out messages: 201059 nosy: Matt.Dodge, ronaldoussoren priority: normal severity: normal status: open title: Seg Fault after upgrading to OS X Mavericks type: crash versions: Python 2.7 Added file: http://bugs.python.org/file32317/debug.out ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19368 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19369] PyObject_LengthHint is slow
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 severity: normal status: open title: PyObject_LengthHint is slow type: performance versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19369 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19369] PyObject_LengthHint is slow
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19369 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19332] Guard against changing dict during iteration
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 additional cost is time cost for modifying operations. But modifying operations is usually much rare than non-modifying operations, and the incrementing one field takes only small part of the time needed for all operation. I don't think this will affect total performance of real programs. -- Added file: http://bugs.python.org/file32319/dict_mutating_iteration_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19332 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19368] Seg Fault after upgrading to OS X Mavericks
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, expected soon. In the meantime, you can avoid the crash by disabling the readline extension module (Issue18458 will be updated shortly to include a script to do this): cd /Library/Frameworks/Python.framework/Versions/2.7 cd ./lib/python2.7/lib-dynload sudo mv readline.so readline.so.disabled -- nosy: +ned.deily resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - interactive interpreter crashes and test_readline fails with newer versions of libedit ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19368 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19332] Guard against changing dict during iteration
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +tim.peters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19332 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19360] test_site fails when installed into $HOME/.local
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19360 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19360] test_site fails when installed into $HOME/.local
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 test_site when Python is installed into $HOME/.local http://hg.python.org/cpython/rev/61463ff7dc68 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19360 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19332] Guard against changing dict during iteration
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 rep...@bugs.python.org http://bugs.python.org/issue19332 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19369] PyObject_LengthHint is slow
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 rep...@bugs.python.org http://bugs.python.org/issue19369 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18684] Pointers point out of array bound in _sre.c
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. -- versions: -Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18684 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18685] Restore re performance to pre-PEP393 level
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: -Pointers point out of array bound in _sre.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18685 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18458] interactive interpreter crashes and test_readline fails with newer versions of libedit
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 readline.so. This file is compatible with both 32-bit and 64-bit python.org builds of Python 2.7.5. -- nosy: +nneonneo Added file: http://bugs.python.org/file32320/readline.so ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18458 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19331] Revise PEP 8 recommendation for class names
Changes by Ethan Furman et...@stoneleaf.us: Added file: http://bugs.python.org/file32321/issue19331.stoneleaf.02.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19331 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19359] reversed() does not work with weakref.proxy of sequences
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 rep...@bugs.python.org http://bugs.python.org/issue19359 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18458] interactive interpreter crashes and test_readline fails with newer versions of libedit
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 for the one supplied by the python.org installer as it is linked with wrong ncurses library. We should have a new set of maintenance releases soon. My preference would be for you to delete that file. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18458 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19369] PyObject_LengthHint is slow
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 rep...@bugs.python.org http://bugs.python.org/issue19369 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19370] Entering integers in python interpreter causes segfault
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 1 (on separate lines). The computer is a Macbook Pro, but I was able to reproduce the bug on a Macbook Air as well. # ### Trace of session ### $ python Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. 1 1 1 Segmentation fault: 11 # ### Apple crash report data ### Process: Python [1664] Path: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python Identifier: Python Version: 2.7.2 (2.7.2) Code Type: X86-64 (Native) Parent Process: bash [1661] Responsible: Terminal [1658] User ID: 501 Date/Time: 2013-10-23 14:38:46.854 -0700 OS Version: Mac OS X 10.9 (13A603) Report Version: 11 Anonymous UUID: 7AFE5583-559F-1AF6-8F53-1AB95063B98E Sleep/Wake UUID: 0112A8E8-BB6F-4797-A38D-DA6F40F06329 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x VM Regions Near 0: -- __TEXT 0001-00011000 [4K] r-x/rwx SM=COW /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 readline.so 0x0001002edf97 call_readline + 647 1 org.python.python 0x00018ad2 PyOS_Readline + 274 2 org.python.python 0x0001a328 tok_nextc + 104 3 org.python.python 0x0001aad3 PyTokenizer_Get + 147 4 org.python.python 0x000156ca parsetok + 218 5 org.python.python 0x0001000e63b2 PyParser_ASTFromFile + 146 6 org.python.python 0x0001000e7613 PyRun_InteractiveOneFlags + 243 7 org.python.python 0x0001000e78fe PyRun_InteractiveLoopFlags + 78 8 org.python.python 0x0001000e80e1 PyRun_AnyFileExFlags + 161 9 org.python.python 0x0001000fe77c Py_Main + 2940 10 org.python.python 0x00010f14 0x1 + 3860 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x rbx: 0x00010035c140 rcx: 0x000fc080 rdx: 0x00087db0 rdi: 0x rsi: 0x0001002ee254 rbp: 0x7fff5fbff660 rsp: 0x7fff5fbff590 r8: 0x00010035e700 r9: 0x00010035e750 r10: 0x3500e0a1 r11: 0x0001 r12: 0x0001 r13: 0x0001 r14: 0x7fff5fbff620 r15: 0x7fff5fbff5a0 rip: 0x0001002edf97 rfl: 0x00010202 cr2: 0x Logical CPU: 1 Error Code: 0x0004 Trap Number: 14 Binary Images: 0x1 -0x10fff +org.python.python (2.7.2 - 2.7.2) 639E72E4-F205-C034-8E34-E59DE9C46369 /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python 0x13000 -0x10016cfef +org.python.python (2.7.2, [c] 2004-2011 Python Software Foundation. - 2.7.2) 49D18B1A-C92D-E32E-A7C1-086D0B14BD76 /Library/Frameworks/Python.framework/Versions/2.7/Python 0x1002ec000 -0x1002eefff +readline.so (???) 25AB2CA6-C3CC-9F24-F619-C85D51AD8A38 /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/readline.so 0x1004b -0x1004ceffb libedit.2.dylib (39) 1B0596DB-F336-32E7-BB9F-51BF70DB5305 /usr/lib/libedit.2.dylib 0x7fff6cc9f000 - 0x7fff6ccd2817 dyld (239.3) D1DFCF3F-0B0C-332A-BCC0-87A851B570FF /usr/lib/dyld 0x7fff885e1000 - 0x7fff8860aff7 libc++abi.dylib (48) 8C16158F-CBF8-3BD7-BEF4-022704B2A326 /usr/lib/libc++abi.dylib 0x7fff8860b000 - 0x7fff88659fff libcorecrypto.dylib (161.1) F3973C28-14B6-3006-BB2B-00DD7F09ABC7 /usr/lib/system/libcorecrypto.dylib 0x7fff88d06000 - 0x7fff88d17ff7 libz.1.dylib (53) 42E0C8C6-CA38-3CA4-8619-D24ED5DD492E /usr/lib/libz.1.dylib 0x7fff88d6e000 - 0x7fff88d77ff3 libsystem_notify.dylib (121) 52571EC3-6894-37E4-946E-064B021ED44E /usr/lib/system/libsystem_notify.dylib 0x7fff896da000 - 0x7fff896dbff7 libDiagnosticMessagesClient.dylib (100) 4CDB0F7B-C0AF-3424-BC39-495696F0DB1E /usr/lib/libDiagnosticMessagesClient.dylib 0x7fff89a9b000 - 0x7fff89a9eff7 libdyld.dylib (239.3) 62F4D752-4089-31A8-8B73-B95A68893B3C /usr/lib/system/libdyld.dylib 0x7fff8a059000 - 0x7fff8a05dfff libsystem_stats.dylib (93.1.26) B9E26A9E-FBBC-3938-B8B7-6CF7CA8C99AD
[issue19369] PyObject_LengthHint is slow
Antoine Pitrou added the comment: Here is a patch which uses _PyObject_HasLen. It has same performance but is much simpler. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19369 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19366] Segfault in REPL due to escaped tab.
STINNER Victor added the comment: #19370 is probably a duplicate of this one. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19366 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19370] Entering integers in python interpreter causes segfault
STINNER Victor added the comment: It looks like a duplicate of #19366. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19370 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19370] Entering integers in python interpreter causes segfault
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 status: open - closed superseder: - interactive interpreter crashes and test_readline fails with newer versions of libedit ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19370 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19371] timing test too tight
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 == FAIL: test__run_once (test.test_asyncio.test_base_events.BaseEventLoopTests) -- Traceback (most recent call last): File E:\home\cpython\buildslave\x86\3.x.snakebite-win2k8r2sp1-x86\build\lib\test\test_asyncio\test_base_events.py, line 182, in test__run_once self.assertTrue(9.99 t 10.1, t) AssertionError: False is not true : 9.9849998603 -- components: Library (Lib), Tests messages: 201077 nosy: pitrou priority: normal severity: normal status: open title: timing test too tight type: behavior versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19371 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16113] Add SHA-3 (Keccak) support
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 posted have a good overview of the SHA-3 timeline and the proposed changes. It would be very confusing if hashlib in Python 3.4 came with a sha3 that was incompatible with the final standard. -- nosy: +haakon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16113 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com