Create new instance of Python class in C

Sybren Stuvel sybrenUSE at
Fri Sep 9 18:50:26 CEST 2005

djw enlightened us with:
> Personally, I would try Psyco first, and consider Pyrex next.

Ok, I'll take a look at those.

> Are you sure your algorithm can't be optimized first, before you
> start trying to write this in C?

I'm sure there will be optimizations, but profiling showed that the
copying of the puzzles took the most time. Since the copy.deepcopy()
function is implemented it Python, I'd thought it would get quite a
speed boost when done in C instead.

As a side-question: how would I go about compiling my C module in
Windows, if I want to ship a Windows version?

The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa

More information about the Python-list mailing list