Terry J. Reedy <tjre...@udel.edu> added the comment:

When reporting a failure please copy and paste the exception and message and 
when non-trivial, the traceback.   In this case:  "TypeError: 'test' is an 
invalid keyword argument for complex()".  The difference between int and 
complex versus float is that the former have keyword arguments, so they check 
for invalid keyword arguments, whereas float take no keyword arguments, so it 
does not check for validity and, for subclasses, passes them on.

----------
nosy: +terry.reedy
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42334>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to