Skip to content

Implement type-checking dict-used-as-record #1012

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

Closed
gvanrossum opened this issue Nov 26, 2015 · 1 comment
Closed

Implement type-checking dict-used-as-record #1012

gvanrossum opened this issue Nov 26, 2015 · 1 comment

Comments

@gvanrossum
Copy link
Member

Some code uses dicts with a fixed set of keys a lot as a poor-man's struct or record type. If the value types are heterogeneous this is hard to type-check, as code often assumes a given type for a given key. (Namedtuple doesn't really replace this, since it's immutable.)

This is a placeholder issue so I can refer to it -- Jukka has a bit of a design in his head already.

@gnprice
Copy link
Collaborator

gnprice commented Dec 2, 2015

I think this is #985.

@gnprice gnprice closed this as completed Dec 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants