[issue27916] Use time.monotonic instead of time.time where appropriate

2016-08-31 Thread Guido van Rossum
Guido van Rossum added the comment: asyncio already uses monotonic. The only place patched is a test utility and I don't care either way. But I do think this is not a good patch to do in general. -- ___ Python tracker <http://bugs.py

[issue27916] Use time.monotonic instead of time.time where appropriate

2016-08-31 Thread Guido van Rossum
Guido van Rossum added the comment: I mostly adhere to the rule of thumb "if it ain't broke, don't fix it". So I would only endorse such changes if they address actual pain, rather than possible pain. Note that that rule of thumb was born out of worry about anothe

[issue27929] asyncio.AbstractEventLoop.sock_connect broken for AF_BLUETOOTH

2016-09-01 Thread Guido van Rossum
Guido van Rossum added the comment: Looks related (possibly a duplicate) of issue #27136. Also related is a fix for the latter in https://github.com/python/asyncio/pull/357. That fix is already in the CPython repo, but I guess it didn't make it into

[issue27906] Socket accept exhaustion during high TCP traffic

2016-09-01 Thread Guido van Rossum
Guido van Rossum added the comment: I'll try to get to this during the core dev sprint next week. -- ___ Python tracker <http://bugs.python.org/is

[issue27985] Implement PEP 526

2016-09-06 Thread Guido van Rossum
New submission from Guido van Rossum: Pending PEP 526's acceptance, I am inviting Ivan Levkivskyi to upload his patch here so it can be reviewed. -- assignee: gvanrossum components: Interpreter Core messages: 274672 nosy: gvanrossum priority: normal severity: normal stage: needs

[issue25596] Use scandir() to speed up the glob module

2016-09-06 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks Serhiy! --Guido (mobile) On Sep 6, 2016 12:35 PM, "Roundup Robot" wrote: > > Roundup Robot added the comment: > > New changeset cb7ee9d9cddd by Serhiy Storchaka in branch 'default': > Issue #25596: Optimized

[issue27972] Confusing error during cyclic yield

2016-09-06 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks for the report. I've never seen this before, so I doubt it is a common mistake. Yury have you ever seen this? --Guido (mobile) -- ___ Python tracker <http://bugs.python.org/is

[issue27989] incomplete signature with help function using typing

2016-09-06 Thread Guido van Rossum
Guido van Rossum added the comment: It seems the output produced here is generated by inspect.signature(), which is called by pydoc in this case (in both versions of docroutine()). I don't know if the right thing to do is to change inspect.signature() here, or to change pydoc to use some

[issue27905] Add documentation for typing.Type

2016-09-06 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks again! Merged to 3.5 and 3.6 (after cleaning up trailing whitespace -- again ;-). -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue27968] test_coroutines generates some warnings

2016-09-06 Thread Guido van Rossum
Guido van Rossum added the comment: I only have a Mac to test -- does anyone else on this issue have a Linux system to try to reproduce this? -- ___ Python tracker <http://bugs.python.org/issue27

[issue27968] test_coroutines generates some warnings

2016-09-06 Thread Guido van Rossum
Guido van Rossum added the comment: NM I get the same on Mac after rebuilding from scratch. I can repro this with the 3.5 branch too. Wonder if something changed in asyncio? -- versions: +Python 3.5 ___ Python tracker <http://bugs.python.

[issue27968] test_coroutines generates some warnings

2016-09-06 Thread Guido van Rossum
Guido van Rossum added the comment: Yury this smells of something in async/await? -- assignee: -> yselivanov ___ Python tracker <http://bugs.python.org/issu

[issue27968] test_coroutines generates some warnings

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks Benjamin! -- ___ Python tracker <http://bugs.python.org/issue27968> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27999] Make "global after use" a SyntaxError

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: I like fixing this. I suppose it'll be fixed for nonlocal too? -- ___ Python tracker <http://bugs.python.org/is

[issue27364] Deprecate invalid escape sequences in str/bytes

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: +1 on getting this in. Who can help reviewing and merging before beta 1? -- ___ Python tracker <http://bugs.python.org/issue27

[issue15767] add ModuleNotFoundError

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: +1 to add this to 3.6b1. -- ___ Python tracker <http://bugs.python.org/issue15767> ___ ___ Python-bugs-list mailing list Unsub

