Staging
v0.5.1
https://github.com/python/cpython
Revision c0b6cc8af1819f56b34a2e16e870bcc2f1cfd3f1 authored by Mark Dickinson on 04 May 2008, 02:07:53 UTC, committed by Mark Dickinson on 04 May 2008, 02:07:53 UTC
........
  r62684 | mark.dickinson | 2008-05-03 22:05:06 -0400 (Sat, 03 May 2008) | 9 lines

  Some very minor changes to decimal.py in Python 2.6, aimed
  at reducing the size of the diff between the 2.x decimal.py
  and 3.x decimal.py and thereby making future merges easier:

  - replace one instnace of an old-style raise statement
  - define __div__ in terms of __truediv__ instead of the
    other way around
  - make wording match on an exception message
........
1 parent 349a785
Raw File
Tip revision: c0b6cc8af1819f56b34a2e16e870bcc2f1cfd3f1 authored by Mark Dickinson on 04 May 2008, 02:07:53 UTC
Blocked revisions 62684 via svnmerge
Tip revision: c0b6cc8
moduleobject.h

/* Module object interface */

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

PyAPI_DATA(PyTypeObject) PyModule_Type;

#define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type)
#define PyModule_CheckExact(op) (Py_TYPE(op) == &PyModule_Type)

PyAPI_FUNC(PyObject *) PyModule_New(const char *);
PyAPI_FUNC(PyObject *) PyModule_GetDict(PyObject *);
PyAPI_FUNC(const char *) PyModule_GetName(PyObject *);
PyAPI_FUNC(const char *) PyModule_GetFilename(PyObject *);
PyAPI_FUNC(void) _PyModule_Clear(PyObject *);

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