[issue16820] configparser.ConfigParser.clean and .update bugs

2013-01-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset d5c45089df2d by Łukasz Langa in branch '3.3': Misc/NEWS updated to tell about #14590 and #16820 http://hg.python.org/cpython/rev/d5c45089df2d New changeset 7938847b2641 by Łukasz Langa in branch '3.2': Misc/NEWS updated to tell about #16820 http://h

[issue16820] configparser.ConfigParser.clean and .update bugs

2013-01-01 Thread Łukasz Langa
Łukasz Langa added the comment: Breaking section order when using `__setitem__` was a bug and as such was fixed in 3.2.4 and 3.3.1. In the DEFAULTSECT case above someone could potentially use the broken behaviour as a feature so that change was only made for 3.3.1+. In the section order case

[issue16820] configparser.ConfigParser.clean and .update bugs

2013-01-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6f0cee62f0c6 by Łukasz Langa in branch '3.2': configparser: preserve section order when using `__setitem__` (issue #16820) http://hg.python.org/cpython/rev/6f0cee62f0c6 New changeset 2f5320497017 by Łukasz Langa in branch '3.3': Null-merged 3.2 sect

[issue16820] configparser.ConfigParser.clean and .update bugs

2013-01-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset f580342b63d8 by Łukasz Langa in branch '3.3': configparser: preserve section order when using `__setitem__` (issue #16820) http://hg.python.org/cpython/rev/f580342b63d8 New changeset a758f561a280 by Łukasz Langa in branch 'default': Merged section o

[issue16820] configparser.ConfigParser.clean and .update bugs

2013-01-01 Thread Łukasz Langa
Łukasz Langa added the comment: This is a fair point. Stay tuned. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue16820] configparser.ConfigParser.clean and .update bugs

2012-12-31 Thread Wolfgang Scherer
Wolfgang Scherer added the comment: Thanks, works for me. I only noted the discrepancy and did not give it much thought. I will just implement a merge method on top of read_dict. That gives me all options that could be desired :). However, after implementing the entire compatibility layer, I fo

[issue16820] configparser.ConfigParser.clean and .update bugs

2012-12-31 Thread Łukasz Langa
Łukasz Langa added the comment: For the record, the bug that caused the following to be equivalent: parser['DEFAULT'] = {'option': 'value'} parser['DEFAULT'].update({'option': 'value'}) has been fixed for 3.3.1+ only. This way it's going to be easier for users to reason about the fix ("it

[issue16820] configparser.ConfigParser.clean and .update bugs

2012-12-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 459a23083b66 by Łukasz Langa in branch '3.3': Fixes `__setitem__` on parser['DEFAULT'] reported in issue #16820. http://hg.python.org/cpython/rev/459a23083b66 New changeset f6fb5a5748f0 by Łukasz Langa in branch 'default': Merged `parser['DEFAULT'].

[issue16820] configparser.ConfigParser.clean and .update bugs

2012-12-30 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for your report, Wolfgang. The `clean()` method is now fixed. The `update()` situation is more complicated, however. The mapping protocol defines that mapping.update({'a': 'b', 'c': 'd'}) and mapping.update(a='b', c='d') are equivalent to m

[issue16820] configparser.ConfigParser.clean and .update bugs

2012-12-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset dc5adc08f1a8 by Łukasz Langa in branch '3.2': Fixes `parser.clean()` reported in issue #16820. http://hg.python.org/cpython/rev/dc5adc08f1a8 New changeset 4fc2fea807e6 by Łukasz Langa in branch '3.3': Merged `parser.clean()` fix (issue #16820) from

[issue16820] configparser.ConfigParser.clean and .update bugs

2012-12-30 Thread Łukasz Langa
Changes by Łukasz Langa : -- assignee: -> lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue16820] configparser.ConfigParser.clean and .update bugs

2012-12-30 Thread R. David Murray
Changes by R. David Murray : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue16820] configparser.ConfigParser.clean and .update bugs

2012-12-30 Thread Wolfgang Scherer
New submission from Wolfgang Scherer: configparser.ConfigParser.clean() always fails: >>> cfg = configparser.ConfigParser() >>> if not hasattr(configparser.ConfigParser, 'clear'): ... configparser.ConfigParser.clear = configparser_clear_compat >>> cfg.clear() #doctest: +ELLIP