[Python-3000-checkins] r67043 - python/branches/py3k/Doc/reference/datamodel.rst

benjamin.peterson python-3000-checkins at python.org
Wed Oct 29 21:35:35 CET 2008


Author: benjamin.peterson
Date: Wed Oct 29 21:35:35 2008
New Revision: 67043

Log:
fix some more print statements

Modified:
   python/branches/py3k/Doc/reference/datamodel.rst

Modified: python/branches/py3k/Doc/reference/datamodel.rst
==============================================================================
--- python/branches/py3k/Doc/reference/datamodel.rst	(original)
+++ python/branches/py3k/Doc/reference/datamodel.rst	Wed Oct 29 21:35:35 2008
@@ -1918,14 +1918,14 @@
 
    >>> 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()


More information about the Python-3000-checkins mailing list