This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vinay.sajip
Recipients eric.araujo, eric.smith, r.david.murray, robodan, vinay.sajip
Date 2012-04-22.11:50:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335095446.4.0.646093883638.issue1521950@psf.upfronthosting.co.za>
In-reply-to
Content
I believe Dan meant that the behaviour of shlex.split() now is different from what it was when he first raised the issue (in July 2006). Looking at the default branch of CPython, this is what I see:

Python 3.3.0a2+ (default:ff6593aa8376, Apr 22 2012, 12:39:08) 
[GCC 4.3.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import shlex
>>> list(shlex.shlex('e;'))
['e', ';']
>>> list(shlex.shlex(">'abc';"))
['>', "'abc'", ';']

Likewise, on the 2.6 branch:

Python 2.6.8+ (unknown, Apr 22 2012, 12:44:43) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import shlex
>>> list(shlex.shlex('e;'))
['e', ';']
>>> list(shlex.shlex(">'abc';"))
['>', "'abc'", ';']

So from what Dan is saying, it would seem that he is saying that shlex behaviour (before my patch being applied) is different now to how he remembers it - not that the patch introduces any incompatibility.

Still, another set of eyeballs on the patch would be good.
History
Date User Action Args
2012-04-22 11:50:46vinay.sajipsetrecipients: + vinay.sajip, eric.smith, robodan, eric.araujo, r.david.murray
2012-04-22 11:50:46vinay.sajipsetmessageid: <1335095446.4.0.646093883638.issue1521950@psf.upfronthosting.co.za>
2012-04-22 11:50:45vinay.sajiplinkissue1521950 messages
2012-04-22 11:50:45vinay.sajipcreate