Why should __prepare__ be explicitly decorated as a @classmethod?

2014-05-17 Thread Shriramana Sharma
Hello. I did search for this but couldn't find the info anywhere else, so I'm asking here. Please point out if I've missed some other source of the same info: https://docs.python.org/3/reference/datamodel.html#basic-customization documents that __new__ is special-cased so that while it is actual

Re: Help with implementing callback functions using ctypes

2013-05-26 Thread Shriramana Sharma
On Friday, May 24, 2013 8:56:28 AM UTC+5:30, Dan Stromberg wrote: > Cython is good. So is the new cffi, which might be thought of as a > safer (API-level) version of ctypes (which is ABI-level). Hi -- can you clarify what is this new CFFI and where I can get it? In the Python 3 library reference