Version: 1.0
Seller:
Price:
-
-
System:
Rating:
4.5
4.5
License:
Description - Restrictive APIs for Python
Python has no inherent provision for a restrictive API that blocks accesses to methods and variables outside an allowed set. Inexperienced Python programmers may FAIL to adhere to an agreed-upon API, directly accessing the private internals of a class. Adherence to defined APIs is a good thing. This function allows a class to specify its API, and raise AttributeErrors for disallowed accesses.