[Python-3000] A better way to initialize PyTypeObject
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Sat Dec 2 16:59:08 CET 2006
"Guido van Rossum" <guido at python.org> writes:
> - Can't we require a C99 compiler and use C99 struct initialization?
> Then the table lines could look like
>
> tp_new = Noddy_new,
> tp_init = Noddy_init,
The C99 syntax is:
.tp_new = Noddy_new,
.tp_init = Noddy_init,
GCC also supports the syntax without periods as an extension (it was
earlier than C99). I suppose some older GCC versions had supported
only the syntax without periods.
--
__("< Marcin Kowalczyk
\__/ qrczak at knm.org.pl
^^ http://qrnik.knm.org.pl/~qrczak/
More information about the Python-3000
mailing list