(original) (raw)

On 14 September 2017 at 22:21, Ivan Levkivskyi <levkivskyi@gmail.com> wrote:
On 14 September 2017 at 22:07, Ethan Furman <ethan@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.


Actually my version does not work either on my branch :-(
But maybe this is a problem with my implementation.

--
Ivan