context aware execution
wayne at waynewerner.com
Wed Dec 19 18:01:49 CET 2012
On Thu, 20 Dec 2012, Chris Angelico wrote:
> On Thu, Dec 20, 2012 at 2:57 AM, Bart Thate <feedbackflow at 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.
More information about the Python-list