Changelogs » Access-modifiers

PyUp Safety actively tracks 232,000 Python packages for vulnerabilities and notifies you when to upgrade.

Access-modifiers

0.3.1

Fixed
  
  - Make `disable()` available as `access_modifiers.disable()` instead of `access_modifiers.access_modifiers.disable()`. Fixes [14](https://github.com/fniessink/access-modifiers/issues/14).

0.3.0

Added
  
  - 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](https://github.com/fniessink/access-modifiers/issues/3).

0.2.1

Fixed
  
  - A public method calling a private method calling another private method would raise an AccessException. Fixes [10](https://github.com/fniessink/access-modifiers/issues/10).

0.2.0

Added
  
  - Allow for static private methods. Closes [4](https://github.com/fniessink/access-modifiers/issues/4).

0.1.4

Fixed
  
  - 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](https://github.com/fniessink/access-modifiers/issues/5).

0.1.3

Fixed
  
  - Another small performance improvement by using `sys._getframe()` instead of the inspect module to get the caller's frame. Fixes [2](https://github.com/fniessink/access-modifiers/issues/2).

0.1.2

Fixed
  
  - 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](https://github.com/fniessink/access-modifiers/issues/2).
  
  Added
  
  - Added performance tests. Closes [1](https://github.com/fniessink/access-modifiers/issues/1).

0.1.1

Fixed
  
  - Added PyPI installation instructions.

0.1.0

Added
  
  - Initial release.