[issue38412] csv.reader failed to split string with spaces and quoted delimiter

2019-10-09 Thread belegnar
belegnar added the comment: Yes, https://docs.python.org/3/library/csv.html#csv.Dialect.skipinitialspace helps Sorry -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue38412] csv.reader failed to split string with spaces and quoted delimiter

2019-10-08 Thread belegnar
New submission from belegnar : ``` >>> list(csv.reader(['param1,"param21,param22",param3'])) [['param1', 'param21,param22', 'param3']] >>> list(csv.reader(['param1, "param21,param22", param3'])) [['param1', ' "param21', 'param22"', ' param3']] ``

[issue37687] Invalid regexp should rise exception

2019-07-25 Thread belegnar
New submission from belegnar : `re.error` should be rised on `re.compile("string{data}")` because manual says only numbers are valid within `{}` -- components: Regular Expressions messages: 348458 nosy: belegnar, ezio.melotti, mrabarnett priority: normal severity: normal st