tell producing long int

drobinow at drobinow at
Fri Sep 8 21:32:18 CEST 2000

In article <C1VxKhAZaRu5Ew$y at>,
  Robin Becker <robin at> wrote:
> Paul Eddington reports a problem with reportlab caused by tell --> L
> ints
> The machine was an 32 bit SG O2 running IRIX6.3 using python compiled
> with the n32 option. It does appear to be a problem with the tell. As
> you can see below:
> Python 1.5.2+ (#1, Oct 27 1999, 13:48:24) [C] on irix6-n32
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>> f = open('test.dat','w')
> >>> f.write('a test')
> >>> f.tell()
> 6L
> Anyone know if this is a reasonable way to build python or is it a
> property of the os that tell produces L ints?
 In Objects/fileobject.c

	return PyInt_FromLong(offset);
	return PyLong_FromLongLong(offset);

HAVE_LARGEFILE_SUPPORT is determined automatically by configure
(Building with gcc on Irix also gives 6L)

Sent via
Before you buy.

More information about the Python-list mailing list