Back to index

python3.2  3.2.2
Classes | Defines | Typedefs | Functions
structmember.h File Reference
#include <stddef.h>

Go to the source code of this file.

Classes

struct  PyMemberDef

Defines

#define offsetof(type, member)   ( (int) & ((type*)0) -> member )
#define T_SHORT   0
#define T_INT   1
#define T_LONG   2
#define T_FLOAT   3
#define T_DOUBLE   4
#define T_STRING   5
#define T_OBJECT   6
#define T_CHAR   7 /* 1-character string */
#define T_BYTE   8 /* 8-bit signed int */
#define T_UBYTE   9
#define T_USHORT   10
#define T_UINT   11
#define T_ULONG   12
#define T_STRING_INPLACE   13
#define T_BOOL   14
#define T_OBJECT_EX
#define T_PYSSIZET   19 /* Py_ssize_t */
#define T_NONE   20 /* Value is always None */
#define READONLY   1
#define READ_RESTRICTED   2
#define PY_WRITE_RESTRICTED   4
#define RESTRICTED   (READ_RESTRICTED | PY_WRITE_RESTRICTED)

Typedefs

typedef struct PyMemberDef PyMemberDef

Functions

 PyAPI_FUNC (PyObject *) PyMember_GetOne(const char *
struct PyMemberDefPyAPI_FUNC (int) PyMember_SetOne(char *

Class Documentation

struct PyMemberDef

Definition at line 28 of file structmember.h.

Class Members
char * doc
int flags
char * name
Py_ssize_t offset
int type

Define Documentation

#define offsetof (   type,
  member 
)    ( (int) & ((type*)0) -> member )

Definition at line 19 of file structmember.h.

#define PY_WRITE_RESTRICTED   4

Definition at line 73 of file structmember.h.

#define READ_RESTRICTED   2

Definition at line 72 of file structmember.h.

#define READONLY   1

Definition at line 71 of file structmember.h.

Definition at line 74 of file structmember.h.

#define T_BOOL   14

Definition at line 58 of file structmember.h.

#define T_BYTE   8 /* 8-bit signed int */

Definition at line 47 of file structmember.h.

#define T_CHAR   7 /* 1-character string */

Definition at line 46 of file structmember.h.

#define T_DOUBLE   4

Definition at line 42 of file structmember.h.

#define T_FLOAT   3

Definition at line 41 of file structmember.h.

#define T_INT   1

Definition at line 39 of file structmember.h.

#define T_LONG   2

Definition at line 40 of file structmember.h.

#define T_NONE   20 /* Value is always None */

Definition at line 67 of file structmember.h.

#define T_OBJECT   6

Definition at line 44 of file structmember.h.

#define T_OBJECT_EX
Value:
16     /* Like T_OBJECT, but raises AttributeError
                               when the value is NULL, instead of
                               converting to None. */

Definition at line 60 of file structmember.h.

#define T_PYSSIZET   19 /* Py_ssize_t */

Definition at line 66 of file structmember.h.

#define T_SHORT   0

Definition at line 38 of file structmember.h.

#define T_STRING   5

Definition at line 43 of file structmember.h.

#define T_STRING_INPLACE   13

Definition at line 55 of file structmember.h.

#define T_UBYTE   9

Definition at line 49 of file structmember.h.

#define T_UINT   11

Definition at line 51 of file structmember.h.

#define T_ULONG   12

Definition at line 52 of file structmember.h.

#define T_USHORT   10

Definition at line 50 of file structmember.h.


Typedef Documentation

static struct PyMemberDef
Initial value:
 {
    { "dialect", T_OBJECT, R_OFF(dialect), READONLY },
    { "line_num", T_ULONG, R_OFF(line_num), READONLY },
    { NULL }
}

Definition at line 846 of file _csv.c.


Function Documentation

PyAPI_FUNC ( PyObject ) const
struct PyMemberDef* PyAPI_FUNC ( int  ) [read]

Definition at line 2410 of file pythonrun.c.