Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #59066

Re: Getting globals of the caller, not the defining module

References <5280beb6$0$29976$c3e8da3$5496439d@news.astraweb.com>
Date 2013-11-11 22:34 +1100
Subject Re: Getting globals of the caller, not the defining module
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2369.1384169700.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Mon, Nov 11, 2013 at 10:25 PM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> But since spam is supposed to introspect as much information as possible,
> I don't really want to do that. What (if anything) are my other options?

You're playing with introspection, so I'd look at poking around in the
stack trace. It'll be esoteric, but I think this is the right place to
use it.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Getting globals of the caller, not the defining module Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-11-11 11:25 +0000
  Re: Getting globals of the caller, not the defining module Chris Angelico <rosuav@gmail.com> - 2013-11-11 22:34 +1100
  Re: Getting globals of the caller, not the defining module sg552@hotmail.co.uk - 2013-11-11 04:02 -0800
    Re: Getting globals of the caller, not the defining module Terry Reedy <tjreedy@udel.edu> - 2013-11-11 20:57 -0500
      Re: Getting globals of the caller, not the defining module Rotwang <sg552@hotmail.co.uk> - 2013-11-12 08:29 +0000
    Re: Getting globals of the caller, not the defining module Rotwang <sg552@hotmail.co.uk> - 2013-11-14 20:56 +0000
      Re: Getting globals of the caller, not the defining module Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-11-15 08:23 +0000

csiph-web