trouble using "\" as a string

OriginalBrownster originalbrownster at gmail.com
Sat Aug 19 19:04:08 EDT 2006


that stores tempname as "\\"

..


Jim wrote:
> Try using: tempname = "\\"
> Jim
>
>
> OriginalBrownster wrote:
> > Hi there...
> >
> > I'm still pretty new to turbogears. but i have gotten pretty familiar
> > with it
> >
> > i'm just trying to clear something up, i'm having a difficult time
> > using \ when declaring a string expression
> >
> > such as tempname="\"..it says that the line is single qouted.
> >
> > i want this because using python I am pulling in filenames from a
> > mac..thus they are "/" in the pathways..and i want to .split it at the
> > "/" to obtain the filename at the end...but its proving diffucult with
> > this obstacle in the way.
> > 
> > Why is this happening??




More information about the Python-list mailing list