[issue25778] Error on import matplotlib.pyplot and seaborn (Python3 - Windows 10 64-bit issue)

2015-12-02 Thread R. David Murray
R. David Murray added the comment: The stackoverflow comment is this: "The issue is that winreg.EnumValue is not cutting string values at their length properly for some reason, and strings will include null characters which os.path.abspath is not able to process." The "one line patch" in the

[issue25779] deadlock with asyncio+contextmanager+ExitStack

2015-12-02 Thread Jack O'Connor
New submission from Jack O'Connor: The following hangs at 100% CPU on Python 3.5, though not on Python 3.4: 1) Start an asyncio coroutine with run_until_complete(). 2) Inside the coroutine, enter an ExitStack using a with-statement. 3) Inside the with-statement, call ExitStack.enter_context()

[issue25778] Error on import matplotlib.pyplot and seaborn (Python3 - Windows 10 64-bit issue)

2015-12-02 Thread SilentGhost
Changes by SilentGhost : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue25779] deadlock with asyncio+contextmanager+ExitStack

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: Trying to reproduce without contextstack. -- nosy: +ncoghlan ___ Python tracker ___

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-02 Thread Anshul Agrawal
Anshul Agrawal added the comment: Before I got the "one line patch" on stackoverflow, I tried creating a new environment with Python 2.7.10 and did *not* get the error message I got with Python 3.5.0. Here's an outline of what I did: 1) Created a new environment to use Python 2.7.10: conda

[issue25779] deadlock with asyncio+contextmanager+ExitStack

2015-12-02 Thread Guido van Rossum
Guido van Rossum added the comment: Interestingly, it doesn't hang when you raise a different error. There's some new code dealing with the RuntimeError coming out of a generator if it raises StopIteration (instead of returning) introduced by issue #22906. Yury, it looks like you introduced

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-02 Thread Eryk Sun
Eryk Sun added the comment: Based on matplotlib's win32InstalledFonts function [1], I created a small test to check the data strings returned by winreg.EnumValue for the presence of null characters. I tested on Windows 7 and 10 but couldn't reproduce the problem. Please run nullcheck.py to

[issue25778] Error on import matplotlib.pyplot and seaborn (Python3 - Windows 10 64-bit issue)

2015-12-02 Thread SilentGhost
Changes by SilentGhost : -- components: +Library (Lib) nosy: +stutzbach stage: -> test needed ___ Python tracker ___

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-02 Thread R. David Murray
Changes by R. David Murray : -- title: Error on import matplotlib.pyplot and seaborn (Python3 - Windows 10 64-bit issue) -> winreg.EnumValue does not truncate strings correctly ___ Python tracker

[issue25779] deadlock with asyncio+contextmanager+ExitStack

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: Here's a minimal test to reproduce: import reprlib def main(): if 0: yield raise RuntimeError m = main() try: m.send(None) except RuntimeError as ex: ex.__context__ = ex

[issue25779] deadlock with asyncio+contextmanager+ExitStack

2015-12-02 Thread Jack O'Connor
Jack O'Connor added the comment: Thanks for chasing this down. Yury, can you suggest a workaround? -- ___ Python tracker ___

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +georg.brandl, larry priority: normal -> release blocker ___ Python tracker ___

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-02 Thread Eryk Sun
Eryk Sun added the comment: You should be able to run nullcheck.py in the command prompt by changing to the directory where it's saved and entering nullcheck.py. For example, if you saved it in your Downloads folder: >cd /d C:\Users\Anshul\Downloads >nullcheck.py If that fails

[issue25784] Please consider integrating performance fix for ipaddress.py

2015-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you provide a patch? -- components: +Library (Lib) nosy: +ncoghlan, pmoody, serhiy.storchaka type: -> performance versions: +Python 3.6 ___ Python tracker

[issue25780] Add support for CAN_RAW_JOIN_FILTERS

2015-12-02 Thread Stefan Tatschner
New submission from Stefan Tatschner: Here is a patch, which adds support for CAN_RAW_JOIN_FILTERS which is available since linux 4.1 [1]. My patch fixes trailing whitespace issues as well. Since I have a newer version of autotools, running "autoreconf" generates a lot of changes, so I left

[issue25783] test_traceback.test_walk_stack() fails when run directly (without regrtest)

2015-12-02 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +matrixise ___ Python tracker ___ ___

