[New-bugs-announce] [issue24234] Should we define complex.__complex__ and bytes.__bytes__?

Guido van Rossum report at bugs.python.org
Mon May 18 23:37:35 CEST 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue24234>
_______________________________________


More information about the New-bugs-announce mailing list