Set tp_flags for Python types.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 7 Apr 2008 22:13:09 +0000 (00:13 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Mon, 7 Apr 2008 22:13:09 +0000 (00:13 +0200)
(This used to be commit f214206a36d8822e485f6f076c9f3f0bfc1e1df4)

source4/pidl/lib/Parse/Pidl/Samba4/Python.pm

index 26ef6ae0c926f6bb56db578c34533bbc3176c284..2191bc0fbb8f8eaaa9329660c1dc76e03607c2f4 100644 (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("};");