[Tutor] slashes in paths

Marc Tompkins marc.tompkins at gmail.com
Mon Jul 22 21:48:05 CEST 2013


On Mon, Jul 22, 2013 at 11:57 AM, Jim Mooney <cybervigilante at gmail.com>wrote:

> I had a bad feeling I'd end up learning Unicode ;')
>
>>
>>
>> It's not as painful as you might think!  Try it - you'll like it!
>> Actually, once you start getting used to working in Unicode by default,
>> having to deal with programs that are non-Unicode-aware feels extremely
>> irritating.
>>
>
> I'll have to, to write a python program to translate the tree output. I
> tried More, but since I have Python(x,y) I gave up after holding down the
> enter key for five minutes. I tried piping More but that didn't work right.
> I probably forgot DOS. but since DOS isn't commonly used, a python program
> would be better anyway.
>

You'd be better off skipping TREE entirely and going pure-Python.  TREE -
being Unicode-naive - can't deal with any foreign-alphabet characters
beyond the few baked in alongside the box-drawing characters; they all get
turned into question marks.  I'm guessing that's not an issue on your own
computer, but if you ever want to deal with files from other people...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130722/0be8c710/attachment-0001.html>


More information about the Tutor mailing list