Author: Wim Lavrijsen <wlavrij...@lbl.gov> Branch: Changeset: r54599:442a3ea22328 Date: 2012-04-20 14:58 -0700 http://bitbucket.org/pypy/pypy/changeset/442a3ea22328/
Log: oops, python has three >, not four ... diff --git a/pypy/doc/cppyy.rst b/pypy/doc/cppyy.rst --- a/pypy/doc/cppyy.rst +++ b/pypy/doc/cppyy.rst @@ -266,18 +266,18 @@ The basic example above, rewritten for PyCintex thus goes like this:: $ python - >>>> import PyCintex - >>>> PyCintex.loadDictionary("libMyClassDict.so") - >>>> myinst = PyCintex.gbl.MyClass(42) - >>>> print myinst.GetMyInt() + >>> import PyCintex + >>> PyCintex.loadDictionary("libMyClassDict.so") + >>> myinst = PyCintex.gbl.MyClass(42) + >>> print myinst.GetMyInt() 42 - >>>> myinst.SetMyInt(33) - >>>> print myinst.m_myint + >>> myinst.SetMyInt(33) + >>> print myinst.m_myint 33 - >>>> myinst.m_myint = 77 - >>>> print myinst.GetMyInt() + >>> myinst.m_myint = 77 + >>> print myinst.GetMyInt() 77 - >>>> help(PyCintex.gbl.MyClass) # shows that normal python introspection works + >>> help(PyCintex.gbl.MyClass) # shows that normal python introspection works Other naming differences are such things as taking an address of an object. In PyCintex, this is done with ``AddressOf`` whereas in cppyy the choice was @@ -290,4 +290,4 @@ importing the ``cppyy`` or ``PyCintex`` modules directly. In that wrapper script you can rename methods exactly the way you need it. -In the Cling world, all these differences will be resolved. +In the cling world, all these differences will be resolved. _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit