? Objects/.fileobject.c.swp Index: Objects/fileobject.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Objects/fileobject.c,v retrieving revision 2.193 diff -c -c -r2.193 fileobject.c *** Objects/fileobject.c 7 Nov 2004 14:15:28 -0000 2.193 --- Objects/fileobject.c 23 Dec 2004 08:19:20 -0000 *************** *** 462,467 **** --- 462,472 ---- whence = 0; if (!PyArg_ParseTuple(args, "O|i:seek", &offobj, &whence)) return NULL; + + if (PyFloat_Check(offobj)) + PyErr_Warn(PyExc_DeprecationWarning, + "integer argument expected, got float" ); + #if !defined(HAVE_LARGEFILE_SUPPORT) offset = PyInt_AsLong(offobj); #else