Charles-Francois Natali <neolo...@free.fr> added the comment:

Following EAFP principle, it would be better - cleaner and more efficient - to 
put the stuct.unpack inside a try/except clause than checking the lengths 
beforehand.

----------
nosy: +neologix

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

Reply via email to