07.02.20 01:00, Paul G пише:
I will note that it doesn't seem to be true that operators never call standard methods. Looks like date.__add__ calls date.toordinal and date.fromordinal (at least in the pure Python implementation), and datetime calls those plus tzinfo.utcoffset. Not sure if the rule Serhiy is citing is only intended to apply to builtins, though.
It is an implementation detail. The C implementation does not call date.toordinal and date.fromordinal.
_______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/M6IZJQIY2REQDNTHU3XNY4Q5W7BCEP24/ Code of Conduct: http://python.org/psf/codeofconduct/
