[Python-Dev] Re: tree data structure and python

2005-03-25 Thread Terry Reedy
"vivek khurana" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > i am a new member on this list. I have to implement > tree data structure using python. How it can be done > in python. Is there an existing data structure which > can be used as tree? I have searched archives and > man

[Python-Dev] tree data structure and python

2005-03-25 Thread vivek khurana
Hi! all i am a new member on this list. I have to implement tree data structure using python. How it can be done in python. Is there an existing data structure which can be used as tree? I have searched archives and manuals but no luck. Regards VK Hug the REALITY ;-) Disclaimer The facts exp

Re: [Python-Dev] Using descriptors to dynamically attach methods written in Python to C-defined (new-style) types

2005-03-25 Thread Bob Ippolito
On Mar 25, 2005, at 6:13 PM, Travis Oliphant wrote: In updating Numeric to take advantage of the new features in Python, I've come across the need to attach a Python-written function as a method to a C-builtin. I don't want to inherit, I just want to extend the methods of a builtin type using a

[Python-Dev] Using descriptors to dynamically attach methods written in Python to C-defined (new-style) types

2005-03-25 Thread Travis Oliphant
In updating Numeric to take advantage of the new features in Python, I've come across the need to attach a Python-written function as a method to a C-builtin. I don't want to inherit, I just want to extend the methods of a builtin type using a Python function. I was thinking of updating the n