[issue27989] incomplete signature with help function using typing

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: That sounds a fine solution (except the elif should just test for `in 'typing'`). Can one of you prepare a patch? I think it should be fine to fix this in 3.5 as well. There should be a unit tes

[issue27989] incomplete signature with help function using typing

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: I've lost you -- why don't you upload a patch? -- ___ Python tracker <http://bugs.python.org/issue27989> ___ ___

[issue27999] Make "global after use" a SyntaxError

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: I strongly prefer to have it as a separate patch (either before or after) to avoid the appearance of piggy-backing this in with a much larger change. -- ___ Python tracker <http://bugs.python.org/issue27

[issue27985] Implement PEP 526

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: Hey Ivan, Brett and I divided the review, he started at the bottom and I started at the top, we're meeting at Lib/typing.py. -- ___ Python tracker <http://bugs.python.org/is

[issue27985] Implement PEP 526

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: I played with the REPL, and found this: >>> del __annotations__ del __annotations__ >>> x: int = 0 x: int = 0 Traceback (most recent call last): File "", line 1, in NameError: __annotations__ not found >>> I would exp

[issue27985] Implement PEP 526

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: Each statement at the REPL should re-initialize __annotations__ if it contains any annotations. I think this is how exec() already works. It adds __annotations__ to the namespace as needed, but just updates it if present. Inside a class it's different,

[issue27985] Implement PEP 526

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: Oh, dang, I misread the definition of _ClassVar. It's fine then! Looking forward to the next installment. -- ___ Python tracker <http://bugs.python.org/is

[issue27985] Implement PEP 526

