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

dictutil: key_path支持tuple和list格式. #159

Closed
drmingdrmer opened this issue Nov 29, 2017 · 1 comment
Closed

dictutil: key_path支持tuple和list格式. #159

drmingdrmer opened this issue Nov 29, 2017 · 1 comment
Assignees

Comments

@drmingdrmer
Copy link
Contributor

涉及到的几个函数:

  • get
  • make_getter
  • make_getter_str
  • make_setter

上面这几个函数现在key_path参数是dot分隔的string, 像: "foo.bar", 表示: my_dict["foo"]["bar"].

需要支持tuple/list格式的key_path, 以支持更复杂的字典访问, 类似: ("foo", "bar") 表示: my_dict["foo"]["bar"]

@drmingdrmer drmingdrmer assigned tongwei and 13yu and unassigned tongwei Nov 29, 2017
@tongwei
Copy link
Contributor

tongwei commented Dec 4, 2017

#164

@tongwei tongwei closed this as completed Dec 4, 2017
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

3 participants