[issue32419] Add unittest support for pyc projects

2018-03-31 Thread Robert Collins
Robert Collins added the comment: Oh, and why look for __init__ - in part, because it predates namespace packages, but also because unlike regular imports unittest will do negative things like reading the entire filesystem otherwise. --

[issue32419] Add unittest support for pyc projects

2018-03-31 Thread Robert Collins
Robert Collins added the comment: Whats the use for *unittest* - a tool to help folk develop - to run a test which is only present in sourceless form? -- ___ Python tracker

[issue33193] Cannot create a venv on Windows when directory path contains dollar character

2018-03-31 Thread Stuart Cuthbertson
New submission from Stuart Cuthbertson : I should clarify first that I haven't reproduced the following bug specifically with venv. I was asked to raise this here after raising an identical issue about virtualenv (https://github.com/pypa/virtualenv/issues/1154); a

[issue33169] importlib.invalidate_caches() doesn't clear all caches

2018-03-31 Thread Brett Cannon
Brett Cannon added the comment: OK, I will update importlib.machinery.PathFinder.invalidate_caches() to also drop None from sys.path_importer_cache (objects that are not None and do not define invalidate_caches() will be left alone just like they are today). I should

[issue25433] whitespace in strip()/lstrip()/rstrip()

2018-03-31 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing

[issue33192] asyncio should use signal.set_wakeup_fd on Windows

2018-03-31 Thread Nathaniel Smith
New submission from Nathaniel Smith : I thought there was already a bug for this, but it came up in conversation again and I can't find one, so, here you go... It looks like originally there was this bug for making control-C wake up the asyncio event loop in Windows:

[issue33096] ttk.Treeview.insert() does not allow to insert item with "False" iid

2018-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e80a232f2cfdab584133d9779c83885c5f9f1ba6 by Serhiy Storchaka in branch '2.7': [2.7] bpo-33096: Fix ttk.Treeview.insert. (GH-6228) (GH-6326)

[issue24978] Contributing to Python 2x and 3x Documentation. Translation to Russian.

2018-03-31 Thread Cheryl Sabella
Cheryl Sabella added the comment: Adding a reference to PEP 545 for contributing documentation translations. -- nosy: +csabella ___ Python tracker

[issue32419] Add unittest support for pyc projects

2018-03-31 Thread Bassem Girgis
Bassem Girgis added the comment: Please let me know what I need to do in order to close this issue and finally merge the code. -- ___ Python tracker

[issue33132] Possible refcount issues in the compiler

2018-03-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6038 ___ Python tracker ___ ___

[issue33132] Possible refcount issues in the compiler

2018-03-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6039 ___ Python tracker ___ ___

[issue33096] ttk.Treeview.insert() does not allow to insert item with "False" iid

2018-03-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6040 ___ Python tracker ___ ___

[issue33132] Possible refcount issues in the compiler

2018-03-31 Thread miss-islington
miss-islington added the comment: New changeset 9e96e7b24e4d3ff4dce4f24c4e469cd5460712c9 by Miss Islington (bot) in branch '3.7': bpo-33132: Fix more reference counting issues in the compiler. (GH-6323)

[issue33132] Possible refcount issues in the compiler

2018-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 25c869edd665cba7187910c5b151a0016fec4754 by Serhiy Storchaka in branch '3.6': [3.6] bpo-33132: Fix reference counting issues in the compiler. (GH-6209). (GH-6321)

[issue25433] whitespace in strip()/lstrip()/rstrip()

2018-03-31 Thread Nitish
Change by Nitish : -- nosy: +nitishch ___ Python tracker ___ ___ Python-bugs-list

[issue33132] Possible refcount issues in the compiler

2018-03-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +6041 ___ Python tracker ___

[issue33132] Possible refcount issues in the compiler

2018-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset aa8e51f5ebb2a71c76059f050de01fc3c985376a by Serhiy Storchaka in branch 'master': bpo-33132: Fix more reference counting issues in the compiler. (GH-6323)

[issue33132] Possible refcount issues in the compiler

2018-03-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6037 ___ Python tracker ___ ___

[issue32419] Add unittest support for pyc projects

2018-03-31 Thread Bassem Girgis
Bassem Girgis added the comment: I Robert, One use scenario is to run deployment tests for sourceless packages and to ensure the integrity of the production environment. Very useful in container environments! In regards to the looking for the __init__ file, it is obvious

[issue33185] Python 3.7.0b3 fails in pydoc where b2 did not.

