Titus Brown <titus at caltech.edu> writes: > -> > Apparently file.seek doesn't have this DeprecationWarning though.. > -> > Strange, that. > -> > >>> f.seek(3.6) > -> > >>> f.tell() > -> > 3L > -> > -> That's a bug. Who'll fix it? > > Added: > > + if (PyFloat_Check(offobj)) > + PyErr_Warn(PyExc_DeprecationWarning, > + "integer argument expected, got float" ); > > see attached diff. I also attached it to the patch at SourceForge, > with a comment, just to keep the record straight. You should check the return value of PyErr_Warn in case the user passed -Werror on the command line. > This seems like a reasonable resolution to patch #1067760, to me... I guess I could look at that -- but when I'm not on dialup at my parents' house... Cheers, mwh -- I love the way Microsoft follows standards. In much the same manner that fish follow migrating caribou. -- Paul Tomblin -- http://home.xnet.com/~raven/Sysadmin/ASR.Quotes.html
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4