> webbrowser.open_new(r"file://C:\__Library\folders\02394 Yale Style 
> Manual\02394 Yale_Style_Manual.htm")
>
> does.
>
> Thank you Ewald, for triggering the solution in my mind!
>
> Now, if anyone can explain why webbrowser.open_new() does the 
> character  substitution thing it was doing (and thus becoming unable 
> to locate the  file in question), I'm eager to hear it.

It's not the function that does it, it's Python itself.

If you just try using print for the two values(with and without 'r') 
you will see
the same effect. It's standard Python string handling.

Alan G. 

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to