Module analysis.arguments
Utilities for handling arguments, calls, parameters and functions.
Copyright (C) 2005 Paul Boddie <paul@boddie.org.uk>
This software is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This software is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
You should have received a copy of the GNU General Public License
along with this library; see the file LICENCE.txt If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA
Classes |
Parameters |
A class providing convenience methods giving information about
parameters. |
Function Summary |
|
unify_arguments (args,
star_args,
dstar_args,
function)
Unify the given 'args', 'star_args' and 'dstar_args' with the
parameters from the given 'function' node. |
unify_arguments(args,
star_args,
dstar_args,
function)
Unify the given 'args', 'star_args' and 'dstar_args' with the
parameters from the given 'function' node. Return a tuple consisting of
a namespace dictionary (containing a mapping from parameter names to
argument expressions), a defaults list (containing nodes providing
default values), a star values list (containing nodes providing star
argument values), a dstar values list (containing nodes providing
dstar/keyword argument values).
NOTE: *args and **args are not properly supported yet.
-
|