summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-05-25 09:38:27 (GMT)
committerGuido van Rossum <guido@python.org>1993-05-25 09:38:27 (GMT)
commiteb6b33a837a180221b635331e005f990024bdb30 (patch)
treeea03e645019d8494df1753da7ef42f86559ed5f6 /Include
parent23301a9467024eb70b654924c3f0a54d76702e47 (diff)
downloadcpython-eb6b33a837a180221b635331e005f990024bdb30.zip
cpython-eb6b33a837a180221b635331e005f990024bdb30.tar.gz
cpython-eb6b33a837a180221b635331e005f990024bdb30.tar.bz2
* classobject.c: in instance_getattr, don't make a method out of a
function found as instance data. * socketmodule.c: added 'flags' argument sendto/recvfrom, rewrite argument parsing in send/recv. * More changes related to access (terminology change: owner instead of class; allow any object as owner; local/global variables are owned by their dictionary, only class/instance data is owned by the class; "from...import *" now only imports objects with public access; etc.)
Diffstat (limited to 'Include')
-rw-r--r--Include/ceval.h2
-rw-r--r--Include/frameobject.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Include/ceval.h b/Include/ceval.h
index ab7659e..992b63d 100644
--- a/Include/ceval.h
+++ b/Include/ceval.h
@@ -28,7 +28,7 @@ object *call_object PROTO((object *, object *));
object *getglobals PROTO((void));
object *getlocals PROTO((void));
-object *getclass PROTO((void));
+object *getowner PROTO((void));
void mergelocals PROTO((void));
void printtraceback PROTO((object *));
diff --git a/Include/frameobject.h b/Include/frameobject.h
index 2056e06..c514de2 100644
--- a/Include/frameobject.h
+++ b/Include/frameobject.h
@@ -36,7 +36,7 @@ typedef struct _frame {
codeobject *f_code; /* code segment */
object *f_globals; /* global symbol table (dictobject) */
object *f_locals; /* local symbol table (dictobject) */
- object *f_class; /* class context (classobject or NULL) */
+ object *f_owner; /* owner (e.g. class or module) or NULL */
object *f_fastlocals; /* fast local variables (listobject) */
object *f_localmap; /* local variable names (dictobject) */
object **f_valuestack; /* malloc'ed array */