Skip to content
Snippets Groups Projects
Commit f4284d94 authored by Vincent Breitmoser's avatar Vincent Breitmoser
Browse files

In DomainSpecificString, override __repr__ in addition to __str__

For some reason, string interpolation on a DomainSpecificString object
like "%r" % (domainSpecificStringObj) fails under PyPy, because the
default __repr__ implementation wants to iterate over the object. I'm
not sure why that happens, but overriding __repr__ instead of __str__
fixes this problem, and is arguably the more appropriate thing to do
anyways.
parent d1e56cfc
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment