Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #72933 > unrolled thread
| Started by | Ned Batchelder <ned@nedbatchelder.com> |
|---|---|
| First post | 2014-06-07 18:20 -0400 |
| Last post | 2014-06-07 18:20 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: How to use imported function to get current globals Ned Batchelder <ned@nedbatchelder.com> - 2014-06-07 18:20 -0400
| From | Ned Batchelder <ned@nedbatchelder.com> |
|---|---|
| Date | 2014-06-07 18:20 -0400 |
| Subject | Re: How to use imported function to get current globals |
| Message-ID | <mailman.10864.1402179672.18130.python-list@python.org> |
On 6/7/14 1:40 PM, 1989lzhh wrote: > Here is the code > m1.py > def f(): > print globals() > > m2.py > from m1 import f > f()# how to get current module's globals? > Looking at the code you have posted in your two messages so far, it seems like you are building something very interesting and ambitious. Do you mind talking a bit about what it is? -- Ned Batchelder, http://nedbatchelder.com
Back to top | Article view | comp.lang.python
csiph-web