From: Richard Kilmer Date: 2003-03-21T12:53:58+09:00 Subject: Re: Strong advantages over Python Even better: File.join('dir1', 'dir2', 'dir3') -rich On Thursday, March 20, 2003, at 09:40 PM, Paul Prescod wrote: >> Some examples of the benefits of pure OOP. I use "have a nice >> day".split >> a fair bit, but Python can do that too so it makes it less enjoyable. >> ;) >> ['dir1', 'dir2', 'filename'].join(File::Separator) might be a better >> example. > > >>> import os > >>> print os.sep > / > >>> os.sep.join(["dir1", "dir2", "dir3"]) > 'dir1/dir2/dir3' > >>> print type(os.sep) >