Chris Angelico <ros...@gmail.com>:

> I'd have to explicitly check "if self.socket is None:".

That is the only way in Python.

Wrong:

    return f() or g() or h()

Right:

    rv = f()
    if rv is not None:
        return rv
    rv = g()
    if rv is not None:
        return rv
    return h()

> I'm not advocating making this change.

Has someone proposed a change?


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to