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

Combining CleverDict functionality with other classes #5

Open
PFython opened this issue Jun 28, 2020 · 1 comment
Open

Combining CleverDict functionality with other classes #5

PFython opened this issue Jun 28, 2020 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed wontfix This will not be worked on

Comments

@PFython
Copy link
Owner

PFython commented Jun 28, 2020

It would be great if CleverDict behaviour could be easily 'grafted on' to existing classes using inheritance, without causing recursion or requiring a rewrite/overwrite of the original class.

For example if it were as easy as:

```
>>> class MyDatetime(datetime.datetime, CleverDict):
...     pass

>>> mdt = MyDatetime.now()
>>> mdt.hour
4
>>> mdt['hour']
4
```
@PFython PFython added the enhancement New feature or request label Jun 28, 2020
@PFython PFython closed this as completed Jul 17, 2020
@PFython PFython reopened this Jul 18, 2020
@PFython PFython added the help wanted Extra attention is needed label Dec 5, 2020
@PFython PFython added the wontfix This will not be worked on label Jan 30, 2021
@PFython
Copy link
Owner Author

PFython commented Jan 30, 2021

Labelled as "wontfix" after Version 1.8.0 simply because the main authors don't currently have the time for non essential enhancements. If there's a huge uptake in people using CleverDict and asking for this feature that may change, or if you're reading this why not Fork, develop a solution, and contribute a Pull Request yourself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant