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/2002-April/022192.html below:

[Python-Dev] Deprecating C APIs (Use of PyArg_NoArgs())

[Python-Dev] Deprecating C APIs (Use of PyArg_NoArgs()) [Python-Dev] Deprecating C APIs (Use of PyArg_NoArgs())Guido van Rossum guido@python.org
Wed, 03 Apr 2002 12:51:52 -0500
> If that's possible, I'm +1 on generating a warning for the first
> usage of PyArg_NoArgs(). Would be nice to have the warning include
> the calling module name -- don't know whether that's possible, 
> though (I have next to no experience with the warning framework).

It peeks in the current globals for __name__.  The current globals are
those of the most recent Python module on the stack.  Since it also
gives a line number, you might be able to track down which call it's
referring to.  But it might be somewhat surprising.

--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