hasattr() or "x in y"?

Charles T. Smith cts.private.yahoo at gmail.com
Fri Mar 11 16:44:27 EST 2016


>From the performance point of view, which is better:
- hasattr()
- x in y

TIA
cts



More information about the Python-list mailing list