File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -896,6 +896,13 @@ \section{Other Language Changes}
896896<type '_socket.socket'>
897897\end {verbatim }
898898
899+ \item One of the noted incompatibilities between old- and new-style
900+ classes has been removed: you can now assign to the
901+ \member {__name__} and \member {__bases__} attributes of new-style
902+ classes. There are some restrictions on what can be assigned to
903+ \member {__bases__} along the lines of those relating to assigning to
904+ an instance's \member {__class__} attribute.
905+
899906\end {itemize }
900907
901908
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ What's New in Python 2.3 alpha 1?
1212Type/class unification and new-style classes
1313--------------------------------------------
1414
15+ - One can now assign to __bases__ and __name__ of new-style classes.
16+
1517- dict() now accepts keyword arguments so that dict(one=1, two=2)
1618 is the equivalent of {"one": 1, "two": 2}. Accordingly,
1719 the existing (but undocumented) 'items' keyword argument has
You can’t perform that action at this time.
0 commit comments