Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:bug': 0.05; 'skip:o 50': 0.07; 'issue:': 0.09; 'bug': 0.10; 'cc:addr:python- list': 0.10; "skip:' 30": 0.15; 'cc:name:python list': 0.16; 'win7': 0.16; '\xc3\xa9crit\xc2\xa0:': 0.16; '8bit%:3': 0.17; 'skip:i 40': 0.17; '>>>': 0.18; 'subject:) ': 0.20; 'symbolic': 0.22; 'cc:2**0': 0.23; 'url:bugs': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'looks': 0.26; 'skip:& 60': 0.27; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; '8bit%:25': 0.29; 'url:mailman': 0.29; 'skip:& 10': 0.29; 'subject: ?': 0.30; 'url:python': 0.32; 'url:listinfo': 0.32; 'anyone': 0.33; 'received:google.com': 0.34; 'clear': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'url:org': 0.36; 'should': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'skip:o 20': 0.38; 'url:mail': 0.40; 'link': 0.60; '8bit%:20': 0.62; '2013': 0.84; '8bit%:24': 0.84; 'subject:skip:o 10': 0.84; 'victor': 0.84; '8bit%:42': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=NetLgk31LhxBrY8XMXJNCNmMgRUX1wB8HopNysPvZpM=; b=rnfXNTRKmxfP2xSpCNeMAwxq0JMDomlFZbFxt7kWgHGXddW1nIxeAntuEf8yt8f4wD 9Bnk/rbDKs5DCQLMucULYx/lWBsOxkXrSGfAy1j6DpPWSBPUbTm6Sjt0RVUe6rjebhdb y2zboZv8fkFEhv3EIen0qobk7wYXs4v30TRQ96q+soHFMhMpXIxWgKnMQQFgVndaIlv7 ch+186Mq1C6P/MCJGWAANcn33SoNVk87aod7BlPYT6Z2cFgEi1N5OwKNFwWh7R6r8Fou /W6wU3cl7zM7Npx5IP53LlKKyITIJ7yrcFyDXp+9VyGAty/aMLnAMH32jkY+S719WvHH oQVg== MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 7 Jan 2013 00:40:06 +0100 Subject: Re: os.path.realpath(path) bug on win7 ? From: Victor Stinner To: iMath <2281570025@qq.com> Content-Type: multipart/alternative; boundary=20cf307d01828776f304d2a73b38 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: , Newsgroups: comp.lang.python Message-ID: Lines: 55 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357515609 news.xs4all.nl 6939 [2001:888:2000:d::a6]:45222 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36307 --20cf307d01828776f304d2a73b38 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable It looks like the following issue: http://bugs.python.org/issue14094 Victor Le 6 janv. 2013 07:59, "iMath" <2281570025@qq.com> a =C3=A9crit : > os.path.realpath(path) bug on win7 ? > > Temp.link is a Symbolic link > Its target location is C:\test\test1 > But > >>> os.path.realpath(r'C:\Users\SAMSUNG\Temp.link\test2') > 'C:\\Users\\SAMSUNG\\Temp.link\\test2' > > I thought the return value should be ' C:\\test\\test1\\test2' > > Is it a bug ? anyone can clear it to me ? > > > -- > http://mail.python.org/mailman/listinfo/python-list > > --20cf307d01828776f304d2a73b38 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

It looks like the following issue:
http://bugs.python.org/issue1= 4094

Victor

Le 6 janv. 2013 07:59, "iMath" <2281570025@qq.com> a =C3=A9crit=C2= =A0:
os.path.realpath(path)=C2=A0=C2=A0bug=C2=A0on=C2=A0win7=C2=A0?

Temp.link=C2=A0is=C2=A0a=C2=A0Symbolic=C2=A0link
Its=C2=A0target= =C2=A0location=C2=A0is=C2=A0C:\test\test1
But=C2=A0
>>>=C2= =A0os.path.realpath(r'C:\Users\SAMSUNG\Temp.link\test2')
'C:= \\Users\\SAMSUNG\\Temp.link\\test2'

I=C2=A0thought=C2=A0the=C2=A0return=C2=A0value=C2=A0should=C2=A0be=C2= =A0'=C2=A0C:\\test\\test1\\test2'

Is=C2=A0it=C2=A0a=C2=A0bug= =C2=A0?=C2=A0anyone=C2=A0can=C2=A0clear=C2=A0it=C2=A0to=C2=A0me=C2=A0?
<= br>

--
http://mail.python.org/mailman/listinfo/python-list

--20cf307d01828776f304d2a73b38--