[issue5080] PyArg_Parse* should raise TypeError for float parsed with integer format

Mark Dickinson report at bugs.python.org
Sun Dec 20 16:31:52 CET 2009


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

Hmm.  That's unfortunate:  for argument type in 'bBHiIlkKn', an attempt to 
pass a float results in a DeprecationWarning.  For type 'L', there's no 
DeprecationWarning, and the float is silently truncated.  So for type 'L' 
I guess we still have to go through a round of DeprecationWarning.

I'm not sure what 'h' does;  there don't appear to be any tests for it, 
currently.

----------

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


More information about the Python-bugs-list mailing list