-
Notifications
You must be signed in to change notification settings - Fork 76
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
deepcopy in py3k evaluates interpolated strings #188
Comments
Continuing the investigate this. I compared the execution paths between py2.7 and py3.7. The point where it diverges is in
In py2.7, this prints out In py3.7, this prints out: |
having a hard time debugging past this point. It seems like the behavior of |
Ah ha! this all works as expected in python 3.5! So, a change introduced in py3.6 broke things. Perhaps the reworked dictionary? |
Apparently matplotlib ran into this problem last year with their rcparams implementation and I completely missed this: matplotlib/matplotlib#12604 So, this would have been broken on a minor release from cpython. Looking into seeing how configobj can be adapted to fix this problem. |
Alright, I figured out a solution to the following cases: |
while writing up unit tests, I discovered an interesting inconsistency in the existing code in pre-py3.6 versions.
So, it seems that calling dict() on a ConfigObj is different than calling dict() on a Section? Not exactly sure why this is happening. |
I appreciate the investigation here and I'm inclined to get this into 5.1.0 |
Consider the following code example:
In python 2.7, the output is "abc.txt". In python 3.7, the output is 'bar.txt', which is the value of the 'bar' key in the original config object.
The text was updated successfully, but these errors were encountered: