On 14 September 2017 at 22:07, Ethan Furman <ethan at stoneleaf.us> wrote: > > For comparison's sake, what would the above look like using __class__ > assignment? And what is the performance difference? > > Actually I tried but I can't implement this without module __getattr__ so that one can just write: from typing_extensions import allow_forward_references allow_forward_references('Vertex', 'Edge') Maybe I am missing something, but either it is impossible in principle or highly non-trivial. -- Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20170914/006600a2/attachment-0001.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