[issue14897] struct.pack raises unexpected error message

Mark Dickinson report at bugs.python.org
Thu May 24 10:47:31 CEST 2012


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

It might help if the error message also stated how many arguments were actually received, like the TypeError message already does for bad function / method calls.  E.g., 

"struct.error: pack expected 2 items for packing (got 1)"

----------

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


More information about the Python-bugs-list mailing list