[Python-Dev] Arguments and PyInt_AsLong (original) (raw)
Georg Brandl g.brandl at gmx.net
Wed May 31 19:22:33 CEST 2006
- Previous message: [Python-Dev] Python Benchmarks
- Next message: [Python-Dev] Arguments and PyInt_AsLong
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 to ints.
Is that acceptable, should PyInt_AsLong not accept other numbers or should the functions be changed?
Georg
- Previous message: [Python-Dev] Python Benchmarks
- Next message: [Python-Dev] Arguments and PyInt_AsLong
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]