A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-January/019310.html below:

[Python-Dev] unicode/string asymmetries

[Python-Dev] unicode/string asymmetries [Python-Dev] unicode/string asymmetriesGuido van Rossum guido@python.org
Wed, 09 Jan 2002 09:56:15 -0500
> Jack Jansen writes:
>  > Huh, what did I miss? Why is PyArg_Parse deprecated, and by what
>  > should it be replaced?
> 
>   I think it is only recommended to avoid this as the argument-parsing
> function for an extension function/method; PyArg_ParseTuple() should
> be used instead since it can give better error messages using the
> :funcname syntax for the format string (which is strongly
> recommended!).
> 
>   -Fred

The other problem with PyArg_Parse that PyArg_ParseTuple avoids is
that a function declared as taking N arguments can also be called with
a single tuple of N items.  This is not supposed to happen (you should
use apply or the *args call notation for that).

--Guido van Rossum (home page: http://www.python.org/~guido/)



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