[issue28595] shlex.shlex should not augment wordchars

Evan report at bugs.python.org
Mon Jan 2 08:01:22 EST 2017


Evan added the comment:

I've attached a more complete patch. This takes the conservative approach of retaining all functionality of 3.6 and treating this as a new feature for 3.7. I don't think this is suitable for 3.6.1 given this new behavior contradicts what is currently written in the documentation (though this can be discussed further).

I've also run into a couple of other bugs that I've made separate issues for:

* The example in the documentation mixes up 'Old' and 'New' (issue29133)
* The updated example contains a bug (the '>abc' token should actually be two tokens) (issue29132)

These should both be fixed in 3.6.1 regardless of where this goes.

----------
versions: +Python 3.7
Added file: http://bugs.python.org/file46111/shlex.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28595>
_______________________________________


More information about the Python-bugs-list mailing list