All notable changes to access-modifiers will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Make
disable()
available asaccess_modifiers.disable()
instead ofaccess_modifiers.access_modifiers.disable()
. Fixes #14.
- Added
access_modifiers.disable()
to disable access checks, e.g. in production. This method should be called before any access modifier decorators are compiled, so somewhere at the start of your program. Closes #3.
- A public method calling a private method calling another private method would raise an AccessException. Fixes #10.
- Allow for static private methods. Closes #4.
- Make the access modifiers work when called from a dict comprehension, list comprehension, lambda, or other code block that gets its own frame. Fixes #5.
- Another small performance improvement by using
sys._getframe()
instead of the inspect module to get the caller's frame. Fixes #2.
- Improved performance. Creating methods with an access modifier is now a factor 2-3 slower than without access modifier. Invoking methods with an access modifier is a factor 10-20 slower than methods without access modifier. Fixes #2.
- Added performance tests. Closes #1.
- Added PyPI installation instructions.
- Initial release.