From c12859d6cbc1fe2e0134304ed33fd0474ffbe2ef Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sat, 25 Oct 2003 14:17:15 +0000 Subject: SF #829941, update tutorial, built-in types can be base classes since 2.2 --- Doc/tut/tut.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index 661ac20..742a3af 100644 --- a/Doc/tut/tut.tex +++ b/Doc/tut/tut.tex @@ -3541,8 +3541,8 @@ method function is declared with an explicit first argument representing the object, which is provided implicitly by the call. As in Smalltalk, classes themselves are objects, albeit in the wider sense of the word: in Python, all data types are objects. This -provides semantics for importing and renaming. But, just like in -\Cpp{} or Modula-3, built-in types cannot be used as base classes for +provides semantics for importing and renaming. Unlike +\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 built-in operators with special syntax (arithmetic operators, subscripting etc.) can be redefined for class instances. -- cgit v0.12