Skip to content
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

Add customized repr()/str() output for Mask objects #803

Merged
merged 1 commit into from Feb 12, 2019

Conversation

@charlesej
Copy link
Contributor

@charlesej charlesej commented Feb 7, 2019

This update adds customized output for repr()/str() calls on Mask objects.

Overview of changes:

  • Added a function to the tp_repr field to handle repr() calls. The tp_str field is left as NULL, so that str() calls will convert to repr() calls.

System details:

  • os: windows 10 (64bit)
  • python: 3.7.2 (64bit)
  • pygame: 1.9.5.dev0 (SDL: 1.2.15) at ae1226c

Resolves the "Add customized repr()/str() output for Mask objects" item of #800.

@dlon
dlon approved these changes Feb 10, 2019
@illume illume merged commit 4fd5b76 into pygame:master Feb 12, 2019
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@charlesej charlesej deleted the charlesej:add-mask-repr branch Feb 12, 2019
@dlon dlon mentioned this pull request Mar 23, 2019
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants