Skip to content

Insert a space between value and inline comment in config files #29

Open
@smosanu

Description

Hello! I would like to adopt the DRAMsim3 configuration files as a standard for defining memories in a python-based framework. There is one tiny issue. The python configparser has the option to ignore inline comments, but there is a bug, and it only works when the value and the comment are delimited by a space character. I tried a way around, but the easiest fix is to add a space. :)

config = configparser.ConfigParser(inline_comment_prefixes=';')
tRPRE = 1 ; read preamble
tRPRE = 1; read preamble - this fails because there is no space between 1 and ;

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions