How to add function return value
- From: HYRY <ruoyu0088@xxxxxxxxx>
- Date: Fri, 30 May 2008 18:21:43 -0700 (PDT)
I need to write functions that return locals() as follows,
def func1():
a = 1
return locals()
def func2():
b = 2
return locals()
Can I write a decorator that it can automately do this conversion
def func1()
a = 1
--->
def func1():
a = 1
return locals()
.
- Follow-Ups:
- Re: How to add function return value
- From: Raymond Hettinger
- Re: How to add function return value
- Prev by Date: Re: How to covert ASCII to integer in Python?
- Next by Date: Re: SMS sending and receiving from website?
- Previous by thread: Importing modules from packages with relative imports
- Next by thread: Re: How to add function return value
- Index(es):
Relevant Pages
|