[issue20692] Tutorial section 9.4
New submission from Jon Shemitz: The tutorial says "Each value is an object, and therefore has a class (also called its type). It is stored as object.__class__." So, I tried
3.__class__ File "<stdin>", line 1 3.__class__ ^ SyntaxError: invalid syntax
Yet, "foo".__class__ worked, as did 3j.__class__ and 3.5.__class__.
When my son (!) suggested that I try (3).__class__, I did indeed get
participants (10)
-
Amir
-
Antoine Pitrou
-
Cheryl Sabella
-
Irit Katriel
-
Jakub Stasiak
-
Jon Shemitz
-
Josh Rosenberg
-
R. David Murray
-
Sreepriya Chalakkal
-
Terry J. Reedy