[PEAK] generic function signature changes
Kevin Dangoor
dangoor at gmail.com
Thu Jun 15 07:26:34 EDT 2006
Am I correct that it is harder to change a generic function's
signature than it is to change an ordinary function's signature? Let's
say you have this function:
def foo(bar)
As an ordinary Python function, you can do this:
def foo(bar, baz=None)
without breaking any subclasses (if this were a method) or anyone else
using the function. But, if you add an additional, even optional,
parameter to a generic function, all of the implementers of that
function need to change as well...
Is that right?
Kevin
--
Kevin Dangoor
TurboGears / Zesty News
email: kid at blazingthings.com
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com
More information about the PEAK
mailing list