Skip to content

Latest commit

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

python-access

Access modifiers for instance methods of python classes.

Modifiers

  • private — private methods are accesible only within the class in which they are declared.
  • protected — protected methods are accesible from within the class in which they are declared, and from within any class derived from that class.
  • public — public methods have no restrictions on access (decorator does nothing).

Usage

from access import private, protected
class A:
@private
def private_method(self):
pass
@protected
def protected_method(self):
pass

About

Access modifiers for python methods

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages