On Sat, Feb 12, 2011 at 7:25 PM, Peter Otten <__pete...@web.de> wrote:
> Jean-Daniel wrote:
>
>> Hello,
>>
>> I am writing a small framework where the user which writes a function
>> can expect some global variable to be set in the function namespace.
>>
>> The user has to write a function like thi
Jean-Daniel wrote:
> Hello,
>
> I am writing a small framework where the user which writes a function
> can expect some global variable to be set in the function namespace.
>
> The user has to write a function like this:
> """
> # function.py
> from framework import, command, run
>
> @command
>
Hello,
I am writing a small framework where the user which writes a function
can expect some global variable to be set in the function namespace.
The user has to write a function like this:
"""
# function.py
from framework import, command, run
@command
def myfunc():
print HOST
if __name__==