Restrictive APIs for Python

Restrictive APIs for Python 1.0

Restrictive APIs for Python 1.0 Download Summary

  • Language: Python
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • License: Other Free / Open Source License - Python License
  • Databases: N/A
  • Downloads: 349
  • Released: Jun 7, 2007

Restrictive APIs for Python 1.0 Description

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 script contains a  function that allows a class to specify its API, and raise AttributeErrors for disallowed aify its A

Restrictive APIs for Python 1.0 Keywords

Restrictive APIs for Python Bookmark

Hyperlink code:
Hyperlink for Forum code:

Restrictive APIs for Python 1.0 Script Download Notice

Top 4 Download periodically updates information of Restrictive APIs for Python 1.0 script from the developer, but some information may be slightly out-of-date.

Our script download links are directly from our mirrors or publisher's website. Restrictive APIs for Python 1.0 torrent files or shared files from free file sharing and free upload services, including Rapidshare, MegaUpload, YouSendIt, MailBigFile, DropSend, HellShare, HotFile, FileServe, MediaMax, zUpload, MyOtherDrive, SendSpace, DepositFiles, Letitbit, LeapFile, DivShare or MediaFire, are not allowed!

Public and protected attribute access

This script presents a way to introduce proper attribute access protection levels using a generic proxy object. By default all attributes are "protected" in the C sense and can ... public using either a function decorator or a class attribute. ...
Python

Simplified attribute accessors using overloading

This script presents an ideom for simplified accessors, that combines typical getter and setter functionality of an attribute into a single overloaded method, that instead of getATTRIBUTE and setATTRIBUTE can now just be called ATTRIBUTE. When called without arguments it acts as a getter and retrieves the attribute's value. When called with arguments, the attribute is ...
Python

Real class methods in Python

This script demonstrates 'real' class methods, like they are known from Smalltalk. Class methods implicitely receive the actual class as the first parameter. They are inherited by subclasses, and may as well be overridden. Class methods may return anything, although they are particularly ...
Python

Yet another Set class for Python

This script is a pure Pythonic implementation of a set class. The syntax and methods implemented are, for the most part, borrowed from PEP 218. ...
Python

First Class Enums in Python

... qualified value access. Most propoqualifiedor an enum in python attempt to solve the issue with a single class. However, fact is that enum has a dual nature: It declares a new anonimous type *and* all possible instances (values) of that type at ...
Python