/opt/cloudlinux/venv/lib/python3.11/site-packages/guppy/etc
import functools import inspect class property_nondata: '''@property, but using non-data descriptor protocol''' def __init__(self, fget): self.fget = fget functools.update_wrapper(self, fget) def __get__(self, instance, owner=None): return self.fget(instance) class property_exp(property): '''@property, but blacklist tab completers like rlcompleter from getattr''' def __init__(self, fget, *, doc=None): super().__init__(fget) self.__doc__ = doc def __get__(self, instance, owner=None): try: frame = inspect.currentframe() try: frame = frame.f_back if frame.f_globals['__name__'] == 'rlcompleter': return None finally: del frame except Exception: pass return super().__get__(instance, owner)
.
Edit
..
Edit
Cat.py
Edit
Code.py
Edit
Descriptor.py
Edit
FSA.py
Edit
Glue.py
Edit
Help.py
Edit
IterPermute.py
Edit
KanExtension.py
Edit
KnuthBendix.py
Edit
RE.py
Edit
RE_Rect.py
Edit
__init__.py
Edit
__pycache__
Edit
cmd.py
Edit
etc.py
Edit
textView.py
Edit
tkcursors.py
Edit
xterm.py
Edit