• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(273)  |  Call(251)  |  Derive(0)  |  Import(22)
_getframe([depth]) -> frameobject

Return a frame object from the call stack.  If optional integer depth is
given, return the frame object that many calls below the top of the stack.
If that is deeper than the call stack, ValueError is raised.  The default
for depth is zero, returning the frame at the top of the call stack.

This function should be used for internal and specialized
purposes only.

src/p/y/python-cookbook-HEAD/cb2_examples/cb2_6_20_sol_1.py   python-cookbook(Download)
    def super(cls, *args, **kwargs):
        frame = inspect.currentframe(1)
        self = frame.f_locals['self']
        methodName = frame.f_code.co_name
        method = getattr(super(cls, self), methodName, None)
        if inspect.ismethod(method):
            return method(*args, **kwargs)

src/d/r/dramatis-0.1.1/examples/telephone/third/run.py   dramatis(Download)
#!/usr/bin/env python
 
import inspect
import sys
import os.path
 
sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..', '..', '..', 'lib' ) ]
sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..' ) ]

src/d/r/dramatis-0.1.1/examples/telephone/sixth/run.py   dramatis(Download)
#!/usr/bin/env python
 
import inspect
import sys
import os.path
 
sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..', '..', '..', 'lib' ) ]
sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..' ) ]

src/d/r/dramatis-0.1.1/examples/telephone/seventh/run.py   dramatis(Download)
import sys
import os.path
 
sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..', '..', '..', 'lib' ) ]
sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..' ) ]
 
from logging import warning

src/d/r/dramatis-0.1.1/examples/telephone/second/run.py   dramatis(Download)
#!/usr/bin/env python
 
import inspect
import sys
import os.path
 
sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..', '..', '..', 'lib' ) ]
sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..' ) ]

src/d/r/dramatis-0.1.1/examples/telephone/fourth/run.py   dramatis(Download)
#!/usr/bin/env python
 
import inspect
import sys
import os.path
 
sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..', '..', '..', 'lib' ) ]
sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..' ) ]

src/d/r/dramatis-0.1.1/examples/telephone/first/run.py   dramatis(Download)
#!/usr/bin/env python
 
import inspect
import sys
import os.path
 
sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..', '..', '..', 'lib' ) ]
sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..' ) ]

src/d/r/dramatis-0.1.1/examples/telephone/fifth/run.py   dramatis(Download)
#!/usr/bin/env python
 
import inspect
import sys
import os.path
 
sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..', '..', '..', 'lib' ) ]
sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..' ) ]

src/d/r/dramatis-0.1.1/examples/im/single/wxchat.py   dramatis(Download)
#!/usr/bin/env python
 
import inspect
import sys
import os.path
 
sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..', '..', '..', 'lib' ) ]

src/d/r/dramatis-0.1.1/examples/telephone/mangler.py   dramatis(Download)
    def _words(cls):
        try:
            return cls._word_list
        except:
            f = os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), "3esl.txt" )
            f = open(f)
            cls._word_list = [ l[0:-1] for l in f ]

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next