Forced naming of parameters in python
- by Mark Mayo
In python you may have a function definition:
def info(object, spacing=10, collapse=1)
which could be called in any of the following ways:
info(odbchelper)
info(odbchelper, 12)
info(odbchelper, collapse=0)
info(spacing=15, object=odbchelper)
thanks to python's allowing of any-order arguments, so…