string to type object (C)

castironpi castironpi at gmail.com
Tue Aug 5 02:30:28 EDT 2008


Hello,

I'm looking for a one-to-one function from strings to the built-in
data types in C.  I will be keeping the string in a file.  I need the
PyTypeObject* back from it.  If nothing else I'll just do a bunch of
strcmp( "tuple" ) { return &PyTuple_Type; } commands, provided
&PyTuple_Type; will be linking the right address.

The project is for a hobby, no money or official credentials on the
line.  Any help is appreciated.



More information about the Python-list mailing list