[ python-Feature Requests-1156499 ] __getattr__ and __setattr__ methods for modules

SourceForge.net noreply at sourceforge.net
Fri Mar 4 09:24:46 CET 2005


Feature Requests item #1156499, was opened at 2005-03-04 09:24
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1156499&group_id=5470

Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Reinhold Birkenfeld (birkenfeld)
Assigned to: Nobody/Anonymous (nobody)
Summary: __getattr__ and __setattr__ methods for modules

Initial Comment:
Wouldn't it be a good addition if modules supported
__getattr__ and __setattr__?

In this way, one could easily write modules that
dispatch calls to different objects and/or modules,
such as a "global" module.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1156499&group_id=5470


More information about the Python-bugs-list mailing list