[Tracker-discuss] [issue660] Find a new bug in Python 3

Berker Peksag metatracker at psf.upfronthosting.co.za
Mon Aug 20 12:26:33 EDT 2018


Berker Peksag <berker.peksag at gmail.com> added the comment:

> In windows, we always give a path using '\' and python 3 can correctly dispose
> it just as we using '/' in Linux. But if you offer 
> a path in windows with a '\' followed as 'r'. Everyting will goes wrong.

You need to use raw strings to avoid this. Replace

    "C:\Program Files (x86)\Graphviz2.38\lib\release\lib"

with

    r"C:\Program Files (x86)\Graphviz2.38\lib\release\lib"

See https://blog.lerner.co.il/avoiding-windows-backslash-problems-with-pythons-raw-strings/ for more details about raw strings.

This tracker is for issues with bugs.python.org. Please use Stack Overflow or python-list to ask usage questions.

----------
assignedto: abarnert -> 
nosy: +berker.peksag
status: unread -> resolved

_______________________________________________________
PSF Meta Tracker <metatracker at psf.upfronthosting.co.za>
<http://psf.upfronthosting.co.za/roundup/meta/issue660>
_______________________________________________________


More information about the Tracker-discuss mailing list