[Python-3000-checkins] r56750 - in python/branches/p3yk: Modules/_csv.c Modules/_hotshot.c Modules/bz2module.c Objects/fileobject.c Objects/frameobject.c Objects/genobject.c
neal.norwitz
python-3000-checkins at python.org
Sun Aug 5 04:35:31 CEST 2007
Author: neal.norwitz
Date: Sun Aug 5 04:35:01 2007
New Revision: 56750
Modified:
python/branches/p3yk/Modules/_csv.c
python/branches/p3yk/Modules/_hotshot.c
python/branches/p3yk/Modules/bz2module.c
python/branches/p3yk/Objects/fileobject.c
python/branches/p3yk/Objects/frameobject.c
python/branches/p3yk/Objects/genobject.c
Log:
Use READONLY consistently instead of RO
Modified: python/branches/p3yk/Modules/_csv.c
==============================================================================
--- python/branches/p3yk/Modules/_csv.c (original)
+++ python/branches/p3yk/Modules/_csv.c Sun Aug 5 04:35:01 2007
@@ -861,8 +861,8 @@
#define R_OFF(x) offsetof(ReaderObj, x)
static struct PyMemberDef Reader_memberlist[] = {
- { "dialect", T_OBJECT, R_OFF(dialect), RO },
- { "line_num", T_ULONG, R_OFF(line_num), RO },
+ { "dialect", T_OBJECT, R_OFF(dialect), READONLY },
+ { "line_num", T_ULONG, R_OFF(line_num), READONLY },
{ NULL }
};
@@ -1239,7 +1239,7 @@
#define W_OFF(x) offsetof(WriterObj, x)
static struct PyMemberDef Writer_memberlist[] = {
- { "dialect", T_OBJECT, W_OFF(dialect), RO },
+ { "dialect", T_OBJECT, W_OFF(dialect), READONLY },
{ NULL }
};
Modified: python/branches/p3yk/Modules/_hotshot.c
==============================================================================
--- python/branches/p3yk/Modules/_hotshot.c (original)
+++ python/branches/p3yk/Modules/_hotshot.c Sun Aug 5 04:35:01 2007
@@ -1266,7 +1266,7 @@
};
static PyMemberDef logreader_members[] = {
- {"info", T_OBJECT, offsetof(LogReaderObject, info), RO,
+ {"info", T_OBJECT, offsetof(LogReaderObject, info), READONLY,
PyDoc_STR("Dictionary mapping informational keys to lists of values.")},
{NULL}
};
Modified: python/branches/p3yk/Modules/bz2module.c
==============================================================================
--- python/branches/p3yk/Modules/bz2module.c (original)
+++ python/branches/p3yk/Modules/bz2module.c Sun Aug 5 04:35:01 2007
@@ -1775,7 +1775,7 @@
#define OFF(x) offsetof(BZ2DecompObject, x)
static PyMemberDef BZ2Decomp_members[] = {
- {"unused_data", T_OBJECT, OFF(unused_data), RO},
+ {"unused_data", T_OBJECT, OFF(unused_data), READONLY},
{NULL} /* Sentinel */
};
Modified: python/branches/p3yk/Objects/fileobject.c
==============================================================================
--- python/branches/p3yk/Objects/fileobject.c (original)
+++ python/branches/p3yk/Objects/fileobject.c Sun Aug 5 04:35:01 2007
@@ -1773,11 +1773,11 @@
#define OFF(x) offsetof(PyFileObject, x)
static PyMemberDef file_memberlist[] = {
- {"mode", T_OBJECT, OFF(f_mode), RO,
+ {"mode", T_OBJECT, OFF(f_mode), READONLY,
"file mode ('r', 'U', 'w', 'a', possibly with 'b' or '+' added)"},
- {"name", T_OBJECT, OFF(f_name), RO,
+ {"name", T_OBJECT, OFF(f_name), READONLY,
"file name"},
- {"encoding", T_OBJECT, OFF(f_encoding), RO,
+ {"encoding", T_OBJECT, OFF(f_encoding), READONLY,
"file encoding"},
/* getattr(f, "closed") is implemented without this table */
{NULL} /* Sentinel */
Modified: python/branches/p3yk/Objects/frameobject.c
==============================================================================
--- python/branches/p3yk/Objects/frameobject.c (original)
+++ python/branches/p3yk/Objects/frameobject.c Sun Aug 5 04:35:01 2007
@@ -15,11 +15,11 @@
#define OFF(x) offsetof(PyFrameObject, x)
static PyMemberDef frame_memberlist[] = {
- {"f_back", T_OBJECT, OFF(f_back), RO},
- {"f_code", T_OBJECT, OFF(f_code), RO},
- {"f_builtins", T_OBJECT, OFF(f_builtins),RO},
- {"f_globals", T_OBJECT, OFF(f_globals), RO},
- {"f_lasti", T_INT, OFF(f_lasti), RO},
+ {"f_back", T_OBJECT, OFF(f_back), READONLY},
+ {"f_code", T_OBJECT, OFF(f_code), READONLY},
+ {"f_builtins", T_OBJECT, OFF(f_builtins),READONLY},
+ {"f_globals", T_OBJECT, OFF(f_globals), READONLY},
+ {"f_lasti", T_INT, OFF(f_lasti), READONLY},
{"f_exc_type", T_OBJECT, OFF(f_exc_type)},
{"f_exc_value", T_OBJECT, OFF(f_exc_value)},
{"f_exc_traceback", T_OBJECT, OFF(f_exc_traceback)},
Modified: python/branches/p3yk/Objects/genobject.c
==============================================================================
--- python/branches/p3yk/Objects/genobject.c (original)
+++ python/branches/p3yk/Objects/genobject.c Sun Aug 5 04:35:01 2007
@@ -282,8 +282,8 @@
static PyMemberDef gen_memberlist[] = {
- {"gi_frame", T_OBJECT, offsetof(PyGenObject, gi_frame), RO},
- {"gi_running", T_INT, offsetof(PyGenObject, gi_running), RO},
+ {"gi_frame", T_OBJECT, offsetof(PyGenObject, gi_frame), READONLY},
+ {"gi_running", T_INT, offsetof(PyGenObject, gi_running), READONLY},
{NULL} /* Sentinel */
};
More information about the Python-3000-checkins
mailing list