[Python-ideas] PEP 563: Postponed Evaluation of Annotations, first draft
Steven D'Aprano
steve at pearwood.info
Tue Sep 12 07:35:05 EDT 2017
More information about the Python-ideas mailing list
Tue Sep 12 07:35:05 EDT 2017
- Previous message (by thread): [Python-ideas] PEP 563: Postponed Evaluation of Annotations, first draft
- Next message (by thread): [Python-ideas] PEP 563: Postponed Evaluation of Annotations, first draft
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Sep 12, 2017 at 09:17:23PM +1000, Nick Coghlan wrote: > Unfortunately, this idea has the downside that for trivial > annotations, defining a lambda expression is likely to be *slower* > than evaluating the expression, whereas referencing a string constant > is faster: Is it time to consider a specialised, high-speed (otherwise there's no point) thunk that can implicitly capture the environment like a function, but has less overhead? For starters, you don't need to care about argument passing. -- Steve
- Previous message (by thread): [Python-ideas] PEP 563: Postponed Evaluation of Annotations, first draft
- Next message (by thread): [Python-ideas] PEP 563: Postponed Evaluation of Annotations, first draft
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list