Guido van Rossum guido@python.org writes:
That's what I wanted, but now that you mention it I'm not sure if the warning module can currrently detect from which module a particular C API is called -- it'll probably put the blame on a particular line in the user's code, and then repeat the warning for each *different* line of user code.
What *could* be done, of course, is to give the warning at most once.
Regards, Martin