src/eric7/DebugClients/Python/DebugConfig.py

Wed, 22 Nov 2023 19:42:16 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 22 Nov 2023 19:42:16 +0100
branch
eric7
changeset 10332
7308cfc6e558
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
permissions
-rw-r--r--

Debugger
- Implemented a solution for showing the attributes of a class with invalid or not available yet value (see issue 516).

# -*- coding: utf-8 -*-

# Copyright (c) 2005 - 2023 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Module defining type strings for the different Python types.
"""


SpecialAttributes = (
    "__bases__",
    "__class__",
    "__dict__",
    "__doc__",
    "__mro__",
    "__name__",
    "__qualname__",
    "__subclasses__",
)

BatchSize = 200
ConfigQtNames = ("PyQt5.", "PyQt6.", "PySide2.", "PySide6.", "Shiboken.EnumType")

ConfigKnownQtTypes = (
    ".QByteArray",
    ".QPoint",
    ".QPointF",
    ".QLabel",
    ".QPushButton",
    ".QRect",
    ".QRectF",
    ".QSize",
    ".QSizeF",
    ".QColor",
    ".QDate",
    ".QTime",
    ".QDateTime",
    ".QDir",
    ".QFile",
    ".QFont",
    ".QUrl",
    ".QModelIndex",
    ".QRegExp",
    ".QRegularExpression",
    ".QAction",
    ".QKeySequence",
    ".QDomAttr",
    ".QDomCharacterData",
    ".QDomComment",
    ".QDomDocument",
    ".QDomElement",
    ".QDomText",
    ".QHostAddress",
    ".EnumType",
)

NonExpandableTypes = (
    "int",
    "float",
    "bool",
    "NoneType",
    "bytes",
    "function",
    "object",
    "builtin_function_or_method",
    "classmethod_descriptor",
    "weakref",
    "wrapper_descriptor",
    "method_descriptor",
    "property",
    "method",
    "getset_descriptor",
    "member_descriptor",
)

UnknownAttributeValueMarker = "<dbg: unknown attribute value>"

eric ide

mercurial