diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 0d780e3ba89643..c8ea9d778b25c8 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -478,9 +478,9 @@ Random Remarks If the same attribute name occurs in both an instance and in a class, then attribute lookup prioritizes the instance:: - >>> class Warehouse: - purpose = 'storage' - region = 'west' + class Warehouse: + purpose = 'storage' + region = 'west' >>> w1 = Warehouse() >>> print(w1.purpose, w1.region)