Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
Datetime has two modes. There is divergent behavior between the pure python and the c-extensiontimezone class, as found indjango
>>>importdatetime,_pydatetime>>>classtimezone(_pydatetime.timezone):pass# Works fine......>>>classtimezone(datetime.timezone):pass# Fails to subclass......Traceback (mostrecentcalllast):File"<stdin>",line1,in<module>TypeError:type'datetime.timezone'isnotanacceptablebasetype
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Linked PRs
Metadata
Metadata
Assignees
Projects
Status
Done