[issue24448] Syntax highlighting marks multiline comments as strings

2015-06-13 Thread irdb
New submission from irdb: It has been suggested by BDFL to use triple-quoted strings as multiline comments.[1] Allegedly, some editors already makes a distinction between these kind of comments and docstring and highlight them differently. It would be nice if IDLE could also highlight these k

[issue24447] tab indentation breaks in tokenize.untokenize

2015-06-13 Thread Dingyuan Wang
New submission from Dingyuan Wang: If a script uses tabs for indentation, tokenize.untokenize won't restore original indentation correctly from the second line of the indentation level, and thus breaks the file. This affects all Python versions. Test code: python2 -c 'import sys, tokenize;

[issue24446] imap and map inconsistent behaviour

2015-06-13 Thread Ned Deily
Ned Deily added the comment: Also note that the behavior of map() in Python 3 has been changed to also stop with the termination of the shortest iterator. https://docs.python.org/3.4/whatsnew/3.0.html#views-and-iterators-instead-of-lists -- ___ Pyth

[issue24446] imap and map inconsistent behaviour

2015-06-13 Thread Ned Deily
Ned Deily added the comment: This is a documented behavior difference in itertools.imap: "If function is set to None, then imap() returns the arguments as a tuple. Like map() but stops when the shortest iterable is exhausted instead of filling in None for shorter iterables. The reason for the

[issue24429] msvcrt error when embedded

2015-06-13 Thread Steve Dower
Steve Dower added the comment: > i'm not following why it's a special case, or why later versions wouldn't > have the same problem? The Microsoft C Runtime 9.0 required an activation context to allow multiple versions to load side by side. This turned out to be more trouble than it was worth,

[issue24446] imap and map inconsistent behaviour

2015-06-13 Thread Ernesto Alfonso
New submission from Ernesto Alfonso: itertools.imap and map in Python 2.7 produces inconsistent behaviour when mapping the null (None) function over multiple sequences. >>> [a for a in map(None, list("abcd"), range(3))] [('a', 0), ('b', 1), ('c', 2), ('d', None)] >>> from itertools import im

[issue5845] rlcompleter should be enabled automatically

2015-06-13 Thread R. David Murray
R. David Murray added the comment: The active issue for this is now 23441. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22086] Tab indent no longer works in interpreter

2015-06-13 Thread R. David Murray
R. David Murray added the comment: In between this issue being opened and that fact being noted on the original issue, issue 23441 was opened, and I noticed that one and set it to release blocker. That issue has a patch, as noted, so I'm closing this one as a duplicate. -- nosy: +r.d

[issue24426] re.split performance degraded significantly by capturing group

2015-06-13 Thread Patrick Maupin
Patrick Maupin added the comment: OK, thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue5845] rlcompleter should be enabled automatically

2015-06-13 Thread Victor Varvariuc
Victor Varvariuc added the comment: Here is the new issue (putting the link here for reference): http://bugs.python.org/issue22086 -- nosy: +Victor.Varvariuc ___ Python tracker _

[issue23996] _PyGen_FetchStopIterationValue() crashes on unnormalised exceptions

2015-06-13 Thread Stefan Behnel
Stefan Behnel added the comment: No. It's more that it feels wrong to spend actual time on the second most common case that can occur instead of just handling it in no time at all. The third case that it's really required to instantiate the StopIteration exception (if user code didn't do so al

[issue24412] setUpClass equivalent for addCleanup

2015-06-13 Thread Tal Einat
Tal Einat added the comment: Ahh, that makes sense. Sounds good to me! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue24445] rstrip strips what it doesn't have to

2015-06-13 Thread Zachary Ware
Changes by Zachary Ware : -- resolution: -> not a bug stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue24429] msvcrt error when embedded

