[issue7989] Add pure Python implementation of datetime module to CPython

Alexander Belopolsky report at bugs.python.org
Thu Jul 1 21:06:10 CEST 2010

Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

> R. David Murray <rdmurray at bitdance.com> added the comment:
> If they abuse the _ methods and complain that the C version doesn't
> work, we just say "we *told* you not to do that".  It is not the Python
> philosophy to try to protect users from mistakes that they willfully
> make.

Let me think some more about this.  Given double underscores in special methods, changing this is not a simple s/__/_/ throughout the file.  I am not sure _ clearly signals "don't use in subclasses": that's what __ is for.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list