class - Self-referencing classes in python? -


in python, can have classes members pointers members of type of same class? example, in c, might have following class node in binary tree:

struct node {     int data;     struct node* left;     struct node* right; }  

how equivalently create in python?

python dynamic language. attributes can bound @ (almost) time type. therefore, problem describing not exist in python.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -