~ubuntu-branches/ubuntu/natty/python3.2/natty-security

« back to all changes in this revision

Viewing changes to Include/object.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2011-02-14 16:12:14 UTC
  • mfrom: (10.1.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20110214161214-f5vwa226kebccmt9
Tags: 3.2~rc3-1
Python 3.2 release candidate 3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
396
396
 
397
397
typedef struct{
398
398
    const char* name;
399
 
    const char* doc;
400
399
    int basicsize;
401
400
    int itemsize;
402
401
    int flags;
437
436
PyAPI_DATA(PyTypeObject) PyBaseObject_Type; /* built-in 'object' */
438
437
PyAPI_DATA(PyTypeObject) PySuper_Type; /* built-in 'super' */
439
438
 
 
439
PyAPI_FUNC(long) PyType_GetFlags(PyTypeObject*);
 
440
 
440
441
#define PyType_Check(op) \
441
442
    PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TYPE_SUBCLASS)
442
443
#define PyType_CheckExact(op) (Py_TYPE(op) == &PyType_Type)
589
590
                 Py_TPFLAGS_HAVE_VERSION_TAG | \
590
591
                0)
591
592
 
 
593
#ifdef Py_LIMITED_API
 
594
#define PyType_HasFeature(t,f)  ((PyType_GetFlags(t) & (f)) != 0)
 
595
#else
592
596
#define PyType_HasFeature(t,f)  (((t)->tp_flags & (f)) != 0)
 
597
#endif
593
598
#define PyType_FastSubclass(t,f)  PyType_HasFeature(t,f)
594
599
 
595
600