Skip to content

Double quotes stripped from code by argparse on windows #10091

@davclark

Description

@davclark

I suspect this is a known issue, but it just came up on the rpy2 issue tracker. On windows, argparse appears to strip double quotes out everywhere.

There is an OLD issue on the python issue tracker about problems with double quotes, but the OP couldn't reproduce. I think it's an obscure corner-case, as it's a PITA to get double-quotes to pass through the windows shell to python from the command line.

In any case, is there any interest in fixing this bug at the IPython level? I am less familiar with the nuances of argparse, so I'm starting here. Perhaps it's a bug for the core python devs.

For reference, here's an easy way to elicit the bug on windows (the error is somewhat inscrutable, but you'll see the reported R code is lacking the quotes):

In [1]: %load_ext rpy2.ipython
In [2]: %R formatC(c(3.24, 2.3e-6), format = "f")

Metadata

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