Changes between Initial Version and Version 1 of Ticket #20684, comment 3


Ignore:
Timestamp:
Jul 2, 2013, 7:40:01 AM (11 years ago)
Author:
Shai Berger

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20684, comment 3

    initial v1  
    1 Actually, I'd rather use some special marker rather than None -- most such attributes are essentially boolean, and None -- which is False when evaluated as a boolean -- would come to mark True, and this can be confusing.
     1Actually, I'd rather use some special marker other than None -- most such attributes are essentially boolean, and None -- which is False when evaluated as a boolean -- would come to mark True, and this can be confusing.
    22
    33I'd introduce a new constant, and call it NoValue -- probably along the lines of `class NoValue(object): pass`. Then you could write
Back to Top