Fraction: Update Python __repr__

This commit is contained in:
FeRD (Frank Dana)
2020-11-21 15:15:30 -05:00
parent aab6d1cb23
commit 1c8a67333e

View File

@@ -148,7 +148,7 @@
}
std::string __repr__() {
std::ostringstream result;
result << $self->num << ":" << $self->den;
result << "Fraction(" << $self->num << ", " << $self->den << ")";
return result.str();
}
}