diff options
author | Guido van Rossum <guido@python.org> | 1993-05-19 14:50:45 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-05-19 14:50:45 (GMT) |
commit | 25831652fd4c03323066d4cafdc0551c396a993e (patch) | |
tree | 69588df0f98b3280402cad3ed95865d06fa21702 /Python/bltinmodule.c | |
parent | 687dd13bfec51849c93db7c538ff41d4c8ecddcb (diff) | |
download | cpython-25831652fd4c03323066d4cafdc0551c396a993e.zip cpython-25831652fd4c03323066d4cafdc0551c396a993e.tar.gz cpython-25831652fd4c03323066d4cafdc0551c396a993e.tar.bz2 |
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 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index b74b9cc..3d9504b 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -796,7 +796,9 @@ getbuiltin(name) /* Predefined exceptions */ +object *AccessError; object *AttributeError; +object *ConflictError; object *EOFError; object *IOError; object *ImportError; @@ -827,7 +829,9 @@ newstdexception(name) static void initerrors() { + AccessError = newstdexception("AccessError"); AttributeError = newstdexception("AttributeError"); + ConflictError = newstdexception("ConflictError"); EOFError = newstdexception("EOFError"); IOError = newstdexception("IOError"); ImportError = newstdexception("ImportError"); |