Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign updeprecate mutable locales #38
Open
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
locale
attribute being mutable has caused additional code, complexity, and bugs. The problem is that it is arw
attribute that sets a dozen or so otherrw
attributes. It's difficult to maintain these inherited attributes that should be lazy, publicly writable, and change based on changes tolocale
. The solution is to changelocale
fromrw
toro
. This is backward-incompatible, but there are no known real-world uses of a mutable locale other than convenience in unit tests and examples.locale
method used as a setter and request feedback.rw
toro
and remove related code.Comments and suggestions highly appreciated!