PEP 378: Format Specifier for Thousands Separator

Steven D'Aprano steve+comp.lang.python at pearwood.info
Tue May 21 22:42:56 EDT 2013


On Tue, 21 May 2013 23:22:24 +0300, Carlos Nepomuceno wrote:

> Anyway, is it possible to overload str.__mod__() without deriving a
> class? I mean to have something like:

No, not in Python. If you want to monkey-patch built-in classes on the 
fly, with all the troubles that causes, use Ruby.


-- 
Steven



More information about the Python-list mailing list