[Python-ideas] User-defined literals

Yury Selivanov yselivanov.ml at gmail.com
Fri Jun 5 00:13:50 CEST 2015


On 2015-06-04 5:23 PM, Chris Angelico wrote:
> Huh. Does that imply that Brython has to construct a brand-new integer
> object for absolutely every operation and constant, in case someone
> monkeypatched something?
FWIW, numbers (as well as strings) are immutable in JavaScript.
And there is Object.freeze to make things immutable where you
need that.

Yury


More information about the Python-ideas mailing list