Staging
v0.5.1
https://github.com/python/cpython
Revision 13af3645cff47a555a7a3102161f85c6ae74b623 authored by Guido van Rossum on 07 October 2002, 17:09:25 UTC, committed by Guido van Rossum on 07 October 2002, 17:09:25 UTC
Extend stripid() to handle strings ending in more than one '>'.
Add resolve() to handle looking up objects and names (fix SF bug 586931).
Add a nicer error message when given a filename that doesn't exist.
1 parent 2972bde
Raw File
Tip revision: 13af3645cff47a555a7a3102161f85c6ae74b623 authored by Guido van Rossum on 07 October 2002, 17:09:25 UTC
Backport 1.68:
Tip revision: 13af364
moduleobject.h

/* Module object interface */

#ifndef Py_MODULEOBJECT_H
#define Py_MODULEOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif

extern DL_IMPORT(PyTypeObject) PyModule_Type;

#define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type)
#define PyModule_CheckExact(op) ((op)->ob_type == &PyModule_Type)

extern DL_IMPORT(PyObject *) PyModule_New(char *);
extern DL_IMPORT(PyObject *) PyModule_GetDict(PyObject *);
extern DL_IMPORT(char *) PyModule_GetName(PyObject *);
extern DL_IMPORT(char *) PyModule_GetFilename(PyObject *);
extern DL_IMPORT(void) _PyModule_Clear(PyObject *);

#ifdef __cplusplus
}
#endif
#endif /* !Py_MODULEOBJECT_H */
back to top