Newbie questions

Ladvánszky Károly aa at bb.cc
Mon Mar 24 18:17:17 CET 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