A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-May/065490.html below:

[Python-Dev] Arguments and PyInt_AsLong

[Python-Dev] Arguments and PyInt_AsLong [Python-Dev] Arguments and PyInt_AsLongGuido van Rossum guido at python.org
Wed May 31 20:02:06 CEST 2006
file.seek etc. should be changed to use PyNumber_AsIndex or whatever
it's called.

On 5/31/06, Georg Brandl <g.brandl at gmx.net> 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 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
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org
>


-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev mailing list

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