python3 -m pip install -U privates.pypy -3 -m pip install -U privates.pyfrom privates import private
@private
class Hello:
__readonly__ = "bar",
def __init__(self):
self.bar = "hello world!"
hello = Hello()
print(hello.bar) # hello world!
hello.bar = "goodbye, world :(" # AccessErrorprivates.py is distributed under the terms of the MIT license.