Update tutorial.rst

>>> o = object()
>>> id(o)
30969712
>>> id(o) is id(o)
False
>>>
This commit is contained in:
senyai
2015-11-27 11:48:14 +03:00
parent b869d7c6ec
commit d0f547d80d

View File

@@ -290,7 +290,7 @@ also define the registry as the application registry::
>>> q1 = UnitRegistry().meter
>>> q2 = UnitRegistry().meter
>>> # q1 and q2 belong to different registries!
>>> id(q1._REGISTRY) is id(q2._REGISTRY) # False
>>> id(q1._REGISTRY) == id(q2._REGISTRY) # False
.. _eval: http://docs.python.org/3/library/functions.html#eval
.. _dangerous: http://nedbatchelder.com/blog/201206/eval_really_is_dangerous.html