Python stack frames goodies.
Python Makefile Ruby
Permalink
Failed to load latest commit information.
frames Put _getframe into it's own module Jun 17, 2012
scripts
.gitignore Add support for tox (http://tox.testrun.org/) Dec 16, 2014
.travis.yml Add .travis.yml for Travis CI Dec 17, 2014
CONTRIBUTORS Bump up the version to 0.2.0 Jan 29, 2013
Guardfile Styles, tests, logos and even more styles... May 27, 2012
LICENSE Add the MIT license May 10, 2012
Makefile Add support for tox (http://tox.testrun.org/) Dec 16, 2014
README Deindent the README Jan 29, 2013
requirements-test.txt Use pytest for testing Dec 16, 2014
setup.py Bump up the version to 0.3.0 Jan 14, 2015
test.py Use pytest for testing Dec 16, 2014
tox.ini Add support for tox (http://tox.testrun.org/) Dec 16, 2014

README

  __                                             
 / _|_ __ __ _ _ __ ___   ___  ___   _ __  _   _ 
| |_| '__/ _` | '_ ` _ \ / _ \/ __| | '_ \| | | |
|  _| | | (_| | | | | | |  __/\__ \_| |_) | |_| |
|_| |_|  \__,_|_| |_| |_|\___||___(_) .__/ \__, |
                                  |_|       |__/ 

What to do when nothing else helps? Walk the stack trace, of course.

Is it a good idea?   | It depends.
Is it slow?          | Terribly.
Is it cool?          | Fuck yeah!

---------------
I want it, now!
---------------

> pip install frames

--------
But how?
--------

>>> import frames

Seriously?           | Okay, okay.

>>> frames.locate_frame(lambda f: 'BOOM' in f.f_locals)

Boom what?           | Meh...

>>> frames.locate_frame(
...     lambda f: f.locals.get('__name__') == '__main__'
... ).locals['BOOM'] = 'Yeah'

Heh?                 | This is getting boring ;(

>>> BOOM
'Yeah'

------------------------------------
But you just wrap the system frames?
------------------------------------

Yep, this is a tiny wrapper. That's all it is.

----------
Thank you!
----------

Goodbye!