Python doesn't see the directories I create

Neil Cerutti horpner at yahoo.com
Thu Aug 30 13:59:57 EDT 2007


On 2007-08-30, Steve Holden <steve at holdenweb.com> wrote:
> Neil Cerutti wrote:
>> To me, Python's collection of special-purpose string literal
>> notations is one of its little warts.
>
> Well, it's a wart that's shared with many other languages -
> including, interestingly enough, Microsoft's very own C#, from
> whose documentation the following examples are taken:
>
> string a = "hello, world";                  // hello, world
> string b = @"hello, world";                 // hello, world
> string c = "hello \t world";                // hello     world
> string d = @"hello \t world";               // hello \t world
> string e = "Joe said \"Hello\" to me";      // Joe said "Hello" to me
> string f = @"Joe said ""Hello"" to me";     // Joe said "Hello" to me
> string g = "\\\\server\\share\\file.txt";   // \\server\share\file.txt
> string h = @"\\server\share\file.txt";      // \\server\share\file.txt
> string i = "one\r\ntwo\r\nthree";

Still, that's only two.

> The fact is that some strings are always going to cause
> trouble. Unfortunately programming itself is a task that
> requires a little more knowledge to be applied to the task.

Or fortunately, depending on the dictates of your temperament. ;)

-- 
Neil Cerutti



More information about the Python-list mailing list