[issue32112] Should uuid.UUID() accept another UUID() instance?

Serhiy Storchaka report at bugs.python.org
Fri Nov 24 12:56:06 EST 2017


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Growing the size of the code and the documentation, complicating the mental model, slowing down all other cases, the risk of introducing bugs. This is the cost that we should pay for adding a new feature. The benefit of adding a feature should be larger than this cost. I'm not sure this is a case. But if you think it is worth, you can add it.

Note that by adding this feature you can open a can of worms and will need to add support of time(time), date(date), namedtuple(namedtuple), etc for the same reason, because some database drivers already do mapping for you.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32112>
_______________________________________


More information about the Python-bugs-list mailing list