2018-03-31 Thread Nick Coghlan
Nick Coghlan added the comment: I guess this confirms our suspicion from issue 33053 that making "-m" no longer track the current working directory had the potential to pose some non-trivial compatibility risks :( I can reproduce the issue in a 3.7 checkout without a

[issue33194] Path-file objects does not have method to delete itself if its a file

2018-03-31 Thread Marco Rougeth
New submission from Marco Rougeth : Path has the method `.rmdir()` for removing the directory, but it doesn't have anything if it correspond to a file. The `os.remove` could be used here, but I think it should have a more appropriate/explicit name like `.rmfile()`. If it

[issue33194] Path-file objects does not have method to delete itself if its a file

2018-03-31 Thread Nathaniel Smith
Nathaniel Smith added the comment: You're looking for 'Path.unlink'. Agreed though that the name makes it hard to find. (I guess it makes sense to old-school Unix greybeards, but Python does generally try to be useful for more people than just them...) There was some

[issue33185] Python 3.7.0b3 fails in pydoc where b2 did not.

2018-03-31 Thread Nick Coghlan
Nick Coghlan added the comment: It turns out pydoc's CLI is looking specifically for '' in sys.path, but *not* looking for "os.getcwd()". The resulting sys.path manipulation then goes completely wrong for "python -m pydoc", since it ends up removing "scriptdir" from

[issue33195] PyArg_Parse* should deprecate 'u' and 'z' family.

2018-03-31 Thread INADA Naoki
New submission from INADA Naoki : https://docs.python.org/3/c-api/arg.html Py_UNICODE usage is not deprecated in this document. Before thinking about raising warning, deprecate it in document first. But... from when? Can I backport the "deprecated" doc to 3.6 or 3.5?

[issue33196] SEGV in mp.synchronize.Lock.__repr__ in spawn'ed proc if ctx mismatched

2018-03-31 Thread Arcadiy Ivanov
New submission from Arcadiy Ivanov : While working on GH gevent/gevent#993 I've encountered a stall trying to read from an mp.Queue passed to mp.Process's target as an argument. Trying to print out the lock state in child process I encountered as SEGV in Lock's __repr__. I

[issue33195] PyArg_Parse* should deprecate 'u' and 'z' family.

2018-03-31 Thread INADA Naoki
Change by INADA Naoki : -- keywords: +patch pull_requests: +6042 stage: -> patch review ___ Python tracker ___

[issue33188] dataclass MRO entry resolution for type variable metaclasses: TypeError

2018-03-31 Thread Eric V. Smith
Eric V. Smith added the comment: Yeah, no need to change the API. I was over-generalizing. -- ___ Python tracker ___

[issue31544] gettext.Catalog title is not flagged as a class

2018-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c498cd8bf81fc47acf2f1f702e8b3bc9bd4aed65 by Serhiy Storchaka (scoder) in branch '2.7': bpo-31544: Fix a reference leak to 'self' after the previous target error handling fixes. (GH-6318)

[issue31544] gettext.Catalog title is not flagged as a class

2018-03-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- Removed message: https://bugs.python.org/msg314739 ___ Python tracker ___

[issue31455] ElementTree.XMLParser() mishandles exceptions

2018-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c498cd8bf81fc47acf2f1f702e8b3bc9bd4aed65 by Serhiy Storchaka (scoder) in branch '2.7': bpo-31544: Fix a reference leak to 'self' after the previous target error handling fixes. (GH-6318)

[issue31544] gettext.Catalog title is not flagged as a class

2018-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The correct issue for 0694b6a651ba2a53f6323ffb3b23358f43885815 and c498cd8bf81fc47acf2f1f702e8b3bc9bd4aed65 is issue31455. -- ___ Python tracker

[issue33188] dataclass MRO entry resolution for type variable metaclasses: TypeError

2018-03-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +6036 ___ Python tracker ___

[issue32823] Regression in test -j behavior and time in 3.7.0b1

2018-03-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: python -m test -j0 -- ___ Python tracker ___ ___

[issue20104] expose posix_spawn(p)

2018-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: posix_spawn() is not documented, it contains reference leaks (issue33191) and can cause crashes. It's style doesn't conform PEP 7. The simplest fix requires changing the undocumented interface. -- dependencies: +Refleak

[issue31455] ElementTree.XMLParser() mishandles exceptions

2018-03-31 Thread Stefan Behnel
Stefan Behnel added the comment: Right, Zachary, thanks for noticing. Py2.7 is actually way more different than I thought, and I hadn't paid enough attention to that. Py3 does all of this in "__init__", whereas Py2 essentially implements "__new__" in C, which requires

[issue33186] Memory corruption with urllib.parse

2018-03-31 Thread Ivan Zakharyaschev
Ivan Zakharyaschev added the comment: Actually, Alexey shared this problem with me orally first, and then asked to have a look at his report, and I felt that just describing the technical details about what is going on is not enough, and suggested to include a brief

[issue33181] SimpleHTTPRequestHandler shouldn't redirect to directories with code 301

2018-03-31 Thread Matt Eaton
Matt Eaton added the comment: Adding some core team members to the nosy list to get their take on this as well. -- nosy: +berker.peksag, eric.smith ___ Python tracker

[issue31455] ElementTree.XMLParser() mishandles exceptions

2018-03-31 Thread Stefan Behnel
Change by Stefan Behnel : -- pull_requests: +6034 stage: resolved -> patch review ___ Python tracker ___

[issue31455] ElementTree.XMLParser() mishandles exceptions

2018-03-31 Thread Stefan Behnel
Stefan Behnel added the comment: PR 6318 fixes the reference leak for Py2.7. -- ___ Python tracker ___

[issue33188] dataclass MRO entry resolution for type variable metaclasses: TypeError

2018-03-31 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- keywords: +patch pull_requests: +6035 stage: -> patch review ___ Python tracker ___

[issue14119] Ability to adjust queue size in Executors

2018-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Issue 29595 has a more complete PR, so closing this issue as duplicate. -- nosy: +pitrou resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Expose max_queue_size in ThreadPoolExecutor

[issue29595] Expose max_queue_size in ThreadPoolExecutor

2018-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Please note the PR here has some review comments that need addressing. Also, it needs its conflicts with git master resolved. I'm cc'ing Thomas Moreau, who has done a lot of work recently on the concurrent.futures internals. --

[issue28053] parameterize what serialization is used in multiprocessing

2018-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'd like to know if the work here will be completed soon :-) This currently lacks documentation but also tests. In particular, looking at the code (and that is supported by Will S' comment above), I feel the API isn't working as intended