argument list

John J. Lee jjl at pobox.com
Sun Dec 28 20:55:47 EST 2003


"Phil Hornby" <phil.hornby at accutest.co.uk> writes:
> I am working on a solution embedding Python in an app that will looks for
> specific string combination within the function names to determine if a
> handler for an event exists; I have been able to extract the function names
> and find all of the 'fields' of interest. What I am concerned about,
> however, is that they could have the wrong argument profile, as specific
> handlers will have specific function arguments - can I find out what
> arguments a specific functions takes from the C-API? As I don't seem to be
> able to find anything...but I could be just being blind...
[...]

First, maybe what you really want is just the equivalent of
func(*args, **kwds)?  (don't remember off the top of my head how to do
that)

Or maybe what you're missing is that you can just use different method
naming conventions for different kinds of handler?


John




More information about the Python-list mailing list