PyCon: Evangelizing Python
PyCon: Evangelizing Python
Posted Mar 30, 2013 20:53 UTC (Sat) by tnoo (subscriber, #20427)In reply to: PyCon: Evangelizing Python by intgr
Parent article: PyCon: Evangelizing Python
> This hole is fixed in Python 3,
Maybe I don't get it, but how should an undefined value d['age'] be compared to a number? The natural way is to compare int(d['age']) < 18. which won't give random behaviour. and which would be done in any sane language. Nice that it raises Type error in Python3.