Linux > python > file-I/O ?
Grant Edwards
grante at visi.com
Sat Dec 24 12:07:52 EST 2005
On 2005-12-24, news at absamail.co.za <news at absamail.co.za> wrote:
>>>> f.read(size)
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> NameError: name 'size' is not defined <-- ?? Obj-method unknown ??
>
>
> What's wrong ?
You haven't defined anything named "size".
Assuming you want to read 1024 bytes, try:
size =1024
data = f.read(size)
or, equivalently
data = f.read(1024)
> I read: "The set of such modules is a configuration
> option which also depends on the underlying platform."
OK. Do you have a question regarding that sentence?
> My documenation refers also to Mac & Win installations.
You are correct.
> Is there a linux > python NewsGroup ?
Yes: comp.lang.pythong
--
Grant Edwards grante Yow! My Aunt MAUREEN was
at a military advisor to IKE &
visi.com TINA TURNER!!
More information about the Python-list
mailing list