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

Simple implementation of allowing externally defined formatters #75

Closed
wants to merge 7 commits into from

Conversation

monkut
Copy link

@monkut monkut commented May 23, 2017

I noticed there is a TODO in _PrintResult to provide better handling of output formatting, but this is a quick an easy way to allow end-users to provide their own defined formatters.

For your consideration.

In response to raised issue #74

@googlebot
Copy link
Collaborator

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.

@dbieber
Copy link
Member

dbieber commented Feb 28, 2020

FYI objects that defines a custom __str__ method are now serialized using that custom __str__ method.

@google-cla google-cla bot added the cla: no Author has not signed CLA label Nov 11, 2021
@dbieber
Copy link
Member

dbieber commented Dec 9, 2022

Thanks for the PR. Closing as this is now obsolete.

We eventually added this functionality (years after your original PR) in #345
They key word arg is serialize.

@dbieber dbieber closed this Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: no Author has not signed CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants