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

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

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

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

[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 ___ ___ Python-bugs-list mailing list Unsubscrib

[issue25780] Add support for CAN_RAW_JOIN_FILTERS

2015-12-02 Thread Stefan Tatschner
Stefan Tatschner added the comment: Because is the first time I work with this bugtracking system on python.org, how can I update my patch? :) Just upload a new one? -- ___ Python tracker _

[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 mailing list Unsubscribe: https://mail.pyth

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

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

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

2015-12-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

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

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

[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 ___ ___ Python-bugs-list

[issue25709] Problem with string concatenation and utf-8 cache.

2015-12-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 67718032badb by Serhiy Storchaka in branch '3.4': Issue #25709: Fixed problem with in-place string concatenation and utf-8 cache. https://hg.python.org/cpython/rev/67718032badb New changeset a0e2376768dc by Serhiy Storchaka in branch '3.5': Issue #2

[issue25709] Problem with string concatenation and utf-8 cache.

2015-12-02 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 67718032badb by Serhiy Storchaka in branch '3.4': Thanks. -- ___ Python tracker ___ ___

[issue6766] Cannot modify dictionaries inside dictionaries using Managers from multiprocessing

2015-12-02 Thread Justin Patrin
Justin Patrin added the comment: I'm still running into these issues with Python 2.7.10. I'm trying to find a way to share dynamically allocated sub-dictionaries through multiprocessing as well as dynamically allocated RLock and Value instances. I can use the manager to create them but when I

[issue1927] raw_input behavior incorrect if readline not enabled

2015-12-02 Thread Martin Panter
Martin Panter added the comment: “Test needed” is meant to mean someone needs help producing the problem, but people also seem use it to request a refined test case for the test suite. A test case is always nice, although in this case it is a bit tricky. I can try to knock one up use the exist

[issue25777] Misleading descriptions in docs about invoking descriptors.

2015-12-02 Thread Martin Panter
Martin Panter added the comment: Agreed. The same problem is also present in the Python 3 documentation. (Beware there is another report somewhere about updating this how-to more generally for Python 3.) Maybe we could be more explicit and start off “The attribute lookup super(B, obj).m searc

[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

[issue14285] Traceback wrong on ImportError while executing a package

2015-12-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 784a64a21fd0 by Martin Panter in branch '3.5': Issue #14285: Do not catch __init__.py exceptions in runpy https://hg.python.org/cpython/rev/784a64a21fd0 New changeset 01397c11ebb8 by Martin Panter in branch 'default': Issue #14285: Merge runpy excep

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-02 Thread Eryk Sun
Eryk Sun added the comment: Here's a patch for Python 3 that modifies the Reg2Py function in PC/winreg.c for the case of REG_SZ/REG_EXPAND_SZ. The existing code took a conservative approach by only removing a null character at the end of a buffer. I modified it to use wcsnlen instead. I added

[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

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

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

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

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

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

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

<    1   2