Re: [PATCH 1/2] python: disallow python code to instanciate certain types

Tom Tromey
2013-10-10T19:06:33Z

>>>>> "Sanimir" == Sanimir Agovic <sanimir.agovic@intel.com> writes:

Sanimir> 2013-08-30 Sanimir Agovic <sanimir.agovic@intel.com>
Sanimir> * py-arch.c (gdbpy_initialize_arch): Set tp_new implicitly to NULL.
Sanimir> * py-block.c (gdbpy_initialize_blocks): Set tp_new implicitly to NULL.
Sanimir> * py-frame.c (gdbpy_initialize_frames): Set tp_new implicitly to NULL.
Sanimir> * py-objfile.c (objfpy_new): Remove function.
Sanimir> (objfile_object_type): Set tp_new to NULL.
Sanimir> * py-progspace.c (pspy_new): Remove function.
Sanimir> (pspace_object_type): Set tp_new to NULL
Sanimir> * py-symtab.c (gdbpy_initialize_symtabs): Set tp_new implicitly to NULL.

This is ok.

Tom