• bvs23bkv33 (unregistered)

    nice idea to have explicit builtin first comment with every article to stop posting it by site readers

  • ray10k (unregistered)

    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...

  • (nodebb)

    One has to wonder: how much useless stuff.

    My best guess would be "all of it".

  • TheBestPessimist (unregistered)

    From comments import Frist

  • (nodebb)

    They didn't import false? Does that mean all if statements always execute then blocks?

  • (nodebb) in reply to ray10k

    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...

    Someone buy this man a beer! Brilliant explanation of "explicit" commentary!!

  • David Green (unregistered) in reply to Mr. TA

    Or FILE_NOT_FOUND?

  • Dan Jones (unregistered)

    At least it wasn't something like this:

    import __builtin__
    
    if (3 < 5) == __builtin__.True:
        print('Three is less than five')
    
  • akozakie (unregistered)

    "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.

  • Zach (unregistered)

    import java.util.System;

    cout << "You can never be too careful about how much you're importing";

  • Coyote (unregistered)

    You can even do

    from builtin import True as False

    hide that somewhere and watch the hilarity ensue

  • Kitihounel (unregistered) in reply to Coyote

    That's sadistic... But very funny. I will do that.

  • Kurov Mashin (unregistered)

    What could make all the other coworkers also start blindly following that one?

  • (nodebb) in reply to Kurov Mashin

    If they're the lead

  • (nodebb) in reply to Bananafish

    Not only that! Being self-referential, and producing more than it consumes, it is a programmable infinite comment!

  • (nodebb) in reply to Mr. TA

    Not True.

  • (nodebb) in reply to DrOptableUser

    Not necessarily; it could just be the start of a very long quine.

  • Martin (unregistered)

    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...

  • tlhonmey (unregistered)

    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...

Leave a comment on “Explicitly True”

Log In or post as a guest

Replying to comment #:

« Return to Article