New submission from Guido van Rossum: The special methods __complex__ and __bytes__ are not present on the corresponding builtin types. Compare this to __int__ and __float__, which do exist on int and float, respectively. Should we add the eponymous methods to complex and bytes?
(This came up in the context of PEP 484: https://github.com/ambv/typehinting/issues/68#issuecomment-88130156 ) ---------- messages: 243538 nosy: gvanrossum priority: normal severity: normal status: open title: Should we define complex.__complex__ and bytes.__bytes__? versions: Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24234> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com