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 1315
1315
},
1316
1316
{
1317
1317
"cell_type" : " code" ,
1318
- "execution_count" : 41 ,
1318
+ "execution_count" : null ,
1319
1319
"id" : " 4e8f863a" ,
1320
1320
"metadata" : {},
1321
1321
"outputs" : [],
1327
1327
" \n " ,
1328
1328
" # singleton pattern\n " ,
1329
1329
" 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 " ,
1331
1331
" # not providing them will create syntax error because __init__ is defined with two arguments \n " ,
1332
1332
" if not cls._instance:\n " ,
1333
1333
" cls._instance = super().__new__(cls)\n " ,
1346
1346
},
1347
1347
{
1348
1348
"cell_type" : " code" ,
1349
- "execution_count" : 42 ,
1349
+ "execution_count" : 52 ,
1350
1350
"id" : " a764ca44" ,
1351
1351
"metadata" : {},
1352
1352
"outputs" : [],
1357
1357
},
1358
1358
{
1359
1359
"cell_type" : " code" ,
1360
- "execution_count" : 43 ,
1360
+ "execution_count" : 53 ,
1361
1361
"id" : " b9b63da3" ,
1362
1362
"metadata" : {},
1363
1363
"outputs" : [
1367
1367
" True"
1368
1368
]
1369
1369
},
1370
- "execution_count" : 43 ,
1370
+ "execution_count" : 53 ,
1371
1371
"metadata" : {},
1372
1372
"output_type" : " execute_result"
1373
1373
}
1378
1378
},
1379
1379
{
1380
1380
"cell_type" : " code" ,
1381
- "execution_count" : 44 ,
1381
+ "execution_count" : 54 ,
1382
1382
"id" : " b302bf1f" ,
1383
1383
"metadata" : {},
1384
1384
"outputs" : [
1398
1398
},
1399
1399
{
1400
1400
"cell_type" : " code" ,
1401
- "execution_count" : 45 ,
1401
+ "execution_count" : 55 ,
1402
1402
"id" : " ad9b3855" ,
1403
1403
"metadata" : {},
1404
1404
"outputs" : [
1408
1408
" True"
1409
1409
]
1410
1410
},
1411
- "execution_count" : 45 ,
1411
+ "execution_count" : 55 ,
1412
1412
"metadata" : {},
1413
1413
"output_type" : " execute_result"
1414
1414
}
You can’t perform that action at this time.
0 commit comments