[issue5211] Fix complex type to avoid coercion in 2.7.

Mark Dickinson report at bugs.python.org
Thu Feb 4 12:59:23 CET 2010


Mark Dickinson <dickinsm at gmail.com> added the comment:

> Yes, that was what I was proposing.  But as you point out, the new
> behaviour wouldn't even match the behaviour of Python 3.x, so it really
> wouldn't be a terribly useful change.

Hmm.  I take this back:  if complex were made 'new-style' in 2.7, then it *would* be possible to write fairly obvious code (not using coerce or __coerce__) that operated in the same way in both 2.7 and 3.2.  So I still think it's worth considering.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5211>
_______________________________________


More information about the Python-bugs-list mailing list