struct - Library Reference 4.3

Martin v. Loewis martin at v.loewis.de
Sat Mar 23 18:20:24 EST 2002


"Colin J. Williams" <cjw at sympatico.ca> writes:

> This gives no indication as to which of the argument's
> components is the source of the grief.
> 
> Any information about the error function would be
> appreciated.

It's not a function - it is an exception. If you want to catch the
exception, you need to write a try-except-block.

The exception does not provide any further information beyond the
string that is printed - it is assumed that the nature of the error
would be obvious once you read the string.

Regards,
Martin




More information about the Python-list mailing list