Skip to content

MAINT: Tidy up Maskedarray repr - #9913

Merged
charris merged 3 commits into
numpy:masterfrom
eric-wieser:maskedarray-repr-cleanup
Oct 25, 2017
Merged

charris merged 3 commits into
numpy:masterfrom
eric-wieser:maskedarray-repr-cleanup

Conversation

@eric-wieser

Copy link
Copy Markdown
Member

Extracted from #9792, contains part of #9202 as well

@mhvk mhvk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good to get this in. One small comment only.

Comment thread numpy/ma/core.py Outdated
return _new

def __str__(self):
def __insert_masked_print(self):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only seeing this on this second reading, but I would make this "semi-private", i.e., a single underscore, partly just because it seems something people might want to call, but mostly since we don't use the class mangling much elsewhere in numpy

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't use the class mangling much elsewhere in numpy

We give the users great power, they have to provide the great responsibility :)

@eric-wieser I'll make the change and merge if that is OK with you.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go ahead.

@charris
charris merged commit 1e494f1 into numpy:master Oct 25, 2017
@charris

charris commented Oct 25, 2017

Copy link
Copy Markdown
Member

Thanks Eric.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants