__dict__ in class inherited from C extension module

2006-05-08 Thread Tamas Nepusz
Dear Python experts, I have a strange problem - or more precisely, I'm not even sure if it's a problem or not. I'm developing a Python extension module in C which creates a new type with methods, mapping support and stuff like that :) Everything's working fine, but if I inherit a new class from th

Re: Tree and Graph structures in Python.

2006-03-15 Thread Tamas Nepusz
Istvan Albert wrote: > See this: > > https://networkx.lanl.gov/ Or if you want to be able to handle large graphs efficiently, igraph might be a good choice: http://igraph.sourceforge.net/ It's written in pure C, but has a Python interface and according to my measurements, it's much faster than an

Re: KeyboardInterrupt vs extension written in C

2005-10-20 Thread Tamas Nepusz
No, that's actually a bit more complicated. The library I'm working on is designed for performing calculations on large-scale graphs (~1 nodes and edges). I want to create a Python interface for that library, so what I want to accomplish is that I could just type "from igraph import *" in a Pyt

KeyboardInterrupt vs extension written in C

2005-10-20 Thread Tamas Nepusz
Hi everyone, I have tried to do some googling before asking my question here, but I haven't found any suitable answer. I am developing a Python API for a graph library written in pure C. The library is doing an awful lot of math computations, and some of them can take a pretty long time (depending