Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision d9c0a7ae94ef81e69d927d834131bad760d4d99d authored by Raymond Hettinger on 03 July 2004, 10:02:28 UTC, committed by Raymond Hettinger on 03 July 2004, 10:02:28 UTC
* Added test for pickling contexts * Renamed ExceptionList to Signals (to match wording in the spec) * Simplified Context constructor by allowing flags=None to automatically generate a zeroed-out flags dictionary. * inlined _convertString() which was used only once * _rounding_decision is private, so excluded its contants from __all__. * added an XXX comment with concerns about subclassing signals results in a deviation from the spec (maybe important, maybe not). * Taught the test_suite to determine its own directory (modeled after code in regrtest.py). Enables it to be run when the current directory is not the test directory. * Added a clear_flags() method to the Context API to make it easier to do a common operation with flags. * Fixed the trap_enablers defaults in BasicDefaultContext to match the spec.
1 parent 41d13f6
Tip revision: d9c0a7ae94ef81e69d927d834131bad760d4d99d authored by Raymond Hettinger on 03 July 2004, 10:02:28 UTC
Work through several open todos:
Work through several open todos:
Tip revision: d9c0a7a
traceback.h
#ifndef Py_TRACEBACK_H
#define Py_TRACEBACK_H
#ifdef __cplusplus
extern "C" {
#endif
struct _frame;
/* Traceback interface */
typedef struct _traceback {
PyObject_HEAD
struct _traceback *tb_next;
struct _frame *tb_frame;
int tb_lasti;
int tb_lineno;
} PyTracebackObject;
PyAPI_FUNC(int) PyTraceBack_Here(struct _frame *);
PyAPI_FUNC(int) PyTraceBack_Print(PyObject *, PyObject *);
/* Reveal traceback type so we can typecheck traceback objects */
PyAPI_DATA(PyTypeObject) PyTraceBack_Type;
#define PyTraceBack_Check(v) ((v)->ob_type == &PyTraceBack_Type)
#ifdef __cplusplus
}
#endif
#endif /* !Py_TRACEBACK_H */
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...