Alternate initializer pattern?

2013-12-10 Thread buchanae
Hello. I've been pondering an alternate initializer pattern that I've attempted to document here: https://gist.github.com/abuchanan/7882317 Instead of using classmethod, I invent a new descriptor "alt_init" that creates an instance and passes it to the decorated function as the first argument

Re: Tree library - multiple children

2013-12-13 Thread buchanae
I have this simple/stupid tree module: https://github.com/abuchanan/bolts/blob/master/bolts/tree.py On Thursday, December 12, 2013 10:14:34 AM UTC-8, Ricardo Aráoz wrote: > I need to use a tree structure. Is there a good and known library? > > Doesn't have to be binary tree, I need to have multi