Newbie questions

Ladvánszky Károly aa at bb.cc
Mon Mar 24 12:17:17 EST 2003


I'd like to get help with the following issues.

1.
Is there a faster way to allocate a list of objects than this one?

ls=cnt*[None]
for j in range(cnt):
    ls[j]=TestClass(j)

2.
I understand that it's relatively easy to interface C++ DLLs to Python code.
What are the main limitations? Can Python code use C++ objects, can they be
pickle saved?



Thanks,

Károly










More information about the Python-list mailing list