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


Ignore:
Timestamp:
07/02/2013 07:40:01 AM (2 years ago)
Author:
shai
Comment:

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