Re: context aware execution

Discussion in 'Python' started by Wayne Werner, Dec 19, 2012.

  1. Wayne Werner

    Wayne Werner Guest

    On Thu, 20 Dec 2012, Chris Angelico wrote:

    > On Thu, Dec 20, 2012 at 2:57 AM, Bart Thate <> 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
    Wayne Werner, Dec 19, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    9
    Views:
    696
    Gabriel Genellina
    Nov 14, 2007
  2. Bart Thate

    context aware execution

    Bart Thate, Dec 19, 2012, in forum: Python
    Replies:
    0
    Views:
    113
    Bart Thate
    Dec 19, 2012
  3. Chris Angelico

    Re: context aware execution

    Chris Angelico, Dec 19, 2012, in forum: Python
    Replies:
    0
    Views:
    124
    Chris Angelico
    Dec 19, 2012
  4. Bart Thate

    Re: context aware execution

    Bart Thate, Dec 19, 2012, in forum: Python
    Replies:
    0
    Views:
    87
    Bart Thate
    Dec 19, 2012
  5. Michael Torrie

    Re: context aware execution

    Michael Torrie, Dec 20, 2012, in forum: Python
    Replies:
    0
    Views:
    112
    Michael Torrie
    Dec 20, 2012
Loading...

Share This Page