You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking into updating the OpenWrt package for iniconfig (from 1.1.1 to 2.0.0), and when I try the example from the readme with 2.0.0 (using the example ini file) I get:
Note that # comment is included with the value of name1 and the second value of name1b. This appears to differ from the output in the readme - is the above the expected/correct output?
@jefferyto as far as i can tell now after research, the behavior you observe is indeed intended, but its introduction was a bit roundabout, a design decission is needed on how to change it now
Activity
RonnyPfannschmidt commentedon Aug 7, 2023
I won't be able to get into this today, does the behavior replicate on a desktop python?
jefferyto commentedon Aug 7, 2023
Yes, I get the same results in a venv on Ubuntu 23.04 (Python 3.11.4).
RonnyPfannschmidt commentedon Aug 7, 2023
wow, seems like this is a allwinner, the bug got pulled in from the pylib codebase in 3ebb68c in 2016 by me
now i gotta figure how that was added/missed in pylib as well
this might end up being a 10 year missed bug
RonnyPfannschmidt commentedon Aug 7, 2023
introduced in pytest-dev/py@ba38736 it seems
RonnyPfannschmidt commentedon Aug 7, 2023
as far as i can tell it seems necessary to elevate this bug to a default feature and allow a "opt out" 😱
RonnyPfannschmidt commentedon Aug 7, 2023
@jefferyto as far as i can tell now after research, the behavior you observe is indeed intended, but its introduction was a bit roundabout, a design decission is needed on how to change it now
jefferyto commentedon Aug 8, 2023
Thanks for investigating - I'm not really a user of this module so I'm okay with whatever resolution is deemed appropriate.
Add IniConfig.parse() classmethod to fix inline comment handling
Add IniConfig.parse() classmethod to fix inline comment handling