[Tutor] FW: How do you turn something into a number?

2005-08-22 Thread Lane, Frank L
Hi Gang, Thanks to Danny Yoo for a great answer. The answer given is a little advanced so I have to ask the following follow-up. What does it mean when you write the [0] after the return statement? e.g. return struct.unpack(!h, bytes)[0] I'm really green here but can tell I'm going to love

Re: [Tutor] FW: How do you turn something into a number?

2005-08-22 Thread Alan G
What does it mean when you write the [0] after the return statement? e.g. return struct.unpack(!h, bytes)[0] Its just indexing the list returned by struct.unpack(), specifically extracting tghe first element. For more on using struct() see the bottom section of my file handling topic... (now