Changes between Initial Version and Version 1 of Ticket #28120, comment 10
- Timestamp:
- Nov 30, 2017, 9:32:20 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28120, comment 10
initial v1 1 1 This is all getting into bike shedding territory but I assume that if a user is advanced enough to subclass `int` and pass it to `max_length` they know what they are doing. 2 2 3 On the opposite passing a `max_length=bool` is highly likely to be a beginner mistake. The fact `bool` subclasses `int` is really just a relic of the past which I assume most Python users are not aware of. In my case at least I wasn't aware of it beforetackling this ticket.3 On the opposite passing a `max_length=bool` is highly likely to be a beginner mistake. The fact `bool` subclasses `int` is really just a relic of the past which I assume most Python users are not aware of. In my case at least I wasn't until tackling this ticket.