How do I prevent the 'safely_stringify_for_pudb' attribute tests when inspecting code?
- Dominant language
- Python
- Stars
- 3.2k
- Forks
- 245
- Avg merge
- 13m
- Merged PRs (30d)
- 5
Description
Python 3.6 (2.7 is okay)
My object is setup to capture all `__getattr__` requests and build other objects from it. So when I am inspecting my code, pudb is always running this check and messing things up.
The only solution that I could come up with was to add a method like this:
```python
def safely_stringify_for_pudb(self):
return None
```
There is a better way right?
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue with a Python 3.6 object whose __getattr__ captures every request, then trace the pudb inspection path that checks safely_stringify_for_pudb. Determine how the inspection should handle such objects and verify that debugging no longer triggers unwanted attribute handling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100