[issue32108] configparser bug: section is emptied if you assign a section to itself

2019-02-16 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32108] configparser bug: section is emptied if you assign a section to itself

2018-06-12 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 33cd058f21d0673253c88cea70388282918992bc by Łukasz Langa (Cheryl 
Sabella) in branch 'master':
bpo-32108: Don't clear configparser values if key is assigned to itself 
(GH-7588)
https://github.com/python/cpython/commit/33cd058f21d0673253c88cea70388282918992bc


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32108] configparser bug: section is emptied if you assign a section to itself

2018-06-10 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
pull_requests: +7210

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32108] configparser bug: section is emptied if you assign a section to itself

2018-04-17 Thread Łukasz Langa

Łukasz Langa  added the comment:

I agree, the fix needs to be changed. What we probably want is to discover this 
kind of assignment and special-case *that*.

--
versions: +Python 3.6, Python 3.7, Python 3.8 -Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32108] configparser bug: section is emptied if you assign a section to itself

2017-11-28 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

PR 4607 doesn't look a correct solution to me. I don't know a precedence of 
calling deepcopy() for a value in __setitem__(). deepcopy() is too heavy, 
calling it can slow down normal cases. Using deepcopy likely means a bad design.

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32108] configparser bug: section is emptied if you assign a section to itself

2017-11-28 Thread Dong-hee Na

Change by Dong-hee Na :


--
nosy: +corona10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32108] configparser bug: section is emptied if you assign a section to itself

2017-11-28 Thread Dong-hee Na

Change by Dong-hee Na :


--
keywords: +patch
pull_requests: +4523
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32108] configparser bug: section is emptied if you assign a section to itself

2017-11-21 Thread Łukasz Langa

Łukasz Langa  added the comment:

Confirmed.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32108] configparser bug: section is emptied if you assign a section to itself

2017-11-21 Thread R. David Murray

Change by R. David Murray :


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32108] configparser bug: section is emptied if you assign a section to itself

2017-11-21 Thread Simon Lambourn

New submission from Simon Lambourn :

If you assign a ConfigParser section back to the parent ConfigParser object 
(say after updating the section), the section is emptied.

(I realise now that you don't need to assign the section back to the parent as 
it's a proxy for the section in the parent already - but still it does not 
behave as you would expect):
code: 
from configparser import ConfigParser
config = ConfigParser()
config['test'] = {'key': 'value'}
section = config['test']
section['key'] = 'different'
print("before: config['test'] is %s" % dict(config['test']))
config['test'] = section
print("after: config['test'] is %s" % dict(config['test']))
# the section is now printed as {}

--
components: Library (Lib)
messages: 306675
nosy: simonltwick
priority: normal
severity: normal
status: open
title: configparser bug: section is emptied if you assign a section to itself
type: behavior
versions: Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com