It could be possible for a descriptor to be specified with multiple aliases
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
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
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from enthought/python-analytics
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
enthought/python-analytics#9 · 1 comment ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 25/100
All issues in enthought/python-analytics
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
learningequality/ricecooker#747 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
run-llama/llama_index#23199 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
KhronosGroup/glTF-Blender-IO#2769 ·