Changes between Initial Version and Version 1 of Ticket #20684, comment 3
- Timestamp:
- Jul 2, 2013, 7:40:01 AM (11 years ago)
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.1 Actually, 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. 2 2 3 3 I'd introduce a new constant, and call it NoValue -- probably along the lines of `class NoValue(object): pass`. Then you could write