Menu

Boolean

Developers
2004-04-21
2004-04-21
  • Daniel Pozmanter

    I am thinking of killing booleans in drpython.

    think most programmers know that 0 is false and 1 is true, and I weant to get rid of drBoolean.py, as well as make sure we use ints (wxPython 2.5.x uses booleans, which leads to a compat issue (fixed) with prefs.)

    What thoughts?

     
    • liyinghui

      liyinghui - 2004-04-21

      In 2.3.3, Python has build-in boolean type True and False. Yes, we don't need drBoolean.py. But using True and False may be more clearly in some case.

       
    • Daniel Pozmanter

      So then you support using True and False, and telling people they need to use the latest Python (2.2 or later)?

       
    • Chris Wilson

      Chris Wilson - 2004-04-21

      I agree with limodou that "True" and "False" are much more readable, and to be honest, I've become so used to
      using them (originally via constant declarations a la drBoolean) that I'd miss them.

      That said, I can always to a quick "find" when I've finished coding to make sure I've not used them, so go ahead if you feel it would be of benefit.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.