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

Self-references and += operator #81

Merged
merged 8 commits into from
May 6, 2016

Conversation

gilles-duboscq
Copy link
Contributor

@gilles-duboscq gilles-duboscq commented May 4, 2016

This PR merges changes by @sanzinger that implement self-referential substitutions and the += operator.

The changes are a bit large so they are probably better reviewed commit by commit.

This would fix #35

@gilles-duboscq gilles-duboscq force-pushed the topic/self-reference branch from fbe6904 to fa7ad25 Compare May 4, 2016 14:46
@coveralls
Copy link

coveralls commented May 4, 2016

Coverage Status

Coverage increased (+0.4%) to 96.182% when pulling fa7ad25 on gilles-duboscq:topic/self-reference into 2411739 on chimpler:master.

@gilles-duboscq
Copy link
Contributor Author

I'm not exactly sure what's going on with coveralls in the py26 job.

@darthbear
Copy link
Member

Thank you @gilles-duboscq ! This looks awesome! I'll review it this week.

continue # If value is present in latest version, don't do anything
if prop_path[0] == key and substitution.optional:
ConfigParser._do_substitute(substitution, None)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sanzinger Really nice implementation for supporting self references! 👍

@darthbear darthbear merged commit f311fba into chimpler:master May 6, 2016
@darthbear
Copy link
Member

Thank you very much @sanzinger and @gilles-duboscq for implementing self reference and += substitutions. Great pull request with elegant code! Just pushed it to pypi: pyhocon==0.3.26 🍻

@gilles-duboscq
Copy link
Contributor Author

No problem.
All the credit goes to @sanzinger on this one. I just tried not to mess up the merge 😉

Thanks for the quick integration.

@sanzinger
Copy link
Contributor

sanzinger commented May 6, 2016

@darthbear, @gilles-duboscq thank you for integrating that stuff. I never found the time to actually share it.

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

Successfully merging this pull request may close these issues.

support for "+=" field separator?
4 participants