Author fperez
Recipients belopolsky, benjamin.peterson, cgwalters, cvrebert, dexen, eric.araujo, fperez, mark.dickinson, mcepl, nwerneck, r.david.murray, vstinner
Date 2010-07-26.04:35:40
SpamBayes Score 2.36965e-07
Marked as misclassified No
Message-id <1280118948.27.0.388300795057.issue1170@psf.upfronthosting.co.za>
In-reply-to
Content
Here is an illustration of the problem with a simple test case (the value of the posix flag doesn't make any difference):

Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import shlex
>>> list(shlex.shlex('ab'))
['ab']
>>> list(shlex.shlex(u'ab', posix=True))
['a', '\x00', '\x00', '\x00', 'b', '\x00', '\x00', '\x00']
>>> list(shlex.shlex(u'ab', posix=False))
['a', '\x00', '\x00', '\x00', 'b', '\x00', '\x00', '\x00']
>>>
History
Date User Action Args
2010-07-26 04:35:49fperezsetrecipients: + fperez, mark.dickinson, belopolsky, vstinner, dexen, benjamin.peterson, cgwalters, mcepl, eric.araujo, r.david.murray, nwerneck, cvrebert
2010-07-26 04:35:48fperezsetmessageid: <1280118948.27.0.388300795057.issue1170@psf.upfronthosting.co.za>
2010-07-26 04:35:46fperezlinkissue1170 messages
2010-07-26 04:35:41fperezcreate