tell producing long int

drobinow at my-deja.com drobinow at my-deja.com
Fri Sep 8 15:32:18 EDT 2000


In article <C1VxKhAZaRu5Ew$y at jessikat.fsnet.co.uk>,
  Robin Becker <robin at jessikat.fsnet.co.uk> 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

#if !defined(HAVE_LARGEFILE_SUPPORT)
	return PyInt_FromLong(offset);
#else
	return PyLong_FromLongLong(offset);
#endif

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


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list