mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
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.)
This commit is contained in:
parent
687dd13bfe
commit
25831652fd
21 changed files with 1223 additions and 823 deletions
|
|
@ -33,7 +33,9 @@ void err_clear PROTO((void));
|
|||
|
||||
/* Predefined exceptions */
|
||||
|
||||
extern object *AccessError;
|
||||
extern object *AttributeError;
|
||||
extern object *ConflictError;
|
||||
extern object *EOFError;
|
||||
extern object *IOError;
|
||||
extern object *ImportError;
|
||||
|
|
@ -59,3 +61,5 @@ extern object *err_errno PROTO((object *));
|
|||
extern void err_input PROTO((int));
|
||||
|
||||
extern void err_badcall PROTO((void));
|
||||
|
||||
extern object *err_getexc PROTO((void));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue