1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

Set tp_flags for Python types.

(This used to be commit f214206a36d8822e485f6f076c9f3f0bfc1e1df4)
This commit is contained in:
Jelmer Vernooij 2008-04-08 00:13:09 +02:00
parent a057c7369a
commit a3bfabefd7

View File

@ -237,6 +237,7 @@ sub PythonStruct($$$$)
$self->pidl(".tp_setattr = py_$name\_setattr,");
$self->pidl(".tp_repr = py_talloc_default_repr,");
$self->pidl(".tp_doc = $docstring,");
$self->pidl(".tp_flags = Py_TPFLAGS_DEFAULT,");
$self->deindent;
$self->pidl("};");
@ -532,6 +533,7 @@ sub Interface($$$)
$self->pidl(".tp_dealloc = interface_$interface->{NAME}_dealloc,");
$self->pidl(".tp_getattr = interface_$interface->{NAME}_getattr,");
$self->pidl(".tp_doc = $docstring,");
$self->pidl(".tp_flags = Py_TPFLAGS_DEFAULT,");
$self->deindent;
$self->pidl("};");