File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9393 "cell_type" : " markdown" ,
9494 "metadata" : {},
9595 "source" : [
96- " [A blog post about `interned` python builtins](http://me.veekun.com/blog/2012/03/24/python-faq-equality/)"
96+ " [A blog post about `interned` python builtins](http://me.veekun.com/blog/2012/03/24/python-faq-equality/), or why:\n " ,
97+ " \n " ,
98+ " * `1000 is 1000` is `True`, \n " ,
99+ " \n " ,
100+ " but\n " ,
101+ " \n " ,
102+ " * `x = 1000; x is 1000` is `False`"
97103 ]
98104 },
105+ {
106+ "cell_type" : " code" ,
107+ "collapsed" : false ,
108+ "input" : [
109+ " 1000 is 1000"
110+ ],
111+ "language" : " python" ,
112+ "metadata" : {},
113+ "outputs" : [
114+ {
115+ "metadata" : {},
116+ "output_type" : " pyout" ,
117+ "prompt_number" : 17 ,
118+ "text" : [
119+ " True"
120+ ]
121+ }
122+ ],
123+ "prompt_number" : 17
124+ },
125+ {
126+ "cell_type" : " code" ,
127+ "collapsed" : false ,
128+ "input" : [
129+ " x = 1000\n " ,
130+ " x is 1000"
131+ ],
132+ "language" : " python" ,
133+ "metadata" : {},
134+ "outputs" : [
135+ {
136+ "metadata" : {},
137+ "output_type" : " pyout" ,
138+ "prompt_number" : 19 ,
139+ "text" : [
140+ " False"
141+ ]
142+ }
143+ ],
144+ "prompt_number" : 19
145+ },
99146 {
100147 "cell_type" : " code" ,
101148 "collapsed" : false ,
You can’t perform that action at this time.
0 commit comments