Saving (unusual) linux filenames

MRAB python at
Tue Aug 31 20:57:33 CEST 2010

On 31/08/2010 19:33, Nobody wrote:
> On Tue, 31 Aug 2010 18:13:44 +0100, MRAB wrote:
>>>>> this works for "normal" paths but as soon as i have a path that does
>>>>> include a "," it breaks. The problem now is that (afaik) linux allows
>>>>> every char (aside from "/" and null) to be used in filenames. The only
>>>>> solution i can think of is using null as a seperator, but there have to
>>>>> a cleaner version ?
>>>> You could use a tab character '\t' instead.
>>> That just breaks with a different set of filenames.
>> How many filenames contain control characters? Surely that's a bad idea.
> It may be a bad idea, but it's permitted by the OS.
So are viruses. :-)

More information about the Python-list mailing list