2016-09-08 Thread Guido van Rossum
Guido van Rossum added the comment: Yury will give you some help. Also, this patch no longer applies cleanly to hg. :-( -- ___ Python tracker <http://bugs.python.org/issue27

[issue27985] Implement PEP 526

2016-09-08 Thread Guido van Rossum
Guido van Rossum added the comment: Ivan, I have no idea how to integrate your patch and Yury's. I only use Mercurial here, I don't trust the github clone (how far behind is it?). Please sort this out yourself. I am also going through the review on riet

[issue27985] Implement PEP 526

2016-09-08 Thread Guido van Rossum
Guido van Rossum added the comment: (I've renamed the patches so they line up with the numbering in the code review tool.) -- ___ Python tracker <http://bugs.python.org/is

[issue27985] Implement PEP 526

2016-09-08 Thread Guido van Rossum
Guido van Rossum added the comment: W00t! Thank Ivan for the code! And thanks Yury and Brett for the review. -- ___ Python tracker <http://bugs.python.org/issue27

[issue26982] Clarify forward annotations in PEP 484

2016-09-08 Thread Guido van Rossum
Guido van Rossum added the comment: The PEPs repo is not on github. Please resubmit this patch as a PR at https://github.com/python/peps. (Sorry for all the indirections to different trackers.) -- resolution: -> rejected status: open ->

[issue26982] Clarify forward annotations in PEP 484

2016-09-08 Thread Guido van Rossum
Guido van Rossum added the comment: (And by "not" I meant "now". Sorry.) -- ___ Python tracker <http://bugs.python.org/issue26982> ___ ___ Pyt

[issue28038] Remove com2ann script (will be in separate repo)

2016-09-09 Thread Guido van Rossum
Guido van Rossum added the comment: I just deleted it, lest people try to report bugs here or make changes. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue28038] Remove com2ann script (will be in separate repo)

2016-09-09 Thread Guido van Rossum
Guido van Rossum added the comment: (The reason for the removal is that development of this tool is moving to https://github.com/ilevkivskyi/com2ann -- it was committed briefly as part of the PEP 526 patch.) On Fri, Sep 9, 2016 at 9:07 AM, Guido van Rossum wrote: > > Guido van Rossum add

[issue27999] Make "global after use" a SyntaxError

2016-09-09 Thread Guido van Rossum
Guido van Rossum added the comment: I'll commit this. -- assignee: docs@python -> gvanrossum ___ Python tracker <http://bugs.python.org/issue27999> ___ _

[issue27999] Make "global after use" a SyntaxError

2016-09-09 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks again Ivan! -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue26455] Inconsistent behavior with KeyboardInterrupt and asyncio futures

2016-09-09 Thread Guido van Rossum
Guido van Rossum added the comment: Closing this issue in favor of the upstream one: https://github.com/python/asyncio/issues/341 -- resolution: -> third party status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue28049] Add documentation for typing.Awaitable and friends

2016-09-09 Thread Guido van Rossum
Changes by Guido van Rossum : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue28049> ___ ___ Python-bugs-

[issue28027] Remove Lib/plat-*/* files

2016-09-09 Thread Guido van Rossum
Guido van Rossum added the comment: Why? Do you have a dependency on these? None of them are documented. Do you propose to document them just so we can mark them deprecated? -- ___ Python tracker <http://bugs.python.org/issue28

[issue28027] Remove Lib/plat-*/* files

2016-09-09 Thread Guido van Rossum
Guido van Rossum added the comment: No, you need to demonstrate that they are used (despite undocumented). On Fri, Sep 9, 2016 at 2:26 PM, Matthias Klose wrote: > > Matthias Klose added the comment: > > Since the 3.6 cycle, these modules are regenerated for the build, so the

[issue28027] Remove Lib/plat-*/* files

2016-09-09 Thread Guido van Rossum
Guido van Rossum added the comment: The modules should remain deleted for 3.6b1 so we can see if there are actually any complaints -- if we get any we can consider restoring them for b2. I fail to be convinced by the arguments against deletion brought up so far -- the "evidence" produ

[issue23722] During metaclass.__init__, super() of the constructed class does not work

2016-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: > That aspect of the change is clearly a bug fix I am happy to *rule* that we can treat it as a bugfix, but I disagree that it's *clearly* a bugfix. It's definitely debatable. This area of the language is so obscure and so few people remember wh

[issue26081] Implement asyncio Future in C to improve performance

2016-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: The actual _futures module appears missing from your latest patch -- what's up with that? -- ___ Python tracker <http://bugs.python.org/is

[issue23722] During metaclass.__init__, super() of the constructed class does not work

2016-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: Nick, if you feel like doing this, go ahead, either before or after beta1 (but if you want to do it before please do it quickly). (Off-topic: boy do I miss CI that triggers when you send a patch for review...) On Sat, Sep 10, 2016 at 11:14 AM, Martin

[issue26141] typing module documentation incomplete

2016-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: Most things mentioned by Ben have been added (thanks Michael Lee!), but it seems the 3.5 docs and the 3.6 docs have deviated more than they ought to. I guess updating the 3.6 docs is more urgent because of the upcoming 3.6b1 release. I'll look

[issue28073] Update documentation about None vs type(None) in typing

2016-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! Busy Saturday night, right? :-) -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue26141] typing module documentation incomplete

2016-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: I'll figure it out. -- ___ Python tracker <http://bugs.python.org/issue26141> ___ ___ Python-bugs-list mailing list

[issue26141] typing module documentation incomplete

2016-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue26141> ___ ___

[issue26081] Implement asyncio Future in C to improve performance

2016-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! I can't review the whole thing, but I patched it in and tried running the asyncio/examples/crawl.py example, like so: $ ~/src/cpython36/python.exe examples/crawl.py xkcd.com -q Exception RuntimeError('yield was used instead of yield fr

[issue28076] Variable annotations should be mangled for private names

2016-09-11 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! I think you have a PEP update already waiting for me? -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue28079] Update typing and test typing from python/typing repo

2016-09-11 Thread Guido van Rossum
Guido van Rossum added the comment: Um, if I apply this to 3.5 it works, but if I then merge forward to 3.6 (default) I get merge conflicts. I'll have to sort that out tonight. -- ___ Python tracker <http://bugs.python.org/is

[issue28079] Update typing and test typing from python/typing repo

2016-09-11 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! All set. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue28079] Update typing and test typing from python/typing repo

2016-09-11 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! All set. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue28079] Update typing and test typing from python/typing repo

2016-09-11 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! All set. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue28082] re: convert re flags to (much friendlier) IntFlag constants

2016-09-11 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, I am generally in favor of this. Just yesterday there was a bug report (#28070) where someone claimed that the flags from r'(ix)A' were incorrect. They were 96 and should be 98. (He was right, and it was fixed already.) The way he had to

[issue26081] Implement asyncio Future in C to improve performance

2016-09-11 Thread Guido van Rossum
Guido van Rossum added the comment: Yury: What do you think of the code? How solid is it? (The issue I found was due to my own very recent changes to _blocking.) Ned: Is it better to do this in 3.6b1 or to wait for 3.6b2? -- nosy: +ned.deily

[issue26081] Implement asyncio Future in C to improve performance

2016-09-11 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, let's do this in 3.6b2. -- ___ Python tracker <http://bugs.python.org/issue26081> ___ ___ Python-bugs-list m

[issue28107] Update typing module dicumentation for NamedTuple

2016-09-12 Thread Guido van Rossum
Guido van Rossum added the comment: Honestly I think it's better if this remains a "hidden" feature until we have support for it in mypy. So let's wait for that. -- ___ Python tracker <http://bug

[issue28109] What's new item for PEP 526 -- Variable annotations

2016-09-12 Thread Guido van Rossum
Guido van Rossum added the comment: This should probably wait until b1 is released; it looks like What's New is mostly empty anyways. The release manager needs to focus on the release. -- ___ Python tracker <http://bugs.python.org/is

[issue28109] What's new item for PEP 526 -- Variable annotations

2016-09-12 Thread Guido van Rossum
Guido van Rossum added the comment: Patch LGTM. -- ___ Python tracker <http://bugs.python.org/issue28109> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28109] What's new item for PEP 526 -- Variable annotations

2016-09-13 Thread Guido van Rossum
Guido van Rossum added the comment: I'll take the latter. Give me a sec. -- ___ Python tracker <http://bugs.python.org/issue28109> ___ ___ Python-bugs-list m

[issue28109] What's new item for PEP 526 -- Variable annotations

2016-09-13 Thread Guido van Rossum
Guido van Rossum added the comment: changeset: 103770:2c9e07db0ac4 tag: tip parent: 103768:879bde95a456 parent: 103769:f9b22b1bec2d user:Guido van Rossum date:Tue Sep 13 09:27:07 2016 -0700 summary: Add text about PEP 526 to What's new in 3.6. I

[issue28055] pyhash's siphash24 assumes alignment of the data pointer

2016-09-13 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker <http://bugs.python.org/issue28055> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28158] Implement LOAD_GLOBAL opcode cache

2016-09-14 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker <http://bugs.python.org/issue28158> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26182] Deprecation warnings for the future async and await keywords in Python 3.6

2016-09-14 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker <http://bugs.python.org/issue26182> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27906] Socket accept exhaustion during high TCP traffic

2016-09-14 Thread Guido van Rossum
Guido van Rossum added the comment: Sorry, we didn't get to this. @Yury, do you think you could get to this before b1 goes out? It's a pure optimization (and a good one!). -- ___ Python tracker <http://bugs.python.o

[issue27906] Socket accept exhaustion during high TCP traffic

2016-09-14 Thread Guido van Rossum
Guido van Rossum added the comment: (Of course I meant b2.) -- ___ Python tracker <http://bugs.python.org/issue27906> ___ ___ Python-bugs-list mailing list Unsub

[issue27906] Socket accept exhaustion during high TCP traffic

2016-09-15 Thread Guido van Rossum
Guido van Rossum added the comment: Maybe with the new code it could log a message if it doesn't exit the loop via a break? Because that would mean the listen buffer is full. It would encourage people to configure a larger number. -- ___ P

[issue27391] server_hostname should only be required when checking host names

2016-09-16 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker <http://bugs.python.org/issue27391> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26149] Suggest PyCharm Community as an editor for Unix platforms

2016-09-16 Thread Guido van Rossum
Guido van Rossum added the comment: Hm, maybe the list should just removed and only the link to the wiki preserved? Agreed that the list here feels outdated. And updating it is always going to be a political game (e.g. why isn't Wing IDE listed?) -- nosy: +gvanr

[issue26149] Suggest PyCharm Community as an editor for Unix platforms

2016-09-16 Thread Guido van Rossum
Guido van Rossum added the comment: You did the right thing. Check out the "review" link. -- ___ Python tracker <http://bugs.python.org/issue26149> ___ ___

[issue28212] Closing server in asyncio is not efficient

2016-09-20 Thread Guido van Rossum
Guido van Rossum added the comment: Can you please supply a complete example? --Guido (mobile) -- ___ Python tracker <http://bugs.python.org/issue28212> ___ ___

[issue28213] asyncio SSLProtocol _app_transport is private

2016-09-20 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue28213> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28212] Closing server in asyncio is not efficient

2016-09-20 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker <http://bugs.python.org/issue28212> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27998] Remove support of bytes paths in os.scandir()

2016-09-25 Thread Guido van Rossum
Guido van Rossum added the comment: Nice! -- ___ Python tracker <http://bugs.python.org/issue27998> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25830] _TypeAlias: Discrepancy between docstring and behavior

2016-09-27 Thread Guido van Rossum
Guido van Rossum added the comment: Fixed by 09cc43df4509. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue26075] typing.Union unifies types too broadly

2016-09-27 Thread Guido van Rossum
Guido van Rossum added the comment: Fixed by 09cc43df4509. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue26477] typing forward references and module attributes

2016-09-27 Thread Guido van Rossum
Guido van Rossum added the comment: Fixed by 09cc43df4509. -- nosy: +gvanrossum resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue28294] HTTPServer server.py assumes sys.stderr != None

2016-09-30 Thread Guido van Rossum
Guido van Rossum added the comment: I wonder if we shouldn't close this as "won't fix" and tell the OP to override the log_message() method. It's kind of curious to complain about *this* dependency on sys.stderr existing and working, since there are probably 1000

[issue28294] HTTPServer server.py assumes sys.stderr != None

2016-10-01 Thread Guido van Rossum
Guido van Rossum added the comment: A problem with switching to logging is the API design. There are three functions, log_request(), log_error() and log_message(). The former two call the latter. The API explicitly encourages overriding log_message() to customize logging. But it has no way to

[issue26617] Assertion failed in gc with __del__ and weakref

2016-10-01 Thread Guido van Rossum
Guido van Rossum added the comment: Ben Bangert reported to me that this crash caused instabilities in an app using asyncio (https://github.com/home-assistant/home-assistant/issues/3453). This hack made his crashes go away: https://github.com/home-assistant/home-assistant/commit

[issue28339] "TypeError: Parameterized generics cannot be used with class or instance checks" in test_functools after importing typing module

2016-10-02 Thread Guido van Rossum
Guido van Rossum added the comment: Sorry about that. I haven't looked into this but I suspect this is due to some manipulation of the ABC registry by typing.py that exceed their intended scope. I'll ask Ivan to fix it; if he's not available before b2 goes out I

[issue26906] format(object.__reduce__) fails intermittently

2016-10-02 Thread Guido van Rossum
Guido van Rossum added the comment: Serhiy -- please do what do you think we should do. At this point I'm open to just about anything, but I don't feel comfortable creating or reviewing patches any more. -- assignee: gvanrossum -> ser

[issue28339] "TypeError: Parameterized generics cannot be used with class or instance checks" in test_functools after importing typing module

2016-10-02 Thread Guido van Rossum
Guido van Rossum added the comment: Offline, Ivan and I have discussed a solution. We can make a small incision in typing.py that will fix this, at the cost of still allowing isinstance()/issubclass()). We also have a slightly better quick fix in mind. Ultimately we will have a more complex

[issue28339] "TypeError: Parameterized generics cannot be used with class or instance checks" in test_functools after importing typing module

2016-10-03 Thread Guido van Rossum
Guido van Rossum added the comment: I have merged the upstream fix (and some other things) into 3.5, 3.6, 3.7. changeset: 104262:7f0d27180b6d tag: tip parent: 104259:36b052adf5a7 parent: 104261:0e0189b47291 user:Guido van Rossum date:Mon Oct 03 08:42:17 2016

[issue27998] Remove support of bytes paths in os.scandir()

2016-10-04 Thread Guido van Rossum
Guido van Rossum added the comment: It went back and forth. The current feeling is to *keep* that support, especially since their deprecation on Windows has been *undone* in 3.6. Feel free to update the title (though the initial comments may be harder to understand without the context of the

[issue27972] Confusing error during cyclic yield

2016-10-06 Thread Guido van Rossum
Guido van Rossum added the comment: It's pretty perverse. But how would you detect this case? Does it require changes to CPython or only to asyncio? Does it require a spec change anywhere? -- ___ Python tracker <http://bugs.python.org/is

[issue27972] Confusing error during cyclic yield

2016-10-06 Thread Guido van Rossum
Guido van Rossum added the comment: Is that enough? What if the recursion involves several tasks waiting for each other in a cycle? -- ___ Python tracker <http://bugs.python.org/issue27

[issue27972] Confusing error during cyclic yield

2016-10-06 Thread Guido van Rossum
Guido van Rossum added the comment: Maybe it could be fixed rather than making this a checked failure? -- ___ Python tracker <http://bugs.python.org/issue27

[issue27972] Confusing error during cyclic yield

2016-10-07 Thread Guido van Rossum
Guido van Rossum added the comment: I've meditated on this and I've changed my mind. A task that awaits itself is so obviously not following the task protocol that it should be shot on sight. No exceptions. (Only the task itself should ever set the result or exception, and *only* by re

[issue28388] Update documentation for typing module

2016-10-08 Thread Guido van Rossum
Guido van Rossum added the comment: LGTM. I have a small number of nits that I will apply when merging this. -- ___ Python tracker <http://bugs.python.org/issue28

[issue28388] Update documentation for typing module

2016-10-08 Thread Guido van Rossum
Changes by Guido van Rossum : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue28388> ___ ___ Python-bugs-

[issue27588] Type (typing) objects are hashable and comparable for equality but this is not documented

2016-10-08 Thread Guido van Rossum
Guido van Rossum added the comment: Fixed by the changes for issue #28388. -- nosy: +gvanrossum resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue28339] "TypeError: Parameterized generics cannot be used with class or instance checks" in test_functools after importing typing module

2016-10-08 Thread Guido van Rossum
Guido van Rossum added the comment: Making it a deferred release blocker so we're reminded to do the more thorough fix before 3.6.0 rc1. -- priority: release blocker -> deferred blocker ___ Python tracker <http://bugs.python.org

[issue28339] "TypeError: Parameterized generics cannot be used with class or instance checks" in test_functools after importing typing module

2016-10-09 Thread Guido van Rossum
Guido van Rossum added the comment: Oh the line ByteString.register(type(memoryview(b''))) should be removed from typing.py. -- priority: deferred blocker -> release blocker ___ Python tracker <http://bugs.pytho

[issue28339] "TypeError: Parameterized generics cannot be used with class or instance checks" in test_functools after importing typing module

2016-10-09 Thread Guido van Rossum
Guido van Rossum added the comment: Maybe this fix helps? I tried your repro and it no longer fails. -- ___ Python tracker <http://bugs.python.org/issue28

[issue28339] "TypeError: Parameterized generics cannot be used with class or instance checks" in test_functools after importing typing module

2016-10-09 Thread Guido van Rossum
Guido van Rossum added the comment: So is a larger fix not necessary? If so we can close this (assuming the tests now pass). -- ___ Python tracker <http://bugs.python.org/issue28

[issue28339] "TypeError: Parameterized generics cannot be used with class or instance checks" in test_functools after importing typing module

2016-10-09 Thread Guido van Rossum
Guido van Rossum added the comment: Hm. I agree that _getframe() is horrible. But I'm not sure I want code outside typing.py to be aware of __origin__. -- priority: release blocker -> deferred blocker ___ Python tracker <http://bugs

[issue28414] SSL match_hostname fails for internationalized domain names

2016-10-11 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker <http://bugs.python.org/issue28414> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24452] Make webbrowser support Chrome on Mac OS X

2016-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: OK, this seems to work for me. I'm, applying this to 3.5, 3.6 and 3.7 (default). -- nosy: +gvanrossum ___ Python tracker <http://bugs.python.org/is

[issue24452] Make webbrowser support Chrome on Mac OS X

2016-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: I applied this to 3.5, 3.6 and 3.7. I'm not sure we should also apply this to 2.7 -- optinions? Bug or feature? -- versions: +Python 3.5 ___ Python tracker <http://bugs.python.org/is

[issue24452] Make webbrowser support Chrome on Mac OS X

2016-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: OK will do. -- ___ Python tracker <http://bugs.python.org/issue24452> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24452] Make webbrowser support Chrome on Mac OS X

2016-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks everyone! Applied to 2.7, so closing as fixed now. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior ___ Python tracker <http://bugs.python

<    50   51   52   53   54   55   56   >