We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
Thank you for this tool and your work around the debugger!
I found an issue with this combination:
from objprint import op op(b"", print_methods=True, honor_existing=False)
Traceback
Traceback (most recent call last): File "bug.py", line 3, in <module> op(b"", print_methods=True, honor_existing=False) File "/lib/python3.12/site-packages/objprint/objprint.py", line 117, in __call__ self._sys_print(self.objstr(obj, **kwargs), file=file) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/objprint/objprint.py", line 132, in objstr return self._objstr(obj, memo, indent_level=0, cfg=cfg) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/objprint/objprint.py", line 191, in _objstr return self._get_custom_object_str(obj, memo, indent_level, cfg) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/objprint/objprint.py", line 286, in _get_custom_object_str return self._get_pack_str(elems, obj, indent_level, cfg) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/objprint/objprint.py", line 383, in _get_pack_str elems = list(elems) ^^^^^^^^^^^ File "/lib/python3.12/site-packages/objprint/objprint.py", line 282, in <genexpr> (_get_method_line(attr) for attr in sorted(methods)), ^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/objprint/objprint.py", line 233, in _get_method_line f"{set_color(attr, COLOR.GREEN)}{inspect.signature(getattr(obj, attr))}" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/cpython-3.12.8-macos-aarch64-none/lib/python3.12/inspect.py", line 3345, in signature return Signature.from_callable(obj, follow_wrapped=follow_wrapped, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/cpython-3.12.8-macos-aarch64-none/lib/python3.12/inspect.py", line 3085, in from_callable return _signature_from_callable(obj, sigcls=cls, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/cpython-3.12.8-macos-aarch64-none/lib/python3.12/inspect.py", line 2602, in _signature_from_callable return _signature_from_builtin(sigcls, obj, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/cpython-3.12.8-macos-aarch64-none/lib/python3.12/inspect.py", line 2392, in _signature_from_builtin raise ValueError("no signature found for builtin {!r}".format(func)) ValueError: no signature found for builtin <built-in method capitalize of bytes object at 0x1052021f8>
python/cpython#123473
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
Thank you for this tool and your work around the debugger!
I found an issue with this combination:
Traceback
python/cpython#123473
The text was updated successfully, but these errors were encountered: