[issue34939] Possibly spurious SyntaxError: annotated name can't be global

2018-10-09 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Hm, I think this should be allowed. The formulation in the docs is not very clear, but the wording in the PEP clarifies the intention. Indeed, only annotations at the same scope with global declarations should be prohibited. So I think this is a bug.

[issue23867] Argument Clinic: inline parsing code for 1-argument functions

2018-10-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34941] xml.etree.ElementTree findall() fails when using custom TreeBuilder

2018-10-09 Thread Jack Jansen
New submission from Jack Jansen : When using a TreeBuilder with a custom factory (returning a subclass of Element with some extra functionality) there is an issue with findall(). XPaths using an indexed predicate no longer work: the findall() result is always empty. The attached test script

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2018-10-09 Thread Andrew Svetlov
Change by Andrew Svetlov : -- assignee: -> asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34795] loop.sock_recv failure because of delayed callback handling

2018-10-09 Thread Andrew Svetlov
Change by Andrew Svetlov : -- assignee: -> asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34939] Possibly spurious SyntaxError: annotated name can't be global

2018-10-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The error message was added with 6cff8744a0ae58c88728df8bbca4580ffa6c6a86 and issue27999. The docs were also changed as below with the commit : https://docs.python.org/3.8/reference/simple_stmts.html#the-global-statement > Names listed in a

[issue34926] Allow querying a Path's mime-type

2018-10-09 Thread Antoine Pitrou
Change by Antoine Pitrou : -- title: Adding "mime_type" method to pathlib.Path -> Allow querying a Path's mime-type ___ Python tracker ___

[issue34926] Adding "mime_type" method to pathlib.Path

2018-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: I would rather have the mimetypes module improved to accept Path-like objects, so that the following works: >>> p = Path('LICENSE.txt') >>> mimetypes.guess_type(p) ('text/plain', None) It should be quite simple to implement as well. -- components:

[issue34934] Consider making Windows select.select interruptible using WSAEventSelect & WSAWaitForMultipleEvents

2018-10-09 Thread ondrej.kutal
Change by ondrej.kutal : -- components: +Extension Modules -Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34938] Fix mimetype.init() to account for from import

2018-10-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34926] Adding "mime_type" method to pathlib.Path

2018-10-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. There was a similar request to add pathlib.rmtree (issue33498) and adding more methods as Raymond mentioned might be convenient but there is a maintenance cost (msg316517) since there is a consensus that pathlib should do

<    1   2