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

vars(namedtuple) doesn't work any longer #2

Open
fotisj opened this issue Jul 12, 2016 · 1 comment
Open

vars(namedtuple) doesn't work any longer #2

fotisj opened this issue Jul 12, 2016 · 1 comment

Comments

@fotisj
Copy link
Owner

fotisj commented Jul 12, 2016

calling vars on a namedtuple seems to be broken in the last Python versions. Basically they removed the dict from namedtuples.
redo the calls on vars(const) with OrderedDict(zip(const._fields, const))

@thvitt
Copy link
Collaborator

thvitt commented Jul 12, 2016

You probably rather want an enum instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants