From d0f547d80dfe7c44f3d379e7de189ce5c45c144e Mon Sep 17 00:00:00 2001 From: senyai Date: Fri, 27 Nov 2015 11:48:14 +0300 Subject: [PATCH] Update tutorial.rst >>> o = object() >>> id(o) 30969712 >>> id(o) is id(o) False >>> --- docs/tutorial.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index dd345e7..8499ea4 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -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