Charles-Francois Natali <[email protected]> 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 <[email protected]>
<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