[issue21927] BOM appears in stdin when using Powershell

2014-07-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: - when stdin is a pipe (ex: echo abc|python ...), the stdin encoding becomes cp1252 (ANSI code page) because os.device_encoding(0) returns None; cp1252 is the result of locale.getpreferredencoding(False) (ANSI code page). sys.stdin.readline() does not

[issue21986] Pickleability of code objects is inconsistent

2014-07-16 Thread Claudiu Popa
Claudiu Popa added the comment: It works in IDLE because it registers a custom pickling for code objects, in idlelib.rpc: copyreg.pickle(types.CodeType, pickle_code, unpickle_code) where pickle_code / unpickle_code calls marshal.dumps/loads. Although, I admit that this is weird. If

[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Zach. I found even small regression. Before: $ ./python -m timeit -s x = 10 x+x; x+x; x+x; x+x; x+x; x+x; x+x; x+x; x+x; x+x 100 loops, best of 3: 1.51 usec per loop After: $ ./python -m timeit -s x = 10 x+x; x+x; x+x; x+x; x+x; x+x; x+x;

[issue16237] bdist_rpm SPEC files created with distutils may be distro specific

2014-07-16 Thread Bohuslav Slavek Kabrda
Bohuslav Slavek Kabrda added the comment: Hi, so I'm not sure I understand this correctly. AFAICS there are two patches in issue 14443 that are, to certain degree, independent. As for the patch that overrides __os_install_post [1], that is no longer needed in RHEL 7, since the line

[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- Removed message: http://bugs.python.org/msg223179 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21955 ___

[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Added file: http://bugs.python.org/file35965/inline.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21955 ___

[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-16 Thread STINNER Victor
STINNER Victor added the comment: bench_long.py: micro-benchmark for x+y. I confirm a slow down with 21955.patch. IMO you should at least inline PyLong_AsLong() which can be simplified if the number has 0 or 1 digit. Here is my patch inline.patch which is 21955.patch with PyLong_AsLong()

[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-16 Thread STINNER Victor
STINNER Victor added the comment: bench_long.py: micro-benchmark for x+y. I confirm a slow down with 21955.patch. IMO you should at least inline PyLong_AsLong() which can be simplified if the number has 0 or 1 digit. Here is my patch inline.patch which is 21955.patch with PyLong_AsLong()

[issue21901] test_selectors.PollSelectorTestCase.test_above_fd_setsize reported killed by shell

2014-07-16 Thread STINNER Victor
STINNER Victor added the comment: rdmurray@pydev:~/python/p34python -c 'import resource; print(resource.getrlimit(resource.RLIMIT_NOFILE))' (1024L, 1048576L) Oh, 1 million files is much bigger than 4 thousand files (4096). The test should only test FD_SETSIZE + 10 files, the problem is to

[issue21985] test_asyncio prints some junk

2014-07-16 Thread STINNER Victor
STINNER Victor added the comment: Task was destroyed but it is pending! messages come from the issue #21163, I know that I have to make these messages quiet and I don't know yet how to fix this. Read pipe 9 connected: ... until the end output was specific to the issue #21645. I created a

[issue21645] Race condition in signal handling on FreeBSD

2014-07-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1ff9ce2204ee by Victor Stinner in branch 'default': Issue #21645, #21985: Remove debug code http://hg.python.org/cpython/rev/1ff9ce2204ee -- ___ Python tracker rep...@bugs.python.org

[issue21985] test_asyncio prints some junk

2014-07-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1ff9ce2204ee by Victor Stinner in branch 'default': Issue #21645, #21985: Remove debug code http://hg.python.org/cpython/rev/1ff9ce2204ee -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue21985] test_asyncio prints some junk

2014-07-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- components: +asyncio ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21985 ___ ___

[issue21645] asyncio: Race condition in signal handling on FreeBSD

2014-07-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: Race condition in signal handling on FreeBSD - asyncio: Race condition in signal handling on FreeBSD ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21645

[issue21988] Decrease iterating overhead it timeit

2014-07-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Currently timeit has significant iterating overhead when tests fast statements. Such overhead makes hard to measure effects of microoptimizations. To decrease overhead and get more precise results we should repeat tested statement many times: $ ./python

[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Confirmed speed up about 20%. Surprisingly it affects even integers outside of the of preallocated small integers (-5...255). Before: $ ./python -m timeit -s x=10 x+x 1000 loops, best of 3: 0.143 usec per loop $ ./python -m timeit -s x=1000 x+x

[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- title: Decrease iterating overhead it timeit - Decrease iterating overhead in timeit ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21988

[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: Looks good, but I think it is better to have an unroll option rather than do it automatically. I'm okay with the default being to unroll, but sometimes I want to compare the speed between different versions of Python, and having unroll=False to ensure the

[issue16237] bdist_rpm SPEC files created with distutils may be distro specific

2014-07-16 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks Slavek. That means this bug doesn't affect RHEL 7 or CentOS 7, and if it affects the Python 3 software collections on RHEL/CentOS 6, we can potentially deal with it on the collection side of things. Accordingly, closing this as a problem for downstream

[issue21965] Add support for Memory BIO to _ssl

2014-07-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21965 ___ ___ Python-bugs-list

[issue21927] BOM appears in stdin when using Powershell

2014-07-16 Thread Jason R. Coombs
Jason R. Coombs added the comment: Here I use the british pound symbol to attempt to answer that question. I've disabled the environment variable PYTHONIOENCODING and not set any code page or loaded any other Powershell profile settings. PS C:\Users\jaraco echo £ £ PS C:\Users\jaraco chcp

[issue21965] Add support for Memory BIO to _ssl

2014-07-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Extension Modules nosy: +ezio.melotti stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21965 ___

[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, what's good for CPython may be quite annoying for e.g. a JIT-enabled Python implementation. I wonder what the PyPy developers think about this. -- nosy: +alex, pitrou ___ Python tracker

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-07-16 Thread Martin v . Löwis
Martin v. Löwis added the comment: LGTM -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21765 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21927] BOM appears in stdin when using Powershell

2014-07-16 Thread STINNER Victor
STINNER Victor added the comment: Please use ascii() instead of repr() in your test to identify who replaces characters with question marks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21927

[issue21986] Pickleability of code objects is inconsistent

2014-07-16 Thread Martin v . Löwis
Martin v. Löwis added the comment: I agree with Claudiu. IDLE should pickle with a private dispatch_table. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21986 ___

[issue21927] BOM appears in stdin when using Powershell

2014-07-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Bytes repr doesn't contains non-ascii characters, therefore Python is actually receiving a question mark from the pipe. What are results of following commands? py -3 -c import sys; sys.stdout.buffer.write(bytes(range(128, 256))) py -3 -c import sys;

[issue21989] Missing (optional) argument `start` and `end` in documentation for list.index

2014-07-16 Thread SylvainDe
New submission from SylvainDe: From : https://docs.python.org/2/tutorial/datastructures.html and https://docs.python.org/3.4/tutorial/datastructures.html (and all other versions) : list.index(x) Return the index in the list of the first item whose

[issue13023] argparse should allow displaying argument default values in addition to setting a formatter class

2014-07-16 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +paul.j3 versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13023 ___

[issue9390] Error in sys.excepthook on windows when redirecting output of the script

2014-07-16 Thread Zachary Ware
Zachary Ware added the comment: This appears to me to be a well-documented Windows bug with a clear, documented fix, and I am not able to reproduce it so I'm not sure if it's even still relevant. Closing the issue. -- resolution: - third party stage: - resolved status: open -

[issue21986] Pickleability of code objects is inconsistent

2014-07-16 Thread ppperry
Changes by ppperry maprea...@olum.org: -- components: +Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21986 ___ ___ Python-bugs-list

[issue12284] argparse.ArgumentParser: usage example option

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: @Jonas do you wish to follow up on this? -- nosy: +BreamoreBoy, paul.j3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12284 ___

[issue9399] Provide a 'print' action for argparse

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: @Paul what is your take on this, other opinions seem positive? -- nosy: +BreamoreBoy, paul.j3 versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9399

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-07-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8b3f7aecdf85 by Tal Einat in branch '3.4': Issue #21765: Add support for non-ascii identifiers to HyperParser http://hg.python.org/cpython/rev/8b3f7aecdf85 New changeset 73a8c614af4d by Tal Einat in branch 'default': Issue #21765: Add support for

[issue16283] ctypes.util.find_library does not find all DLLs anymore

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: Works fine for me. Python build: 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit (Intel)] Path 'C:\Windows\system32' exists in $PATH: True File 'C:\Windows\system32\acledit.dll' exists: True ctypes says for 'acledit.dll':

[issue21986] Pickleability of code objects is inconsistent

2014-07-16 Thread Claudiu Popa
Claudiu Popa added the comment: Maybe something like the attached patch. It doesn't have tests, though, I didn't find any tests for the idlelib.rpc anyway. -- keywords: +patch Added file: http://bugs.python.org/file35968/idlelib.patch ___ Python

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-07-16 Thread Tal Einat
Tal Einat added the comment: Fix committed to 3.4 and merged to default. (My first commit!) Not back-porting this to 2.7 despite PEP 434, because support for non-ASCII identifiers only exists in 3.x. Close this issue as fixed! -- ___ Python

[issue16892] Windows bug picking up stdin from a pipe

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: @Robert we're sorry about the delay in getting back to you. Sorry Windows gurus this is over my head :( -- nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware ___ Python tracker rep...@bugs.python.org

[issue21815] imaplib truncates some untagged responses

2014-07-16 Thread R. David Murray
R. David Murray added the comment: Just to make sure I understand: the issue is that gmail may produce flags with [] in them, and imaplib currently fails to process such flags when it receives them from gmail? In principle I think we would not want to allow imaplib to be used to create

[issue21986] Pickleability of code objects is inconsistent

2014-07-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Instead of copying dispatch_table, use ChainMap. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21986 ___

[issue21931] Nonsense errors reported by msilib.FCICreate for bad argument

2014-07-16 Thread R. David Murray
R. David Murray added the comment: mslib doesn't have many tests, but it looks like it would be easy enough to add one for this? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21931

[issue21815] imaplib truncates some untagged responses

2014-07-16 Thread Rafał Stożek
Rafał Stożek added the comment: Yeah, basically. The flags with [] characters are added to gmail (in my case) by OtherInbox's Organizer app. I contacted them but haven't heard back yet. On Wed, Jul 16, 2014 at 4:07 PM, R. David Murray rep...@bugs.python.org wrote: R. David Murray added the

[issue21986] Pickleability of code objects is inconsistent

2014-07-16 Thread Claudiu Popa
Claudiu Popa added the comment: Thanks, Serhiy. -- Added file: http://bugs.python.org/file35969/issue21986.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21986 ___

[issue21990] saxutils defines an inner class where a normal one would do

2014-07-16 Thread Alex Gaynor
New submission from Alex Gaynor: This makes things slower than they need to be (yes, even on CPython :-)), and is slightly confusing since usually inner classes are only used when a closure is needed. Attached patch simply moves the class definition. -- components: Library (Lib)

[issue12806] argparse: Hybrid help text formatter

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: Apparently #13923 is related to this. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12806 ___

[issue21991] The new email API should use MappingProxyType instead of returning new dicts.

2014-07-16 Thread R. David Murray
New submission from R. David Murray: There are a few places in the new email API where dicts are returned containing what is conceptually static information. Currently this is done by returning a copy of the dict from the object, so that user code modifying the dict won't break the object

[issue13923] new formatter for argparse

2014-07-16 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +paul.j3 versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13923 ___

[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Alex Gaynor
Alex Gaynor added the comment: I think this is likely to make timeit less representative of how code actually performs in the real world on systems with a JIT. This is because of the cost of sequential operations is not strictly additive on PyPy. If you have statements `a` and `b`, and you

[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks, then I guess I'm -1 on the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21988 ___ ___

[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-16 Thread Zach Byrne
Zach Byrne added the comment: Well, dont' I feel silly. I confirmed both my regression and the inline speedup using the benchmark Victor added. I wonder if I got my binaries backwards in my first test... -- ___ Python tracker rep...@bugs.python.org

[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Armin Rigo
Armin Rigo added the comment: The opposite argument might be relevant too: in some cases, a tracing JIT compiler seeing a long block of code might perform artificially worse. If each repeated line creates a branching path with two outcomes of roughly equal likeliness, then if the line is

[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Armin Rigo
Armin Rigo added the comment: ...but I don't think PyPy should be by itself a good enough reason to reject this patch. It would be fine if timeit detects which interpreter it runs on, and only tries to unroll on CPython, for example. -- ___ Python

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-16 Thread Andy Maier
Andy Maier added the comment: Uploaded v9 of the patch for 3.4 and default. It reflects Marc's comment, plus the result of the recent discussion on python-dev since v8 of th epatch, up to 2014-07-15 (subject: == on object tests identity in 3.x). - Please review the patch. -- Added

[issue21899] Futures are not marked as completed

2014-07-16 Thread Sebastian Kreft
Sebastian Kreft added the comment: After more testing I finally found that in fact the process is not being killed. That means that there is no problem with the futures. But instead it is probably related with subprocess deadlocking, as the problematic process does not consume any CPU. Sorry

[issue20319] concurrent.futures.wait() can block forever even if Futures have completed

2014-07-16 Thread Sebastian Kreft
Sebastian Kreft added the comment: Disregard the last messages, It seems to be a deadblocking due to subprocess. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20319 ___

[issue11945] Adopt and document consistent semantics for handling NaN values in containers

2014-07-16 Thread Andy Maier
Changes by Andy Maier andreas.r.ma...@gmx.de: -- nosy: +andymaier ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11945 ___ ___ Python-bugs-list

[issue10991] trace fails when test imported a temporary file

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: Knowing the platform this occurred on would be useful, but given the age do we care? -- nosy: +BreamoreBoy versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10991

[issue16961] No regression tests for -E and individual environment vars

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: Consider yourself reminded :) -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16961 ___

[issue13041] argparse: terminal width is not detected properly

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: @Paul the attached patch is extremely simple and follows the work on #13609. Is it okay with you if the patch was committed? -- nosy: +BreamoreBoy, paul.j3 ___ Python tracker rep...@bugs.python.org

[issue14149] argparse: Document how to use argument names that are not Python identifiers

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: #11076 was closed as a duplicate of #8982 which was closed as fixed so can this also be closed as a duplicate? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14149

[issue15994] memoryview to freed memory can cause segfault

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: Can someone follow this up noting it refers to #15903. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15994 ___

[issue15903] Make rawiobase_read() read directly to bytes object

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: Please note this is also referred to from #15994. -- nosy: +BreamoreBoy versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15903 ___

[issue16965] 2to3 should rewrite execfile() to open in 'rb' mode

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have a response to this please. -- nosy: +BreamoreBoy, benjamin.peterson type: - behavior versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue21645] asyncio: Race condition in signal handling on FreeBSD

2014-07-16 Thread STINNER Victor
STINNER Victor added the comment: A solution would be to schedule the callback in the event loop. Since Python 3.3, the C signal handler writes the signal number, which should be enough to find and schedule the Python callback. I wrote a patch implementing this idea to fix the issue:

[issue4972] context management support in imaplib, smtplib, ftplib

2014-07-16 Thread Berker Peksag
Berker Peksag added the comment: Updated Serhiy's patch to 3.5. I also added a whatsnew entry. -- Added file: http://bugs.python.org/file35972/issue4972_imaplib.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4972

[issue4972] context management support in imaplib, smtplib, ftplib

2014-07-16 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4972 ___ ___

[issue21989] Missing (optional) argument `start` and `end` in documentation for list.index

2014-07-16 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +ezio.melotti versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21989 ___

[issue9399] Provide a 'print' action for argparse

2014-07-16 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9399 ___ ___

[issue21992] New AST node Else() should be introduced

2014-07-16 Thread Igor Bronshteyn
New submission from Igor Bronshteyn: Quoting Collin Winter: I'd like there to be an Else() node for If.orelse, While.orelse, etc. My motivation is that I need the lineno and col_offset values of the else statement for a code-coverage utility; as it is, I have to find the last lineno of the

[issue21992] New AST node Else() should be introduced

2014-07-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo, nedbat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21992 ___ ___

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-07-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d5a76214166 by Victor Stinner in branch '3.4': Issue #21163, asyncio: Ignore destroy pending task warnings for private tasks http://hg.python.org/cpython/rev/6d5a76214166 New changeset fbd3e9f635b6 by Victor Stinner in branch 'default': (Merge

[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Wed, Jul 16, 2014 at 02:49:31PM +, Armin Rigo wrote: ...but I don't think PyPy should be by itself a good enough reason to reject this patch. It would be fine if timeit detects which interpreter it runs on, and only tries to unroll on CPython, for

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-07-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset e4fe6706b7b4 by Victor Stinner in branch '3.4': Issue #21163: Fix destroy pending task warning in test_wait_errors() http://hg.python.org/cpython/rev/e4fe6706b7b4 New changeset a627b23f57d4 by Victor Stinner in branch 'default': (Merge 3.4) Issue

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-07-16 Thread STINNER Victor
STINNER Victor added the comment: Ok, I fixed the last warnings emitted in unit tests ran in debug mode. I close the issue. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21163

[issue21985] test_asyncio prints some junk

2014-07-16 Thread STINNER Victor
STINNER Victor added the comment: I fixed last warnings in tests ran in debug mode. I close the issue. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21985

[issue21247] test_asyncio: test_subprocess_send_signal hangs on Fedora builders

2014-07-16 Thread STINNER Victor
STINNER Victor added the comment: Here is a patch implementing a basic synchronization between the parent and the child processing, to wait until the child is sleeping. Can you please try this patch? If it doesn't work, we might add a small sleep of 500 ms after the readline(). --

[issue10048] urllib.request documentation confusing

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: @Senthil do you still intend to run with this or could somebody else pick it up? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue17026] pdb frames accessible after the termination occurs on uncaught exception

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: Nosy list set according to experts page. -- nosy: +BreamoreBoy, georg.brandl versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17026

[issue13540] Document the Action API in argparse

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: @Paul what is your opinion of this documentation patch? -- nosy: +BreamoreBoy, paul.j3 versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue21990] saxutils defines an inner class where a normal one would do

2014-07-16 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21990 ___ ___ Python-bugs-list mailing

[issue21990] saxutils defines an inner class where a normal one would do

2014-07-16 Thread Alex Gaynor
Changes by Alex Gaynor alex.gay...@gmail.com: -- keywords: +needs review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21990 ___ ___

[issue21815] imaplib truncates some untagged responses

2014-07-16 Thread Lita Cho
Lita Cho added the comment: R. David Murray added the comment: Just to make sure I understand: the issue is that gmail may produce flags with [] in them, and imaplib currently fails to process such flags when it receives them from gmail? This is correct. Gmail allows you to create flags

[issue21927] BOM appears in stdin when using Powershell

2014-07-16 Thread eryksun
eryksun added the comment: PS C:\Users\jaraco echo £ | py -3 -c import sys; print(repr(sys.stdin.buffer.read())) b'?\r\n' Curiously, it appears as if powershell is actually receiving a question mark from the pipe. PowerShell calls ReadConsoleW to read the console input buffer, i.e. it

[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 16/07/2014 12:43, Steven D'Aprano a écrit : I would *much* rather a parameter to timeit which controls whether or not to unroll, rather than timeit trying to guess whether you want it to unroll or not. PyPy can default to off, CPython to on, and other

[issue21986] Pickleability of code objects is inconsistent

2014-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: There is no unittest module for rpc yet. Should the pickle test include a test that pickling a code object fails, and with the proper exception? Is ppperry correct about PicklingError? Chainmap is new in 3.3 so 2.7 would need the copy version of the patch.

[issue17057] Data model documentation grammar

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: I'm not particularly interested in 2.7 documentation but is there anybody out there who could review this please. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17057

[issue21986] Pickleability of code objects is inconsistent

2014-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: ppperry: Component Windows (or Macintosh) means Windows (or Mac) specific. The rpc code is general to all systems. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21986

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-07-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - fixed stage: test needed - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21765 ___

[issue16509] sqlite3 docs do not explain check_same_thread

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: @Daniel could you provide a patch for this? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16509 ___

[issue21935] Implement AUTH command in smtpd.

2014-07-16 Thread Milan Oberkirch
Milan Oberkirch added the comment: Done. I added the keyarg 'enable_AUTH' and two abstract methods to the server: process_auth(user, password) for authentication and accept_recipient(user, mailfrom, rcptto) for authorization. -- Added file:

[issue17101] __main__.py Multiprocessing on Windows

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: Is it possible to backport the fix from #10845 to 2.7? Is it actually worth doing? -- components: +Library (Lib) nosy: +BreamoreBoy versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue10818] pydoc: Remove old server and tk panel

2014-07-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2e578b80c2f3 by Zachary Ware in branch '3.4': Remove Tools/scripts/pydocgui.pyw. http://hg.python.org/cpython/rev/2e578b80c2f3 -- ___ Python tracker rep...@bugs.python.org

[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-16 Thread Case Van Horsen
Changes by Case Van Horsen cas...@gmail.com: -- nosy: +casevh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21955 ___ ___ Python-bugs-list mailing

[issue20394] Coverity complains on audioop

2014-07-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Christian, what about 2.7? -- status: open - pending versions: -Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20394 ___

[issue13850] Summary tables for argparse add_argument options

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: At a quick glance the patch looks okay to me so as there's been a lot of positive comments can we have a formal patch review please. -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___

[issue15119] ctypes mixed-types bitfield layout nonsensical; doesn't match compiler.

2014-07-16 Thread Olaf Hartmann
Olaf Hartmann added the comment: I just run into this issue, so i'll bump it with another test case: import ctypes class Struct(ctypes.Structure): _fields_ = [ (uint8_0, ctypes.c_uint8, 8), (uint8_1, ctypes.c_uint8, 8), (uint16_0, ctypes.c_uint16, 1),

[issue17243] The changes made for issue 4074 should be documented

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: Presumably the responsibility for this lies with the person who made the changes for #4074 ? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue17750] allow the testsuite to run in the installed location

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: How do we stand with eight outstanding issues here? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17750

[issue21815] imaplib truncates some untagged responses

2014-07-16 Thread R. David Murray
R. David Murray added the comment: Postel's Law says: be conservative in what you do, be liberal in what you accept from others. So the client should not violate the RFC when sending data to the server. The server, on the other hand, by that law could accept dirty data if it can do

[issue21986] Pickleability of code objects is inconsistent

2014-07-16 Thread Claudiu Popa
Claudiu Popa added the comment: TypeError is raised only in Python 2, in Python 3 it's PicklingError. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21986 ___

  1   2   >