[Python-ideas] Fwd: Define a method or function attributeoutsideof a class with the dot operator
josephhackman at gmail.com
Mon Feb 13 14:32:33 EST 2017
Generally speaking, I'm +1 on this idea, I think it would make code more readable, especially for tools like IDEs.
I just wanted to ask: can someone point me to the reason Python doesn't support referencing a class inside it's own definition? It seems like that would solve some of the cases discussed here, and with Type hinting that seems like something that maybe should be considered?
More information about the Python-ideas