| Store | Cart

[Python-Dev] can't set attributes of built-in/extension type

From: Martin v. Löwis <mar...@v.loewis.de>
Sun, 24 Feb 2008 05:49:09 +0100
> (Or, help me understand, what is the difference between a type that I create> using python C api and a python class?)

Grepping for the specific error message would have answered that 
question: Python (new-style) classes have the Py_TPFLAGS_HEAPTYPE
set, types declared as static structs in C don't.

Regards,
Martin

Recent Messages in this Thread
Neal Becker Feb 24, 2008 12:55 am
Guido van Rossum Feb 24, 2008 01:04 am
Neal Becker Feb 24, 2008 02:49 pm
Guido van Rossum Feb 24, 2008 05:11 pm
"Martin v. Löwis" Feb 24, 2008 04:49 am
Greg Ewing Feb 24, 2008 07:35 am
Messages in this thread