Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

init() now directly stores a copy of locals(). #163

Merged
merged 1 commit into from
Oct 12, 2015

Conversation

jparise
Copy link
Contributor

@jparise jparise commented Oct 10, 2015

We always start with an empty dict, and the dict.copy() method appears to
be a bit faster than dict.update().

Also, 'self' always exists in locals() so we can just delete that key directly
(instead of calling dict.pop()).

We always start with an empty __dict__, and the dict.copy() method appears to
be a bit faster than dict.update().

Also, 'self' always exists in locals() so we can just delete that key directly
(instead of calling dict.pop()).
lxyu added a commit that referenced this pull request Oct 12, 2015
init() now directly stores a copy of locals().
@lxyu lxyu merged commit ddeeb36 into Thriftpy:develop Oct 12, 2015
@lxyu
Copy link
Contributor

lxyu commented Oct 12, 2015

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants