Extracting a short using struct - won't print.

Graham Nicholls graham at rockcons.co.uk
Thu Aug 7 12:24:53 EDT 2003


Graham Nicholls wrote:

> Richard Brodie wrote:
> 
>> 
...snipped

> 
> I told you it'd be something stupid!
> I mean
>         x=data[1]
>         y=data[2]
> don't I!
> Thanks!!!!
> Graham

Which, of course works - one of the annoying things about learning a
language is that you tend to assume its something more complex than it
really is when you get an error.  I'd see that in 2 seconds flat in a c
program , of course, but then the compiler would help..

BTW How does one test python programs - because its interpreted, it often
won't run bits of code till unexpected circumstances, so a syntax error can
be hidden until runtime?

Graham
-- 
Graham Nicholls
Rock Computer Consultancy





More information about the Python-list mailing list