tell producing long int

Andrew Kuchling akuchlin at mems-exchange.org
Fri Sep 8 16:01:32 EDT 2000


drobinow at my-deja.com writes:
> HAVE_LARGEFILE_SUPPORT is determined automatically by configure
> (Building with gcc on Irix also gives 6L)

Returning a long integer causes problems if you do something like:
pos1 = f.tell()
  ....
pos2 = f.tell()
padding = (pos2-pos1) * ' '

Some patches to 1.6/2.0 were added to allow long integers in places
where integers were previously required, so that something like 6L*'a'
will actually work.

--amk



More information about the Python-list mailing list