On Sun, 29 Sep 2013 12:35:17 +0300, Jussi Piitulainen wrote:
> try:
> ...
> except socket.gaierror as e:
> # watch out, a composition of bad advice (on demand) city, host = (
> ('city' in locals() or "blabla"),
> ('host' in locals() or "blablabla") )
Bad advice, and buggy as well.
py> city = "New New York"
py> ('city' in locals() or "Blah blah")
True
Oh man, can you imagine Nikos trying to debug that?
--
Steven
--
https://mail.python.org/mailman/listinfo/python-list
