Commit 8ed69e33 authored by Neal Norwitz's avatar Neal Norwitz

SF #829941, update tutorial, built-in types can be base classes since 2.2

parent dd666451
...@@ -3550,8 +3550,8 @@ method function is declared with an explicit first argument ...@@ -3550,8 +3550,8 @@ method function is declared with an explicit first argument
representing the object, which is provided implicitly by the call. As representing the object, which is provided implicitly by the call. As
in Smalltalk, classes themselves are objects, albeit in the wider in Smalltalk, classes themselves are objects, albeit in the wider
sense of the word: in Python, all data types are objects. This sense of the word: in Python, all data types are objects. This
provides semantics for importing and renaming. But, just like in provides semantics for importing and renaming. Unlike
\Cpp{} or Modula-3, built-in types cannot be used as base classes for \Cpp{} and Modula-3, built-in types can be used as base classes for
extension by the user. Also, like in \Cpp{} but unlike in Modula-3, most extension by the user. Also, like in \Cpp{} but unlike in Modula-3, most
built-in operators with special syntax (arithmetic operators, built-in operators with special syntax (arithmetic operators,
subscripting etc.) can be redefined for class instances. subscripting etc.) can be redefined for class instances.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment