Module objectinfo
source code
PySourceInfo - runtime type and source information on Python.
Based on the stack-frames of inspect, main parameter is spos
- stack position.
- spos=1 is caller, spos=2 is caller-of-caller, etc..
- 'r' is a regular expression for 'search()'.
Details see @[local-manuals] or @[https://pythonhosted.org/pysourceinfo/]
Version:
0.1.34
Author:
Arno-Can Uestuensoez
Copyright:
Copyright (C) 2010-2017 Arno-Can Uestuensoez @Ingenieurbuero
Arno-Can Uestuensoez
License:
Artistic-License-2.0 + Forced-Fairplay-Constraints
|
|
|
getcaller_module_name(spos=1)
Name of caller module, else None.
Both approaches for evaluation the actual relative
module name seem to have their own challenges,
module.__name__ and getmodule_name(). |
source code
|
|
|
|
|
|
|
|
|
|
|
getcaller_package_name(spos=1)
Name of first matching package containing the caller.
The package is defined as the the first part
of the module name. Relies on 'inspect'. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuiltinFunctionType = <class 'builtin_function_or_method'>
|
|
BuiltinMethodType = <class 'builtin_function_or_method'>
|
|
MT_BUILTIN = 6
|
|
MT_COMPILED = 2
|
|
MT_COMPILED_DEBUG = 66
|
|
MT_COMPILED_OPT = 10
|
|
MT_COMPILED_OPT1 = 18
|
|
MT_COMPILED_OPT2 = 34
|
|
MT_DIRECTORY = 5
|
|
MT_EXTENSION = 3
|
|
MT_FROZEN = 7
|
|
MT_SOURCE = 1
|
|
MT_UNKNOWN = 0
|
|
ModuleType = <class 'module'>
|
|
PYV34 = 25600
|
|
PYV35Plus = True
|
|
PYVxyz = 26624
|
|
SourceInfoError = <class 'sourceinfo.SourceInfoError'>
|
|
__cached__ = ' b'/local/hd1/home1/data/acue/rd/p-open-deploy/so ...
|
|
__loader__ = <_frozen_importlib_external.SourceFileLoader obje...
|
|
__package__ = ' b'sourceinfo' '
|
|
__spec__ = ModuleSpec(name='sourceinfo.objectinfo', loader=<_f...
|
|
__uuid__ = ' b'9de52399-7752-4633-9fdc-66c87a9200b8' '
|
|
__warningregistry__ = { ' b'version' ' : 0}
|