Add repr for plugins#14463
Merged
Merged
Conversation
See test results for failed build of commit 2edae701da |
seanbudd
approved these changes
Dec 21, 2022
| return self.productVersion | ||
|
|
||
| def __repr__(self): | ||
| return "<%r (appName %r, process ID %s) at address %x>"%(self.appModuleName,self.appName,self.processID,id(self)) |
Member
There was a problem hiding this comment.
is removing the address information intended?
Collaborator
Author
There was a problem hiding this comment.
Yes. I've never seen a case where having the address in repr made any sense. I can easily restore it though.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to issue number:
None
Summary of the issue:
Several plugin types, such as addon objects and drivers, have a default repr that makes it impossible to identify the addon from the python console without further inspection.
Description of user facing changes
When inspecting addons, drivers and appModules from the python console, the repr will be different.
Description of development approach
Added
__repr__method to several classesTesting strategy:
Tested inspection of the objects using the python console.
Known issues with pull request:
None known
Change log entries:
For Developers
Code Review Checklist: