datetime as subclass of date
Skip Montanaro
skip at pobox.com
Fri Jan 24 11:03:15 EST 2014
More information about the Python-list mailing list
Fri Jan 24 11:03:15 EST 2014
- Previous message (by thread): datetime as subclass of date
- Next message (by thread): generate De Bruijn sequence memory and string vs lists
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
One thing that always reinforced my notion that issubclass(datetime.datetime, datetime.date) should be False is that the presence of of date and time methods gives me a mental image of delegation, not inheritance. That is, it "feels" like a datetime object is the aggregation of a date object and a time object, not a specialized date object with some added time machinery mixed in. Skip
- Previous message (by thread): datetime as subclass of date
- Next message (by thread): generate De Bruijn sequence memory and string vs lists
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list