Re: [Python-Dev] Arguments and PyInt_AsLong

2006-05-31 Thread skip
Guido> ... PyNumber_AsIndex or whatever it's called. Maybe the API is getting a little fat if it doesn't fit comfortably in the BDFL's brain... Does that suggest it might need some streamlining for Py3k? Skip ___ Python-Dev mailing list Python-Dev

Re: [Python-Dev] Arguments and PyInt_AsLong

2006-05-31 Thread Guido van Rossum
file.seek etc. should be changed to use PyNumber_AsIndex or whatever it's called. On 5/31/06, Georg Brandl <[EMAIL PROTECTED]> wrote: > Looking at #1153226, I found this: > > We introduced emitting a DeprecationWarning for PyArg_ParseTuple > integer arguments if a float was given. This doesn't aff

[Python-Dev] Arguments and PyInt_AsLong

2006-05-31 Thread Georg Brandl
Looking at #1153226, I found this: We introduced emitting a DeprecationWarning for PyArg_ParseTuple integer arguments if a float was given. This doesn't affect functions like file.seek which use PyInt_AsLong to parse their argument. PyInt_AsLong calls the nb_int slot which silently converts floats