Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

It could be possible for a descriptor to be specified with multiple aliases

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start with the linked comparison, then inspect the TrackedAttribute constructor and EventRecorder metaclass mentioned in the issue. Verify the example behavior with an attribute name and alias, and confirm that both names expose the same descriptor instance; the issue provides no test file to run.

Written by the indexing model from the issue text.

Description

https://github.com/enthought/python-analytics/compare/enhancements#diff-2f6fddad3e699541f774b0d49e319c44

If the descriptor can be created with multiple alias names in the constructor, the metaclass can handle dropping the same descriptor instance onto the class with the aliased names.

(untested) example:

>>> class SomeEvent(metaclass=EventRecorder):
...     some_value = TrackedAttribute('sv', int, aliases=('someValue',))
... 
>>> event = SomeEvent()
>>> event.some_value = 5
>>> event.someValue
5
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from enthought/python-analytics

All issues in enthought/python-analytics

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.