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

Incomplete set of aliases for Keys True and False #3

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

Incomplete set of aliases for Keys True and False #3

PFython opened this issue Jun 28, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@PFython
Copy link
Owner

PFython commented Jun 28, 2020

Aliases for True/False in __str__. Given that 1, 1.0, and True are considered equivalent as dictionary keys, it would be helpfully explicit to create all possibilities as aliases regardless of which Key is given initially. Likewise False.

>>> x = CleverDict({True: "Is this?"})

>>> print(x)

CleverDict
    x[True] == x['_True'] == x._True == x[1] == x[1.0] == 'Is this?'
@PFython PFython added the enhancement New feature or request label Jun 28, 2020
@PFython
Copy link
Owner Author

PFython commented Jul 17, 2020

Closed in version 1.5 and higher.

@PFython PFython closed this as completed Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant