Aug. 18, 2016
3:29 p.m.
On Fri, Aug 19, 2016 at 1:25 AM, Steve Dower <steve.dower@python.org> wrote:
open('test\uAB00.txt', 'wb').close() import glob glob.glob('test*') ['test\uab00.txt'] glob.glob(b'test*') [b'test?.txt']
The Unicode character in the second call to glob is missing information. You can observe the same results in os.listdir() or any function that matches its result type to the parameter type.
Apologies if this is just noise, but I'm a little confused by this. The second call to glob doesn't have any Unicode characters at all, the way I see it - it's all bytes. Am I completely misunderstanding this? ChrisA