[issue31698] Add REQ_NAME to the node.h API

2017-10-08 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- keywords: +patch pull_requests: +3900 stage: -> patch review ___ Python tracker ___

[issue31537] Bug in readline module documentation example

2017-10-08 Thread Bradley Smith
Bradley Smith added the comment: I ran into the same bug in the documentation recently. I've opened a pull request here that fixes it: https://github.com/python/cpython/pull/3925 As I was trying to figure out why the example was broken, I wrote up a little more context to

[issue31537] Bug in readline module documentation example

2017-10-08 Thread Bradley Smith
Change by Bradley Smith : -- keywords: +patch pull_requests: +3898 stage: -> patch review ___ Python tracker ___

[issue31729] multiprocesssing.pool.AsyncResult undocumented field

2017-10-08 Thread g...@nlc.co.nz
Change by g...@nlc.co.nz : -- title: multiprocesssing.Pool.map_async() undocumented -> multiprocesssing.pool.AsyncResult undocumented field ___ Python tracker

[issue31092] delicate behaviour of shared (managed) multiprocessing Queues

2017-10-08 Thread Prof Plum
Prof Plum added the comment: @Antoine Pitrou >Well... it's called *async* for a reason, so I'm not sure why the behaviour >would be partially synchronous. To a avoid race condition >I'm not sure how. In mp.Pool we don't want to keep references to input >objects longer

[issue31728] crashes in _elementtree due to unsafe decrefs of Element.text and Element.tail

2017-10-08 Thread Oren Milman
Change by Oren Milman : -- keywords: +patch pull_requests: +3897 stage: -> patch review ___ Python tracker ___

[issue31729] multiprocesssing.Pool.map_async() undocumented

2017-10-08 Thread Ned Deily
Change by Ned Deily : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list

[issue31730] list unhashable, can not be use as key to dict

2017-10-08 Thread Ned Deily
Ned Deily added the comment: As documented, a dict key must be hashable and, because lists are not immutable, they are not hashable and thus can't be used as keys. See the Python Glossary for more info. https://docs.python.org/2/glossary.html -- nosy: +ned.deily

[issue31730] list unhashable, can not be use as key to dict

2017-10-08 Thread g...@nlc.co.nz
New submission from g...@nlc.co.nz : A list can no be used as the key to a dict, apparently because it is "unhashable": TypeError: unhashable type: 'list'. The code must exist to hash object like this a tuple is hashable and can be constructed from a list. --

[issue31729] multiprocesssing.Pool.map_async() undocumented

2017-10-08 Thread g...@nlc.co.nz
New submission from g...@nlc.co.nz : To monitor how much of my multiprocess.Pool is completed I am forced to use undocumented features which I fear mat changed in the future. Especially result._number_left which looks like a private variable. Can you please document the result

[issue31728] crashes in _elementtree due to unsafe decrefs of Element.text and Element.tail

2017-10-08 Thread Oren Milman
New submission from Oren Milman : The following code causes the interpreter to crash: import xml.etree.ElementTree class X: def __del__(self): elem.clear() elem = xml.etree.ElementTree.Element('elem') elem.text = X() elem.clear() This is because

[issue31092] delicate behaviour of shared (managed) multiprocessing Queues

2017-10-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: @Prof Plum > When I call pool.apply_async() I expect it only to return when the worker > process has been started and finished it's initialization process Well... it's called *async* for a reason, so I'm not sure why the behaviour would be

[issue31726] Missing token.COMMENT

2017-10-08 Thread R. David Murray
R. David Murray added the comment: 3.4 and 3.5 are in security maintenance mode only, and this is not a security bug. This was fixed in master (3.7) as a result of issue 25324. The decision there was made to not backport it because no one had complained about the

[issue31727] FTP_TLS errors when

2017-10-08 Thread Ned Deily
Change by Ned Deily : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue31727] FTP_TLS errors when

2017-10-08 Thread Jonathan
New submission from Jonathan : Using Python 3.6.3. The below issue only happens with FTP_TLS. It works fine via a plain FTP connection. I am connecting to an FTP to using `ftplib` via FTP_TLS. ftps = ftplib.FTP_TLS('example.com', timeout=5) # TLS is

[issue31726] Missing token.COMMENT

2017-10-08 Thread Franck Pommereau
Franck Pommereau added the comment: I've just launched ipython3 (installed with pip): $ ipython3 Python 3.4.3 (default, Nov 17 2016, 01:08:31) Type 'copyright', 'credits' or 'license' for more information IPython 6.1.0 -- An enhanced Interactive Python. Type '?'

[issue31726] Missing token.COMMENT

2017-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: COMMENT and NL are added by the tokenize module. BACKQUOTE already is set, but to 25 instead of 56. ATEQUAL shouldn't be occurred in Python earlier than 3.5. How did you get your results? -- nosy: +serhiy.storchaka

[issue31726] Missing token.COMMENT

2017-10-08 Thread Franck Pommereau
Franck Pommereau added the comment: I have the problem still exists in 3.4.3 at least: Python 3.4.3 (default, Nov 17 2016, 01:08:31) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import token >>> token.COMMENT

[issue31725] Turtle/tkinter: NameError crashes ipython with "Tcl_AsyncDelete: async handler deleted by the wrong thread"