[issue25783] test_traceback.test_walk_stack() fails when run directly (without regrtest)

2015-12-02 Thread STINNER Victor
New submission from STINNER Victor: Tested on Python 3.6 (default branch): haypo@smithers$ ./python -m test test_traceback [1/1] test_traceback 1 test OK. haypo@smithers$ ./python Lib/test/test_traceback.py ..F...

[issue25783] test_traceback.test_walk_stack() fails when run directly (without regrtest)

2015-12-02 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +easy ___ Python tracker ___ ___

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: Looks like this is the original code committed in CPython in 2ee09afee126. Patch by Antoine Pitrou. Antoine, how would you fix this? -- nosy: +pitrou ___ Python tracker

[issue25784] Please consider integrating performance fix for ipaddress.py

2015-12-02 Thread Alexander Finkel
New submission from Alexander Finkel: I encountered a performance problem using the ipaddr library to merge over 1 network addresses. I sent a patch upstream to fix it, and that patch has been merged: https://github.com/google/ipaddr-py/commit/6504b47a02739e853043f0a184f3c39462293e5c

[issue25779] deadlock with asyncio+contextmanager+ExitStack

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: Created another issue for the reprlib bug: issue 25781. It appears we don't even need a generator: import reprlib try: raise RuntimeError except RuntimeError as ex: ex.__context__ = ex reprlib.repr(ex) Closing this one

[issue25779] deadlock with asyncio+contextmanager+ExitStack

2015-12-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- superseder: infinite loop in reprlib -> CPython hangs on error __context__ set to the error itself ___ Python tracker

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Yury Selivanov
New submission from Yury Selivanov: try: raise Exception except Exception as ex: ex.__context__ = ex hasattr(1, 'aa') -- components: Interpreter Core messages: 255731 nosy: gvanrossum, haypo, ncoghlan, yselivanov priority: normal severity: normal status: open title: CPython

[issue25781] infinite loop in reprlib

2015-12-02 Thread Jack O'Connor
Changes by Jack O'Connor : -- nosy: +oconnor663 ___ Python tracker ___ ___

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-02 Thread Anshul Agrawal
Anshul Agrawal added the comment: Please tell me where I can find nullcheck.py and how I should run it (I assume something like "python nullcheck.py" in the Windows Command Prompt?) I'm relatively new to Python, so explicit instructions would be appreciated. Thanks! --

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I would change __context__ setter to check if it creates a loop. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-02 Thread Anshul Agrawal
Anshul Agrawal added the comment: Ok thanks. Here's what I got: C:\Users\Anshul\Downloads\Python>conda info --envs # conda environments: # python2.7.10 C:\Anaconda3\envs\python2.7.10 root * C:\Anaconda3 C:\Users\Anshul\Downloads\Python>python -V Python 3.5.0 ::

[issue25781] infinite loop in reprlib

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: This isn't a bug of reprlib -- it's something in the core. Will create a separate issue for this. try: raise Exception except Exception as ex: ex.__context__ = ex hasattr(1, 'aa') -- resolution: -> not a bug status:

[issue25779] deadlock with asyncio+contextmanager+ExitStack

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: It's not even a reprlib bug: try: raise Exception except Exception as ex: ex.__context__ = ex hasattr(1, 'aa') -- ___ Python tracker

