ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
ActivePython 2.4
Python Documentation
Language Reference
3. Data model
3.3 Special method names
3.3.1 Basic customization
3.3.2 Customizing attribute access
3.3.3 Customizing class creation
3.3.4 Emulating callable objects
3.3.5 Emulating container types
3.3.6 Additional methods for emulation of sequence types
3.3.7 Emulating numeric types
3.3.8 Coercion rules

MyASPN >> Reference >> ActivePython 2.4 >> Python Documentation >> Language Reference >> 3. Data model >> 3.3 Special method names
ActivePython 2.4 documentation


3.3.4 Emulating callable objects

__call__( self[, args...])
Called when the instance is ``called'' as a function; if this method is defined, x(arg1, arg2, ...) is a shorthand for x.__call__(arg1, arg2, ...).

See About this document... for information on suggesting changes.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved