Image.open( "C:\test.jpg") is this wrong ?

Tim Williams tim at tdw.net
Mon Aug 27 12:41:53 EDT 2007


On 27/08/07, Simon Brunning <simon at brunningonline.net> wrote:
> On 8/27/07, Carnell, James E <jecarnell at saintfrancis.com> wrote:
>
> > Image.open("C:\test.jpg")
>
> Try:
>
> Image.open(r"C:\test.jpg")
>
> See http://docs.python.org/ref/strings.html

r"C:\test.jpg"

also

"C:\\test.jpg"  or  'C:/test.jpg'



More information about the Python-list mailing list