[issue25779] deadlock with asyncio+contextmanager+ExitStack

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: > Thanks for chasing this down. Yury, can you suggest a workaround? I'm not sure how to workaround this :( Hopefully we can fix this in 3.5.1. -- ___ Python tracker

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-02 Thread SilentGhost
SilentGhost added the comment: Anshul, it's attached to this issue, before messages start under Files heading. Here is the direct link https://bugs.python.org/file41208/nullcheck.py -- nosy: +SilentGhost ___ Python tracker

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: The bug is in "PyErr_SetObject": while ((context = PyException_GetContext(o))) { Py_DECREF(context); if (context == value) { PyException_SetContext(o, NULL); break;

[issue25779] deadlock with asyncio+contextmanager+ExitStack

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: FWIW the bug was identified in issue 25782. I've drafted a patch to fix it, please review. -- ___ Python tracker ___

[issue25770] expose name, args, and kwargs from methodcaller

2015-12-02 Thread Joe Jevnik
Joe Jevnik added the comment: partial's unique usage is why I feel like it would be so jarring for them do be named differently. I would be happiest having this feature at all so I will change the name to 'kwargs' if you would like. I just want to be sure that my reasons for choosing this

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: Serhiy, good idea, thanks! Please review the attached patch. Larry, I view this as a very serious bug. Can we ship 3.5.1 with it fixed? -- keywords: +patch Added file: http://bugs.python.org/file41212/Issue25782.patch

[issue25780] Add support for CAN_RAW_JOIN_FILTERS

2015-12-02 Thread Stefan Tatschner
Stefan Tatschner added the comment: in case you don't like whitespace cleanups, here is the patch with "git diff --ignore-space-changes". -- Added file: http://bugs.python.org/file41211/can_raw_join_filters-no-whitespace.diff ___ Python tracker

[issue25715] Python 3.5.1 installer shows wrong upgrade path

2015-12-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8537ec50c254 by Steve Dower in branch '3.5': Issue #25715: Python 3.5.1 installer shows wrong upgrade path and incorrect logic for launcher detection. https://hg.python.org/cpython/rev/8537ec50c254 -- nosy: +python-dev

[issue25715] Python 3.5.1 installer shows wrong upgrade path

2015-12-02 Thread Steve Dower
Steve Dower added the comment: As you can see, I've now pushed to the main 3.5 branch, so feel free to cherry-pick from there or give me the word and I'll graft it into the releasing repo for you. I also forward merged all the 3.5.1 NEWS into default. Not sure how that normally happens, but

[issue24934] django_v2 benchmark not working in Python 3.6

2015-12-02 Thread Brett Cannon
Brett Cannon added the comment: Django 1.9 is out, so when I have time I will create a django_v3 benchmark. -- ___ Python tracker ___

[issue25779] deadlock with asyncio+contextmanager+ExitStack

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: The question is whether we should raise an exception or not: ex.__context__ = ex -- ___ Python tracker ___

[issue25784] Please consider integrating performance fix for ipaddress.py

2015-12-02 Thread SilentGhost
SilentGhost added the comment: Perhaps I'm wrong, but a superficial inspection of the ipaddress.py seem to indicate that it's not affected by the same issue. _find_address_range is implemented as a generator, it doesn't restart comparison on every iteration. Alexander, did you experience any

[issue6395] Infinite Recursion during Unpickling a codecs Object

2015-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > If the StreamWriter/Reader cannot pickle the underlying stream (which is probably always the case), why should the object itself be pickleable ? io.BytesIO() and io.StringIO() are pickleable. -- ___ Python

[issue6395] Infinite Recursion during Unpickling a codecs Object

2015-12-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 02.12.2015 20:16, Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > >> If the StreamWriter/Reader cannot pickle the underlying stream (which is >> probably always the case), why should the object itself be pickleable ? > > io.BytesIO()

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Jack O'Connor
Jack O'Connor added the comment: Yury, do we need to handle more complicated infinite loops, where "self" doesn't actually show up in the loop? Here's an example: try: raise Exception except Exception as ex: loop1 = Exception() loop2 = Exception()

[issue25785] TimedRotatingFileHandler missing rotations

2015-12-02 Thread Felipe Cruz
New submission from Felipe Cruz: I'm using TimedRotatingFileHandler to rotate a log file *every* minute. If I stop my program, in the middle of a minute, and start again, the next rotation will happen at (currentTime + 60). The result of this behavior is that I'll end up with files "log_01"

[issue6395] Infinite Recursion during Unpickling a codecs Object

2015-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added tests for pickling and deepcopying. -- Added file: http://bugs.python.org/file41215/codecs_stream_delegating_2.patch ___ Python tracker

[issue25786] contextlib.ExitStack introduces a cycle in exception __context__

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: Nick, could you please take a look at the attached patch? -- keywords: +patch Added file: http://bugs.python.org/file41216/Issue25786.patch ___ Python tracker

[issue25786] contextlib.ExitStack introduces a cycle in exception __context__

2015-12-02 Thread Jack O'Connor
Changes by Jack O'Connor : -- nosy: +oconnor663 ___ Python tracker ___ ___

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: >Don't do that, a few hours (!) is not enough to test a fix. It's too late after a RC1 for such critical change (exceptions). Maybe we can add an RC2? -- ___ Python tracker

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: > If there is a chain A -> B -> C -> D -> E, after assignment C.__context__ = A > we will get a chain C -> A -> B -> D -> E. No exception is lost. What to do when you try to chain "C -> C"? I'm not sure I like this reordering idea -- it might introduce some

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread STINNER Victor
STINNER Victor added the comment: > Maybe we can add an RC2? Seriously? I'm waiting Python 3.5.1 since 3.5.0 was released. I'm amazed how much time it takes to release a first bugfix version, 3.5.0 was full a bugs (see the changelog). It's very easy to workaround this issue in pure Python.

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread STINNER Victor
STINNER Victor added the comment: Yury Selivanov added the comment: > Please look at http://bugs.python.org/issue25779. I think we either should > fix this issue, or fix http://bugs.python.org/issue25786 in 3.5.1, since I > can't find a workaround for it. The latter issue is probably easier

[issue25783] test_traceback.test_walk_stack() fails when run directly (without regrtest)

2015-12-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +rbcollins ___ Python tracker ___ ___

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: > Should we do the same for __cause__? Is it possible to create __context__ or > __cause__ loop without assigning these attributes directly? Yes, let's mirror the __context__ behaviour for __cause__. New patch attached. Serhiy, Guido, The new patch raises

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: > Setting it to NULL is one option -- silently ignoring the assignment (leaving whatever was there) might also be good? In 90% of the cases it would be the same thing right? But leaving the old __context__ there will completely mask the bug... And as for pure

[issue1927] raw_input behavior incorrect if readline not enabled

2015-12-02 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- versions: +Python 3.5, Python 3.6 ___ Python tracker ___

[issue1927] raw_input behavior incorrect if readline not enabled

2015-12-02 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- nosy: +jason.coombs ___ Python tracker ___ ___

[issue25779] deadlock with asyncio+contextmanager+ExitStack

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: Another issue for contextlib: http://bugs.python.org/issue25786 -- ___ Python tracker ___

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Guido van Rossum
Guido van Rossum added the comment: > But leaving the old __context__ there will completely mask the bug... OK, NULL is fine then. >we better raise a TypeError if a cycle is about to be introduced? Yes. -- ___ Python tracker

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-02 Thread Eryk Sun
Eryk Sun added the comment: I only wrote it for Python 3, but it would be interesting to see what you get with Python 2. Please try nullcheck2.py. -- Added file: http://bugs.python.org/file41213/nullcheck2.py ___ Python tracker

[issue25786] contextlib.ExitStack introduces a cycle in exception __context__

2015-12-02 Thread Yury Selivanov
New submission from Yury Selivanov: See http://bugs.python.org/issue25779 and http://bugs.python.org/issue25782 for details. -- components: Library (Lib) messages: 255762 nosy: gvanrossum, ncoghlan, serhiy.storchaka, yselivanov priority: release blocker severity: normal status: open

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yet one option is the emersion of the exception. Affected exception is removed from the chain and added at it head. If there is a chain A -> B -> C -> D -> E, after assignment C.__context__ = A we will get a chain C -> A -> B -> D -> E. No exception is

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread STINNER Victor
STINNER Victor added the comment: > Larry, I view this as a very serious bug. Can we ship 3.5.1 with it fixed? Don't do that, a few hours (!) is not enough to test a fix. It's too late after a RC1 for such critical change (exceptions). The bug was here since at least Python 3.3, there is no

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: > Yury, do we need to handle more complicated infinite loops, where "self" > doesn't actually show up in the loop? Here's an example: My patch works for your example too. Since it checks for loops in __context__ setter, you shouldn't be able to create

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-02 Thread Anshul Agrawal
Anshul Agrawal added the comment: Here it is: [python2.7] C:\Users\Anshul\Downloads\Python>python -V Python 2.7.10 :: Continuum Analytics, Inc. [python2.7] C:\Users\Anshul\Downloads\Python>python nullcheck2.py Checking: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts

[issue25785] TimedRotatingFileHandler missing rotations

2015-12-02 Thread SilentGhost
Changes by SilentGhost : -- components: +Library (Lib) nosy: +vinay.sajip type: behavior -> enhancement ___ Python tracker ___

[issue25156] shutil.copyfile should internally use os.sendfile when possible

2015-12-02 Thread desbma
desbma added the comment: Ping A small patch, but a good performance improvement :) -- ___ Python tracker ___

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: > It's very easy to workaround this issue in pure Python. Why do you want the > fix *RIGHT NOW*? Please look at http://bugs.python.org/issue25779. I think we either should fix this issue, or fix http://bugs.python.org/issue25786 in 3.5.1, since I can't find

[issue25779] deadlock with asyncio+contextmanager+ExitStack

2015-12-02 Thread Jack O'Connor
Jack O'Connor added the comment: Yury, can you help me understand why `hasattr("foo", "bar")` triggers the infinite loop there, but not `print("foo")`? -- ___ Python tracker

[issue25779] deadlock with asyncio+contextmanager+ExitStack

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: > Yury, can you help me understand why `hasattr("foo", "bar")` triggers the > infinite loop there, but not `print("foo")`? hasattr uses getattr under the hood. getattr raises an AttributeError, and that triggers PyErr_SetError, which has an infinite "while"

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Should we do the same for __cause__? Is it possible to create __context__ or __cause__ loop without assigning these attributes directly? -- ___ Python tracker

[issue6395] Infinite Recursion during Unpickling a codecs Object

2015-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I think all we need to do is add a .__reduce__() > method to StreamWriter and StreamReader, which then > raises a PickleError. Rather TypeError. Yes, it is the least that we should to do in maintained releases. If codecs_stream_delegating_2.patch is

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Guido van Rossum
Guido van Rossum added the comment: Ouch, it's unfortunate those APIs don't have an error return. :-( Setting it to NULL is one option -- silently ignoring the assignment (leaving whatever was there) might also be good? In 90% of the cases it would be the same thing right? (I'm not familiar

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > What to do when you try to chain "C -> C"? Nothing. Or may be raise an exception (because C.__context__ can't be set to what you try). > you expected one type of exception, then you used some external library, and > after that you have a completely

[issue1927] raw_input behavior incorrect if readline not enabled

2015-12-02 Thread Jason R. Coombs
Jason R. Coombs added the comment: +1 to applying this patch. After reviewing this and Issue 12869, I don't see any substantial objections or concerns. The status is "test needed". Is a test really needed? My instinct that simply aligning the implementation with the docs is sufficient.

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Larry Hastings
Larry Hastings added the comment: > Please look at http://bugs.python.org/issue25779. You closed that one and marked it "not a bug"...? -- ___ Python tracker

[issue25780] Add support for CAN_RAW_JOIN_FILTERS

2015-12-02 Thread Martin Panter
Martin Panter added the comment: Not sure what the general policy is, but IMO it is better to leave offensive white space as it is to avoid flooding the file history and diffs, unless you are editing nearby lines. I will leave some review comments for the documentation. -- nosy:

[issue25780] Add support for CAN_RAW_JOIN_FILTERS

2015-12-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list

[issue25784] Please consider integrating performance fix for ipaddress.py

2015-12-02 Thread Alexander Finkel
Alexander Finkel added the comment: Thanks for the responses. I'm afraid I was looking at the Python 3.3 source code on my desktop, it looks like the problem was fixed in the Mercurial repo about 10 months ago by https://hg.python.org/cpython/rev/f7508a176a09 Marked this issue as a

[issue25780] Add support for CAN_RAW_JOIN_FILTERS

2015-12-02 Thread Stefan Tatschner
Stefan Tatschner added the comment: Hmm. I just adapted this feature request from issue22631 for the new constant and I verified that my patch actually works. I could try to provide a test, but then I would have to open Pandora's box as I am not a CPython developer at all. :/ --

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: > You closed that one and marked it "not a bug"...? That particular issue was about asyncio. After reducing it, I created two new issues -- this one, and another one about another bug in contextlib. -- ___ Python

[issue25500] docs claim __import__ checked for in globals, but IMPORT_NAME bytecode does not

2015-12-02 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: docs@python -> brett.cannon ___ Python tracker ___

[issue25780] Add support for CAN_RAW_JOIN_FILTERS

2015-12-02 Thread R. David Murray
R. David Murray added the comment: In this particular case, whether we want to do that to config.ac is a separate question and should be addressed in a separate issue. -- nosy: +r.david.murray ___ Python tracker

[issue25780] Add support for CAN_RAW_JOIN_FILTERS

2015-12-02 Thread Stefan Tatschner
Stefan Tatschner added the comment: Thanks! Here is an update. -- Added file: http://bugs.python.org/file41218/can_raw_join_filters-no-whitespace-v2.diff ___ Python tracker

[issue25782] CPython hangs on error __context__ set to the error itself

2015-12-02 Thread Yury Selivanov
Yury Selivanov added the comment: Serhiy, Victor, thank you for your reviews. Another version of the patch is attached. -- Added file: http://bugs.python.org/file41219/Issue25782_3.patch ___ Python tracker

[issue25780] Add support for CAN_RAW_JOIN_FILTERS

2015-12-02 Thread R. David Murray
R. David Murray added the comment: Yes. The review system will automatically include the new patch, regardless of its name (it looks at the content). -- ___ Python tracker

[issue6395] Infinite Recursion during Unpickling a codecs Object

2015-12-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 02.12.2015 21:29, Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > >> I think all we need to do is add a .__reduce__() >> method to StreamWriter and StreamReader, which then >> raises a PickleError. > > Rather TypeError. Yes, it is the

[issue25780] Add support for CAN_RAW_JOIN_FILTERS

2015-12-02 Thread Martin Panter
Martin Panter added the comment: The other thing for new features is test cases. I don’t know if there are any existing CAN socket tests (in fact I don’t know anything about CAN sockets). Is it possible to make a test for this? Even if it just ensures that the setting can be applied when

[issue10141] SocketCan support

2015-12-02 Thread Martin Panter
Martin Panter added the comment: Sounds like the last problem has been fixed, so can we close this? -- nosy: +martin.panter ___ Python tracker ___

[issue25784] Please consider integrating performance fix for ipaddress.py

2015-12-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: duplicate -> out of date stage: -> resolved ___ Python tracker ___

[issue25786] contextlib.ExitStack introduces a cycle in exception __context__

2015-12-02 Thread Martin Panter
Martin Panter added the comment: If I understand this issue correctly, perhaps the test case should be augmented to check for a cycle: try: main() except RuntimeError as exc: self.assertIsNone(exc.__cause__) else: self.fail("Expected RuntimeError") -- nosy: +martin.panter

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-02 Thread random832
random832 added the comment: > All registry values are blobs and it's up to the caller to decide how to read > it - the "types" are hints and are not binding. Just out of curiosity, what do we do if a REG_DWORD is more (or less?) than four bytes? Can that happen? --

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-02 Thread Zachary Ware
Zachary Ware added the comment: > Is it possible that Python 2 is using a non-unicode Windows API to get the > values It does, but according to Anshul's nullcheck2.py output that doesn't matter. -- ___ Python tracker

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-02 Thread Zachary Ware
Zachary Ware added the comment: So then this is actually matplotlib's bug: Python is returning the blob as it should, but matplotlib is assuming too much about what it contains. However, I suspect that this particular issue isn't entirely matplotlib's fault; it looks to me like the entries

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-02 Thread Zachary Ware
Zachary Ware added the comment: Left one minor comment on Rietveld. However, I'm not yet convinced that this is a bug in Python. I can't find an authoritative source to say whether \0 is valid in a REG_SZ value, but the fact that you can set one and get it back makes me think it is (for

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-02 Thread random832
random832 added the comment: > I don't see why the original issue with matplotlib would only happen with > Python 3 and not Python 2, though. Is it possible that Python 2 is using a non-unicode Windows API to get the values, and the non-unicode API is converting the string (which is, of

[issue25787] Add an explanation what happens with subprocess parent and child processes when signals are sent

2015-12-02 Thread Karl Richter
New submission from Karl Richter: The [documentation of subprocess](https://docs.python.org/3.6/library/subprocess.html) doesn't contain a substantial statement how signals are handled which are send to the python interpreter. After reading the referenced docs it should be clear * whether

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-02 Thread Steve Dower
Steve Dower added the comment: All registry values are blobs and it's up to the caller to decide how to read it - the "types" are hints and are not binding. I don't mind the default behavior being to trim at the first null, but it is a lossy operation on our side and so we really ought to

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-02 Thread random832
random832 added the comment: > The winreg module is a low-level interface High enough to return a string instead of bytes, an int for REG_DWORD, and to parse out REG_MULTI_SZ into a list. Maybe for if people really want the blob there should be an interface that always returns bytes and

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-02 Thread Anshul Agrawal
Anshul Agrawal added the comment: Thanks Eryk, but I'm afraid I didn't follow most of what you said in your post. As an end-user, I just wanted to be able to install the packages, import them, and then use within Python. It is still not clear to me whether this is a problem with Python3, or

  1   2   >