Mark Dickinson <[email protected]> added the comment:
Hmm. Yes, that's not very clear. The same message is used both for
struct.pack and for Struct.pack (which struct.pack is really just a convenient
alias for); it makes a bit more sense for the latter:
>>> struct.Struct('1s1s').pack('33')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
struct.error: pack requires exactly 2 arguments
----------
nosy: +mark.dickinson
versions: +Python 3.3
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue14897>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com