Closed
Description
>>> next(csv.reader([r'2\.5'], escapechar='\\', quoting=csv.QUOTE_NONNUMERIC)) [2.5] >>> next(csv.reader([r'.5'], escapechar='\\', quoting=csv.QUOTE_NONNUMERIC)) [0.5] >>> next(csv.reader([r'\.5'], escapechar='\\', quoting=csv.QUOTE_NONNUMERIC)) ['.5']
It parses numbers with an escaped character in the middle, it parses numbers starting with a dot, but it does not parse numbers starting with an escaped character. The following variants would be more consistent:
- Any escaped character disables parsing field as a number.
- Allow parsing a field starting with an escaped character as a number.
Linked PRs
Metadata
Metadata
Assignees
Labels
No labels
Projects
Status
Done