[Python-ideas] User-defined literals

random832 at fastmail.us random832 at fastmail.us
Fri Jun 5 14:28:46 CEST 2015

On Thu, Jun 4, 2015, at 22:11, Yury Selivanov wrote:
> I know. Although you can't mutate the inner-value of Number or
> String objects, you can only attach properties.

You can shadow valueOf, which gets you close enough for many purposes.

More information about the Python-ideas mailing list