Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__getattr__ and __setattr__ methods for modules #41653

Closed
birkenfeld opened this issue Mar 4, 2005 · 2 comments
Closed

__getattr__ and __setattr__ methods for modules #41653

birkenfeld opened this issue Mar 4, 2005 · 2 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@birkenfeld
Copy link
Member

BPO 1156499
Nosy @birkenfeld, @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2009-02-16.01:02:24.003>
created_at = <Date 2005-03-04.08:24:44.000>
labels = ['interpreter-core', 'type-feature']
title = '__getattr__ and __setattr__ methods for modules'
updated_at = <Date 2009-02-16.01:02:24.001>
user = 'https://github.com/birkenfeld'

bugs.python.org fields:

activity = <Date 2009-02-16.01:02:24.001>
actor = 'georg.brandl'
assignee = 'none'
closed = True
closed_date = <Date 2009-02-16.01:02:24.003>
closer = 'georg.brandl'
components = ['Interpreter Core']
creation = <Date 2005-03-04.08:24:44.000>
creator = 'georg.brandl'
dependencies = []
files = []
hgrepos = []
issue_num = 1156499
keywords = []
message_count = 2.0
messages = ['61191', '82200']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'georg.brandl']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = 'test needed'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue1156499'
versions = ['Python 3.1', 'Python 2.7']

@birkenfeld
Copy link
Member Author

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.

@birkenfeld birkenfeld added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement labels Mar 4, 2005
@birkenfeld
Copy link
Member Author

This won't be done without a PEP anyway.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant