- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
nice idea to have explicit builtin first comment with every article to stop posting it by site readers
Admin
I wrote this comment by first pressing the 'i' key on my keyboard while holding shift, then tapping space followed by me pressing 'w', 'r','o','t','e' in that order, then tapping space again...
Admin
My best guess would be "all of it".
Admin
From comments import Frist
Admin
They didn't import false? Does that mean all if statements always execute then blocks?
Admin
Someone buy this man a beer! Brilliant explanation of "explicit" commentary!!
Admin
Or FILE_NOT_FOUND?
Admin
At least it wasn't something like this:
Admin
"Paid per kLoC" artifact?
Also, Re: easy reader version - from builtin import False. Not "every one", you missed it once or twice. I always check.
Admin
import java.util.System;
cout << "You can never be too careful about how much you're importing";
Admin
You can even do
from builtin import True as False
hide that somewhere and watch the hilarity ensue
Admin
That's sadistic... But very funny. I will do that.
Admin
What could make all the other coworkers also start blindly following that one?
Admin
If they're the lead
Admin
Not only that! Being self-referential, and producing more than it consumes, it is a programmable infinite comment!
Admin
Not True.
Admin
Not necessarily; it could just be the start of a very long quine.
Admin
Python has boolean types (True and False) only since version 2.2.1 (https://docs.python.org/2/library/functions.html#index-0), which means this code may be older, and really needed to be imported from future...
Admin
It's possible also that some module they were using at some point was overwriting True with... something else... And they were using this to put it back. I had to do something similar with an automation framework that used Python as its scripting language and decided that "type" should mean "type on the screen" instead of "return the type of this object" and didn't include a substitute...