[issue14897] struct.pack raises unexpected error message
Serhiy Storchaka
report at bugs.python.org
Thu May 24 10:41:13 CEST 2012
Serhiy Storchaka <storchaka at gmail.com> added the comment:
Funny. struct.pack(fmt, args...) is just an alias to struct.Struct(fmt).pack(args...). The error message should be changed to explicitly state that we are talking about the data for packing, and not about the arguments of function. Or should remove mention of the number of arguments at all (leave only "too much" or "too little").
----------
nosy: +storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14897>
_______________________________________
More information about the Python-bugs-list
mailing list