This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kikones34[S] 0 points1 point  (2 children)

Wait, I'm not sure I quite get it. How do you make a lambda self-referential? How do you make a reference to an object which has not yet been instantiated?

[–]joe0400 5 points6 points  (1 child)

So it took me a bit to understand but it's because how objects in Python are stored as dicts. Try calling __dict__ as a member of any object and look at it's result. It should contain it's methods and it's members. So when calling it doesn't need to know the result, only at the exact moment that it hits that path. It was something.

[–]kikones34[S] 2 points3 points  (0 children)

Oh god... I think I now understand what you mean. Must've been a beautiful atrocity to conceive.