On Thu, 20 Dec 2012, Chris Angelico wrote:

On Thu, Dec 20, 2012 at 2:57 AM, Bart Thate <feedbackf...@gmail.com> wrote:
I want in a function or method determine the context of my caller and adapt
the functionality accordingly.

First off, please don't! Your code will be *extremely* confusing.

Usually, the best way to adapt to your caller's environment is to be
passed a parameter that specifies the change.

Or assume that the caller is smart enough to determine which one of the functions to call, and provide them, with good names.

-W
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to