[Pythonmac-SIG] Mach-O MacPython IDE!!!

Nathan Heagy nathan@vividworks.com
Fri, 21 Dec 2001 09:46:56 -0600 (CST)


> >> I suppose the problems with slash delimited paths could therefore be
> >> solved by changing the FSSpec_New code to first create an FSRef and
> >> then convert it to an FSSpec.
> >>
> >
> > How would FSSpec_New know if you are passing a unix path or a mac path?
> > The API for those two is different. And all possible unix paths are
> > possible mac paths; on the mac / is legal in filenames and : is the
> > path delimiter, and on unix vice versa. So guessing that "/hello/world"
> > is a unix path would be hasty.

This is a problem that Carbon/Cocoa has as well. Carbon expects ':'
delimited paths and Cocoa '/', as I understand it. Carbon does ':'->'/'
translation automagically.

Is there any reason for python to behave any differently?

Nathan