2017-10-08 Thread Rick J. Pelleg
Rick J. Pelleg added the comment: Mmm... right now I cannot reproduce at all, both in iPython and in python. Will continue to try. -- ___ Python tracker

[issue31726] Missing token.COMMENT

2017-10-08 Thread R. David Murray
R. David Murray added the comment: This is fixed in python3. Do you have a use case for 2.7 or are you just noticing? -- nosy: +r.david.murray versions: -Python 3.4 ___ Python tracker

[issue31490] assertion failure in ctypes in case an _anonymous_ attr appears outside _fields_

2017-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In 2.7 "%U" is not recognized in the format string. >>> class Name(Structure): ... _fields_ = [] ... _anonymous_ = ["x"] ... x = 42 ... Traceback (most recent call last): File "", line 1, in AttributeError: '%U'

[issue16516] argparse types (and actions) must be hashable

2017-10-08 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue16516] argparse types (and actions) must be hashable

2017-10-08 Thread Joel Nothman
Joel Nothman added the comment: Clearly this is not in high demand -- ___ Python tracker ___

[issue31725] Turtle/tkinter: NameError crashes ipython with "Tcl_AsyncDelete: async handler deleted by the wrong thread"

2017-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can you reproduce the issue without IPython? -- nosy: +serhiy.storchaka ___ Python tracker

[issue31642] None value in sys.modules no longer blocks import

2017-10-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.8 ___ Python tracker

[issue27867] various issues due to misuse of PySlice_GetIndicesEx

2017-10-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue27867] various issues due to misuse of PySlice_GetIndicesEx

2017-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4d3f084c035ad3dfd9f8479886c41b1b1823ace2 by Serhiy Storchaka in branch 'master': bpo-27867: Add a porting guide for PySlice_GetIndicesEx(). (#1973)

[issue31642] None value in sys.modules no longer blocks import

2017-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6f059ab80a351a7dd85cc57c5ca240f817a79c5d by Serhiy Storchaka in branch '3.6': [3.6] bpo-31642: Restore blocking "from" import by setting None in sys.modules. (GH-3834). (#3923)

[issue31726] Missing token.COMMENT

2017-10-08 Thread Franck Pommereau
Franck Pommereau added the comment: Actually, comparing with the content of tok_name, all the following constants are missing: COMMENT = 54 NL = 55 BACKQUOTE = 56 ATEQUAL = 57 -- ___ Python tracker

[issue28280] Always return a list from PyMapping_Keys/PyMapping_Values/PyMapping_Items

2017-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0ccc0f6c7495be9043300e22d8f38e6d65e8884f by Serhiy Storchaka (Oren Milman) in branch 'master': bpo-28280: Make PyMapping_Keys(), PyMapping_Values() and PyMapping_Items() always return a list (#3840)

[issue31642] None value in sys.modules no longer blocks import

2017-10-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +3896 ___ Python tracker ___ ___

[issue31726] Missing token.COMMENT

2017-10-08 Thread Franck Pommereau
New submission from Franck Pommereau : Module token does not have constant COMMENT. But tokenize produces it and it appears in tok_name. -- components: Library (Lib) messages: 303901 nosy: fpom priority: normal severity: normal status: open title: Missing

[issue31642] None value in sys.modules no longer blocks import

2017-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f07e2b64df6304a36fb5e29397d3c77a7ba17704 by Serhiy Storchaka in branch 'master': bpo-31642: Restore blocking "from" import by setting None in sys.modules. (#3834)

[issue31271] an assertion failure in io.TextIOWrapper.write

2017-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You are right. But in any case the test should be fixed for 2.7. -- ___ Python tracker

[issue31725] Turtle/tkinter: NameError crashes ipython with "Tcl_AsyncDelete: async handler deleted by the wrong thread"

2017-10-08 Thread Rick J. Pelleg
New submission from Rick J. Pelleg : On Windows 10 Education, ran: ipython Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 17:26:49) [MSC v.1900 32 bit (Intel)] Type 'copyright', 'credits' or 'license' for more information IPython 6.2.1 -- An enhanced Interactive Python. Type

[issue31724] test_xmlrpc_net should use something other than buildbot.python.org

2017-10-08 Thread Zachary Ware
Zachary Ware added the comment: New changeset d13a4e50679c0861971cfae2bb226f35b8bf5142 by Zachary Ware (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31724: Skip test_xmlrpc_net (GH-3922)

[issue31724] test_xmlrpc_net should use something other than buildbot.python.org

2017-10-08 Thread Zachary Ware
Zachary Ware added the comment: This is currently mitigated by some nasty hacks on the buildbot.python.org server to avoid breaking tests on every released version of Python 3, but this still needs to change. The test is skipped in master and (soon) 3.6 to minimize

[issue31724] test_xmlrpc_net should use something other than buildbot.python.org

2017-10-08 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +3895 stage: needs patch -> patch review ___ Python tracker ___

[issue31724] test_xmlrpc_net should use something other than buildbot.python.org

2017-10-08 Thread Zachary Ware
Zachary Ware added the comment: New changeset 73ffd3f2036179ed54591ef0455e5ba5694ae5bd by Zachary Ware in branch 'master': bpo-31724: Skip test_xmlrpc_net (GH-3921) https://github.com/python/cpython/commit/73ffd3f2036179ed54591ef0455e5ba5694ae5bd --