diff options
author | Guido van Rossum <guido@python.org> | 1993-05-19 14:50:45 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-05-19 14:50:45 +0000 |
commit | 3658ba2edc4ad5b14552c563c5d9ffe6b3c7fe98 (patch) | |
tree | 30d88273677b748c279d94b54bef2a3796481f7f /Include/dictobject.h | |
parent | 4155059df7fa95af22f470c2270454e2593d5114 (diff) | |
download | cpython-3658ba2edc4ad5b14552c563c5d9ffe6b3c7fe98.tar.gz |
Several changes in one:
(1) dictionaries/mappings now have attributes values() and items() as
well as keys(); at the C level, use the new function mappinggetnext()
to iterate over a dictionary.
(2) "class C(): ..." is now illegal; you must write "class C: ...".
(3) Class objects now know their own name (finally!); and minor
improvements to the way how classes, functions and methods are
represented as strings.
(4) Added an "access" statement and semantics. (This is still
experimental -- as long as you don't use the keyword 'access' nothing
should be changed.)
Diffstat (limited to 'Include/dictobject.h')
-rw-r--r-- | Include/dictobject.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h index ce71570ab4..1475f103f3 100644 --- a/Include/dictobject.h +++ b/Include/dictobject.h @@ -33,12 +33,9 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. extern object *dictlookup PROTO((object *dp, char *key)); extern int dictinsert PROTO((object *dp, char *key, object *item)); extern int dictremove PROTO((object *dp, char *key)); -extern char *getdictkey PROTO((object *dp, int i)); -#define getdictsize getmappingsize #define getdictkeys getmappingkeys -#define getdict2key getmappingkey #define dict2lookup mappinglookup #define dict2insert mappinginsert #define dict2remove mappingremove |