Mark Dickinson <dicki...@gmail.com> added the comment:
Agreed that UUID should not implement `__index__`. I wouldn't expect to be able to use a UUID as a list index, for example. This is marked as "behavior", but I have a hard time seeing this as a bug. It's not even a usability bug, given how easy it is to get the hex value of a UUID with `.hex`. Maybe the UUID class should grow a `__format__` implementation that respects the `x` format specifier? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35115> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com