Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:bug': 0.05; 'skip:o 50': 0.07; 'to:addr:comp.lang.python': 0.09; 'bug': 0.10; 'cc:addr:python-list': 0.10; 'sat,': 0.15; "skip:' 30": 0.15; 'cc:name:python list': 0.16; 'report?': 0.16; 'win7': 0.16; 'wrote:': 0.17; 'jan': 0.18; '>>>': 0.18; 'subject:) ': 0.20; 'symbolic': 0.22; 'cheers,': 0.23; 'cc:2**0': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'chris': 0.28; 'subject: ?': 0.30; 'anyone': 0.33; 'received:google.com': 0.34; 'clear': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'should': 0.36; 'does': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'skip:o 20': 0.38; 'link': 0.60; '2013': 0.84; '8bit%:60': 0.84; 'subject:skip:o 10': 0.84 X-Received: by 10.50.179.103 with SMTP id df7mr780187igc.16.1357459908358; Sun, 06 Jan 2013 00:11:48 -0800 (PST) Newsgroups: comp.lang.python Date: Sun, 6 Jan 2013 00:11:47 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=182.242.225.100; posting-account=Z1-aQQoAAADvnuKxr9sysEiuPIcBNfjX References: User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 182.242.225.100 MIME-Version: 1.0 Subject: Re: os.path.realpath(path) bug on win7 ? From: iMath To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Python List X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 40 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357459914 news.xs4all.nl 6866 [2001:888:2000:d::a6]:43642 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36232 =E5=9C=A8 2013=E5=B9=B41=E6=9C=886=E6=97=A5=E6=98=9F=E6=9C=9F=E6=97=A5UTC+8= =E4=B8=8B=E5=8D=883=E6=97=B606=E5=88=8610=E7=A7=92=EF=BC=8CChris Rebert=E5= =86=99=E9=81=93=EF=BC=9A > On Sat, Jan 5, 2013 at 10:55 PM, iMath <2281570025@qq.com> wrote: >=20 > > >=20 > > os.path.realpath(path) bug on win7 ? >=20 > > >=20 > > Temp.link is a Symbolic link >=20 > > Its target location is C:\test\test1 >=20 > > But >=20 > > >>> os.path.realpath(r'C:\Users\SAMSUNG\Temp.link\test2') >=20 > > 'C:\\Users\\SAMSUNG\\Temp.link\\test2' >=20 > > >=20 > > I thought the return value should be ' C:\\test\\test1\\test2' >=20 > > >=20 > > Is it a bug ? anyone can clear it to me ? >=20 >=20 >=20 > What does os.path.islink('C:/Users/SAMSUNG/Temp.link') report? True >=20 >=20 >=20 > Cheers, >=20 > Chris