We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It is broken. If you call it directly, you get an incorrect result because of a typo:
>>> lazy_string = lazy_gettext(u'test') >>> lazy_string.__rmod__('Hello %s!') 'Hello %s!test'
But the test in test_lazy_old_style_formatting is actually passing! I guess this is because Python calls str.__mod__('Hello %s!', lazy_string) instead.
str.__mod__('Hello %s!', lazy_string)
This means that LazyString.__rmod__ is probably never used. Maybe just remove it?
LazyString.__rmod__
The text was updated successfully, but these errors were encountered:
A way to call it indirectly:
class MyClass: def __add__(self, other): return "myclass " + other print(MyClass() % lazy_string)
but I don't know if anyone does that in real code
Sorry, something went wrong.
No branches or pull requests
It is broken. If you call it directly, you get an incorrect result because of a typo:
But the test in test_lazy_old_style_formatting is actually passing! I guess this is because Python calls
str.__mod__('Hello %s!', lazy_string)
instead.This means that
LazyString.__rmod__
is probably never used. Maybe just remove it?The text was updated successfully, but these errors were encountered: