Name of current method
maney at pobox.com
maney at pobox.com
Sun Dec 1 11:14:32 EST 2002
Thomas Guettler <pan-newsreader at thomas-guettler.de> wrote:
> The "pager" will be used in several methods. That's
> why I can't hardcode "foomethod".
Maybe there's some reason this won't work, but it sounds like the
"foomethod" name ought to be a parameter you pass in to the pager,
rather than grovelling for the information like that. The latter
approach is likely to be fragile in the face of changes... and change
is the constant in software development, eh?
More information about the Python-list
mailing list