On 03/05/2014 07:00 PM, Steven D'Aprano wrote:
On Wed, Mar 05, 2014 at 09:23:37PM -0500, Donald Stufft wrote:
It’s hard to do any sort of search for this, however in an informal poll where I’ve shown people this code not a single person thought it made sense, and most of them responded with “wtf?”.
Well I don't know who these people are, what their background is, or exactly how you phrased the question. But in my experience, most programmers have extremely strongly held opinions about the sensibility of certain features that have little or nothing with any rational analysis of the pros and cons and far more likely to be "that's different from the first language I learned, therefore it's rubbish".
As part of learning Python, I learned one of its core tenets was the divide between something and nothing (some of that from you, I believe ;), midnight is most certainly something, so I was very surprised to learn that bool(midnight) is False. -- ~Ethan~