File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 13151315 },
13161316 {
13171317 "cell_type" : " code" ,
1318- "execution_count" : 41 ,
1318+ "execution_count" : null ,
13191319 "id" : " 4e8f863a" ,
13201320 "metadata" : {},
13211321 "outputs" : [],
13271327 " \n " ,
13281328 " # singleton pattern\n " ,
13291329 " def __new__(cls, *args, **kwargs):\n " ,
1330- " # we don't care about args and kwargs within __new__\n " ,
1330+ " # we don't care about (a, b) so use args and kwargs within __new__\n " ,
13311331 " # not providing them will create syntax error because __init__ is defined with two arguments \n " ,
13321332 " if not cls._instance:\n " ,
13331333 " cls._instance = super().__new__(cls)\n " ,
13461346 },
13471347 {
13481348 "cell_type" : " code" ,
1349- "execution_count" : 42 ,
1349+ "execution_count" : 52 ,
13501350 "id" : " a764ca44" ,
13511351 "metadata" : {},
13521352 "outputs" : [],
13571357 },
13581358 {
13591359 "cell_type" : " code" ,
1360- "execution_count" : 43 ,
1360+ "execution_count" : 53 ,
13611361 "id" : " b9b63da3" ,
13621362 "metadata" : {},
13631363 "outputs" : [
13671367 " True"
13681368 ]
13691369 },
1370- "execution_count" : 43 ,
1370+ "execution_count" : 53 ,
13711371 "metadata" : {},
13721372 "output_type" : " execute_result"
13731373 }
13781378 },
13791379 {
13801380 "cell_type" : " code" ,
1381- "execution_count" : 44 ,
1381+ "execution_count" : 54 ,
13821382 "id" : " b302bf1f" ,
13831383 "metadata" : {},
13841384 "outputs" : [
13981398 },
13991399 {
14001400 "cell_type" : " code" ,
1401- "execution_count" : 45 ,
1401+ "execution_count" : 55 ,
14021402 "id" : " ad9b3855" ,
14031403 "metadata" : {},
14041404 "outputs" : [
14081408 " True"
14091409 ]
14101410 },
1411- "execution_count" : 45 ,
1411+ "execution_count" : 55 ,
14121412 "metadata" : {},
14131413 "output_type" : " execute_result"
14141414 }
You can’t perform that action at this time.
0 commit comments