On 2 November 2017 at 18:00, Brett Cannon <brett at python.org> wrote: > > > On Thu, 2 Nov 2017 at 08:46 Steven D'Aprano <steve at pearwood.info> wrote: > >> On Wed, Nov 01, 2017 at 03:48:00PM -0700, Lukasz Langa wrote: >> [...snip...] > > I think the performance bit is really the big deal here. > > I don't think so. Although subscripting generics is indeed very expensive, this is heavily optimised by various caches. I think PEP 560 might actually have comparable (or even bigger) performance effects. IIUC performance is listed second in the PEP for a reason. I am OK with using quotes for forward references, but I have seen many people complaining about this (especially novices). I think Jukka is right here. We can't allow all unquoted forward references but those that will still be quoted appear in more advanced situations like bounded type variables and derived generics. But in these cases it is clear that a forward reference appears in runtime context. -- Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20171102/e7640e78/attachment.html>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4