Weak Type Ability for Python
Chris Angelico
rosuav at gmail.com
Thu Apr 13 12:11:45 EDT 2023
On Fri, 14 Apr 2023 at 02:05, <avi.e.gross at gmail.com> wrote:
> So why not extend it to allow complex numbers?
>
> >>> "Hello" * complex(5,0)
> TypeError: can't multiply sequence by non-int of type 'complex'
> >>> "Hello" * complex(0,5)
> TypeError: can't multiply sequence by non-int of type 'complex'
>
Clearly a missed opportunity to rotate the text through a specified angle.
ChrisA
More information about the Python-list
mailing list