Changes between Initial Version and Version 1 of Ticket #28120, comment 10


Ignore:
Timestamp:
Nov 30, 2017, 9:32:20 AM (7 years ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28120, comment 10

    initial v1  
    11This 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.
    22
    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 before tackling this ticket.
     3On 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.
Back to Top