[Python-ideas] Boolean value of file object? (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Sun Jan 8 02🔞30 CET 2012


On Sun, Jan 8, 2012 at 11:07 AM, Mike Meyer <mwm at mired.org> wrote:

My own thought is that this is a case where status quo wins, but thought someone else might think the idea has more merit.

Unfortunately, there are way too many "file-like objects" in the wild for it to ever be feasible to rely on such a shorthand. Cute idea, though.

Cheers, Nick.

-- Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list