Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garrison/python-immutable
Immutable objects in python
https://github.com/garrison/python-immutable
Last synced: about 2 months ago
JSON representation
Immutable objects in python
- Host: GitHub
- URL: https://github.com/garrison/python-immutable
- Owner: garrison
- License: mit
- Created: 2013-07-09T05:33:48.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-11T04:04:29.000Z (over 11 years ago)
- Last Synced: 2024-10-27T20:54:45.314Z (2 months ago)
- Language: Python
- Homepage:
- Size: 129 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
python-immutable
================Immutable objects in python.
Rationale
---------(coming soon)
Usage
-----::
from immutable import immutable_object
class MyClass(immutable_object):
def __init__(self, x):
self.x = xmc = MyClass(3)
print(mc.x)mc.x = 2 # raises TypeError
del mc.x # raises TypeError
mc.y = 3 # raises TypeError