Paul Ganssle <p.gans...@gmail.com> added the comment:

Another thing to note: I'm pretty sure this was a mistake in the first place. 
There are many examples of places where the datetime module was just not 
designed with inheritance in mind, for example:

- issue 32404 / issue 32403 - fromtimestamp not calling __new__
- issue 31222 / 20371  - C implementation of .replace

I think there are many other unreported issues that all stem from similar 
inconsistencies that we've been slowly shoring up.

One problem is that it's very inconsistent, which makes datetime not 
particularly friendly to subclass, but to the extent that that's changing, 
we've been getting *more* friendly to subclasses.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35364>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to