-
Notifications
You must be signed in to change notification settings - Fork 772
Provide hook to implement __repr__ #808
New issue
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
351d9ff
Provide hook to implement __repr__
koubaa d71a391
Merge branch 'master' into repr
filmor 2a002d7
fix casing
koubaa cf1f1dc
Merge branch 'master' into repr
filmor 1c0984f
Merge branch 'master' into repr
koubaa a5b245b
Merge branch 'master' into repr
filmor 82aea1f
Merge branch 'master' into repr
filmor 502f0c3
Merge branch 'master' into repr
filmor eb4004a
Merge branch 'master' into repr
filmor c6ae6a4
Merge branch 'master' into repr
filmor 0916406
update based on review
koubaa 2fb6a43
fix whitespace
koubaa 9fc5b5f
fix whitespace
koubaa 00b55db
fix
koubaa accc797
Don't use repr in __str__. Clean up unneeded tests
koubaa ff5d96c
fix leak
koubaa 264c78b
Merge branch 'master' into repr
koubaa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix leak
- Loading branch information
commit ff5d96c1c888f6f432689ecfe9190473955eb7c7
There are no files selected for viewing
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Decreasing args reference count actually decreases ob reference count, which marks it as garbage for the GC!
After a while GC frees the object which causes the program to crash if the object is used again.
One fix for this can be adding the line:
Runtime.XIncref(ob);at line 269 (before setting ob to the tuple's first argument).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for catching this. Would you prepare a small PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
1160