You are viewing an older version (9.12.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.12.0 / IPython / core / debugger / Pdb / _get_frame_locals

function

IPython.core.debugger:Pdb._get_frame_locals

source: /IPython/core/debugger.py :599

Signature

def   _get_frame_locals ( self frame )

Summary

" Accessing f_local of current frame reset the namespace, so we want to avoid that or the following can happen

Extended Summary

ipdb> foo "old" ipdb> foo = "new" ipdb> foo "new" ipdb> where ipdb> foo "old"

So if frame is self.current_frame we instead return self.curframe_locals

Aliases

  • IPython.core.debugger.Pdb._get_frame_locals