User Method CAN be based on built-in function!?

Tom tom-list at home.com
Wed Aug 1 18:26:30 EDT 2001


I find this odd.

In my experiments with Python 2.1.1 on Windows 2000, a user-defined method
can be based on a 'builtin function'.

In other words, I call PyObject_GetAttrString( pPyObject, "im_func" ),
and a built-in function type object is returned.

How can this be?

Tom.





Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
    ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------        
                http://www.usenet.com



More information about the Python-list mailing list