Skip to content

Commit

Permalink
document _python_owns -> __python_owns__
Browse files Browse the repository at this point in the history
  • Loading branch information
wlav committed Oct 24, 2017
1 parent c71da66 commit 3cd5bd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/source/features.rst
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,15 @@ The example C++ code used can be found :doc:`here <cppyy_features_header>`.
* **memory**: C++ instances created by calling their constructor from python
are owned by python.
You can check/change the ownership with the _python_owns flag that every
You can check/change the ownership with the __python_owns__ flag that every
bound instance carries.
Example:

.. code-block:: python
>>> from cppyy.gbl import ConcreteClass
>>> c = ConcreteClass()
>>> c._python_owns # True: object created in Python
>>> c.__python_owns__ # True: object created in Python
True
>>>
Expand Down

0 comments on commit 3cd5bd2

Please sign in to comment.