]> granicus.if.org Git - python/commitdiff
fix some more print statements
authorBenjamin Peterson <benjamin@python.org>
Wed, 29 Oct 2008 20:35:35 +0000 (20:35 +0000)
committerBenjamin Peterson <benjamin@python.org>
Wed, 29 Oct 2008 20:35:35 +0000 (20:35 +0000)
Doc/reference/datamodel.rst

index 7fa9864f246d32de9fed5f8d0a62c9c82ce536e0..a531350874a6c3487ed6f99e49a7ec768b5f25e9 100644 (file)
@@ -1918,14 +1918,14 @@ correctness, implicit special method lookup may also bypass the
 
    >>> class Meta(type):
    ...    def __getattribute__(*args):
-   ...       print "Metaclass getattribute invoked"
+   ...       print("Metaclass getattribute invoked")
    ...       return type.__getattribute__(*args)
    ...
    >>> class C(object, metaclass=Meta):
    ...     def __len__(self):
    ...         return 10
    ...     def __getattribute__(*args):
-   ...         print "Class getattribute invoked"
+   ...         print("Class getattribute invoked")
    ...         return object.__getattribute__(*args)
    ...
    >>> c = C()