2015-06-13 Thread erik flister
erik flister added the comment: > About the only possible solution here would be to special case ctypes to > detect msvcr90 as a parameter (later versions of the CRT don't need it) and > also whether another activation context already exists. We could also > document the need for a complete ma

[issue24429] msvcrt error when embedded

2015-06-13 Thread Steve Dower
Steve Dower added the comment: About the only possible solution here would be to special case ctypes to detect msvcr90 as a parameter (later versions of the CRT don't need it) and also whether another activation context already exists. We could also document the need for a complete manifest in

[issue24127] Fatal error in launcher: Job information querying failed

2015-06-13 Thread Henrik Heimbuerger
Henrik Heimbuerger added the comment: I can still reproduce this on the just released Windows 10 build 10130, after "python -m pip uninstall pip" and then "python get-pip.py" (which recreated the pip.exe binary for pip 7.0.3). Is there anything else I need to do to make this work now? ---

[issue24426] re.split performance degraded significantly by capturing group

2015-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a reason to file a feature request to regex. In 3.3 re was slower than regex in some cases: $ ./python -m timeit -s "import re; p = re.compile('\n\r'); s = ('a'*100 + '\n\r')*1000" -- "p.split(s)" Python 3.3 re : 1000 loops, best of 3: 952 usec per

[issue23992] multiprocessing: MapResult shouldn't fail fast upon exception

2015-06-13 Thread Charles-François Natali
Changes by Charles-François Natali : -- keywords: +needs review nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24412] setUpClass equivalent for addCleanup

2015-06-13 Thread R. David Murray
R. David Murray added the comment: Not having addClassCleanup means that my setUpClass method will have four try/excepts in it, as will my tearDownClass (I have four fixtures I'm setting up for the tests). So, no, it isn't strictly needed, but it is prettier :). As Robert says, though, it ma

[issue795081] email.Message param parsing problem II

2015-06-13 Thread R. David Murray
R. David Murray added the comment: It think the thing to do is to turn it into a test case for both the old and the new parser, and the decide what we want the behavior to be. -- ___ Python tracker __

[issue24426] re.split performance degraded significantly by capturing group

2015-06-13 Thread Patrick Maupin
Patrick Maupin added the comment: > (stuff about cPython) No, I was curious about whether somebody maintained pure-Python fixes (e.g. to the re parser and compiler). Those could be in a regular package that fixed some corner cases such as the capture group you just applied a patch for. > ...

[issue24445] rstrip strips what it doesn't have to

2015-06-13 Thread Martin Panter
Martin Panter added the comment: The 3.5 documentation of str.strip() was recently modified in Issue 24204 due to this kind of misunderstanding. Perhaps other versions should be modified as well, or the str.l/rstrip() methods, or the bytes() and bytearray() methods. See also Issue 23560 propos

[issue24445] rstrip strips what it doesn't have to

2015-06-13 Thread o1da
o1da added the comment: Ok, thank you. I thought it trims whole sequence or nothing. -- status: open -> closed ___ Python tracker ___

[issue24445] rstrip strips what it doesn't have to

2015-06-13 Thread Patrick Maupin
Patrick Maupin added the comment: Example >>> text = 'test1/1.jp2' >>> text.rstrip('.2jp') 'test1/1' -- ___ Python tracker ___ ___ Py

[issue24445] rstrip strips what it doesn't have to

2015-06-13 Thread Patrick Maupin
Patrick Maupin added the comment: I think you misunderstand rstrip -- it works from the right, and checks to see if the right-most character is in the string you have given it. As long as it is, then it will remove the character and loop -- nosy: +Patrick Maupin _

[issue24445] rstrip strips what it doesn't have to

2015-06-13 Thread o1da
New submission from o1da: Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> text = 'test1/1.jp2' >>> text.rstrip('.jp2') 'test1/1' >>> text = 'test1.jp2' >>> text.rstrip('.jp2') 'test1' >>> text = 'test1

[issue24303] OSError 17 due to _multiprocessing/semaphore.c assuming a one-to-one Pid -> process mapping.

2015-06-13 Thread Charles-François Natali
Changes by Charles-François Natali : -- keywords: +needs review nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24426] re.split performance degraded significantly by capturing group

2015-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > 1) Do you know if anybody maintains a patched version of the Python code > anywhere? I could put a package up on github/PyPI, if not. Sorry, perhaps I misunderstood you. There are unofficial mirrors of CPython on Bitbucket [1] and GitHub [2]. They don't c

[issue24443] Link for clear and wait missing in EventObjects

2015-06-13 Thread Jaivish Kothari
Jaivish Kothari added the comment: My Pleasure sir :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue23275] Can assign [] = (), but not () = []

2015-06-13 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the reviews. Here is an updated patch. -- Added file: http://bugs.python.org/file39703/issue23275_v2.diff ___ Python tracker ___ _

[issue22872] multiprocessing.Queue raises AssertionError

2015-06-13 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: -> patch review versions: +Python 3.5, Python 3.6 ___ Python tracker ___ __

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-06-13 Thread Nick Coghlan
Nick Coghlan added the comment: Also worth noting: *adding* state to coroutines that isn't present on generators would be fine, they just need to *start* with a layout that exactly matches PyGenObject, since we'll sometimes process them as one. We don't need that now, but separating the types

[issue24435] Grammar/Grammar points to outdated guide

2015-06-13 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report, Chris. -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue24435] Grammar/Grammar points to outdated guide

2015-06-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4ba334ed3bb7 by Berker Peksag in branch '3.4': Issue #24435: Use the devguide link instead of PEP 306 in Grammar/Grammar. https://hg.python.org/cpython/rev/4ba334ed3bb7 New changeset 1622bc1af766 by Berker Peksag in branch '3.5': Issue #24435: Use t

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-06-13 Thread Stefan Behnel
Stefan Behnel added the comment: I agree that a typedef is a good idea. It doesn't cost anything but gives us more freedom for future changes. -- ___ Python tracker ___ _

[issue24443] Link for clear and wait missing in EventObjects

2015-06-13 Thread Berker Peksag
Berker Peksag added the comment: Thanks Jaivish! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue24443] Link for clear and wait missing in EventObjects

2015-06-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset a985b6455fde by Berker Peksag in branch '2.7': Issue #24443: Fix links for Event.clear() and Event.wait() methods. https://hg.python.org/cpython/rev/a985b6455fde -- nosy: +python-dev ___ Python tracker <

[issue24412] setUpClass equivalent for addCleanup

2015-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: addCleanup() is helpful because it can be used in test methods. addClassCleanup() and addModuleCleanup() can't be used in test methods, and setUpClass() and setUpModule() are used less than setUp(), therefore the benefit of these methods are less than of add

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-06-13 Thread Nick Coghlan
Nick Coghlan added the comment: Regarding the idea of doing a typedef for the new coro type at the C level: looking further at the way the new type integrates with the eval loop, it's essential that they actually retain the exact same memory layout if we don't want to rewrite a whole lot of co

[issue24412] setUpClass equivalent for addCleanup

2015-06-13 Thread Tal Einat
Tal Einat added the comment: I'm not convinced this would be worth the effort required to implement and maintain it. Can someone find examples from existing test suites where this would clearly be useful? For example, a setUpClass() or setUpModule() function with multiple try/finally clauses.