EAFP

2022-05-13 Thread bryangan41
Is the following LBYL:foo = 123if foo < 200:    do()If so, how to change to 
EAFP?Thanks!Sent from Samsung tablet.
-- 
https://mail.python.org/mailman/listinfo/python-list


.0 in name

2022-05-13 Thread bryangan41
May I know (1) why can the name start with a number?(2) where in the doc is 
it?!>>> import pdb>>> pdb.run('(a for a in "")')> (1)()(Pdb) 
s--Call--> (1)()(Pdb) a.0 = (Pdb) c>>>Sent from Samsung tablet.
-- 
https://mail.python.org/mailman/listinfo/python-list