Skip to content

Cache the outcome of e.g. List[T] #130

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 May 21, 2015 · 1 comment
Closed

Cache the outcome of e.g. List[T] #130

gvanrossum opened this issue May 21, 2015 · 1 comment

Comments

@gvanrossum
Copy link
Member

Instances of e.g. List[T] each time this occurs in an expression ought to be cached to reduce memory consumption. Mark Shannon believes this is really important. I propose we can improve this after the beta-1 release.

@gvanrossum
Copy link
Member Author

I propose not to do this. The PEP now forbids e.g. Node[int]() and recommends using an alias, e.g.

IntNode = Node[int]
x = IntNode()

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

1 participant