[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']]
```

version 3.7.4 on linux

--
components: Library (Lib)
messages: 354224
nosy: belegnar
priority: normal
severity: normal
status: open
title: csv.reader failed to split string with spaces and quoted delimiter
type: behavior
versions: Python 3.7

___
Python tracker 
<https://bugs.python.org/issue38412>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue38412>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
status: open
title: Invalid regexp should rise exception
versions: Python 3.6

___
Python tracker 
<https://bugs.python.org/issue37687>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com