String --> int
Romain Guy
romain.guy at jext.org
Thu Jun 21 09:48:04 EDT 2001
tahnks
--
Romain "Java Swinguer !" Guy
romain.guy at jext.org
www.jext.org
"Now, don't you worry. The saucers are up there. The graveyard is out there.
But I'll be locked up safely in there."
- Paula Trent, Plan 9 From Outer Space
"Skip Montanaro" <skip at pobox.com> a écrit dans le message news:
mailman.993126872.31239.python-list at python.org...
>
> Romain> Assuming fsock is a File objet, when I do:
> Romain> var = fsock.read(4)
>
> Romain> I get a String. I'd like to convert it into an integer.
>
> Check out the struct module.
>
>
More information about the Python-list
mailing list