Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:209.85.223': 0.03; 'subject:bug': 0.05; 'skip:o 50': 0.07; '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; 'message-id:@mail.gmail.com': 0.27; '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; 'header:Received:5': 0.40; 'link': 0.60; '2013': 0.84; 'sender:addr:chris': 0.84; 'subject:skip:o 10': 0.84; 'to:none': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:cc:content-type; bh=8Eh5m9i4FehdYaOVsdL4EqYz23jPEUCz3lVFinfwutU=; b=eR01hWHAoHBgMPPwwBz5TwLXT9c7IOcFVq3e8RwVpglQOsTo+zCqRqNG/CoDls/fwF 8+ckMGK7gqeuKjzsBZezxYy2xGXSPrUKnrNebO4sa+hSrMF+VcQjX0Wm5g1ewe2jFmsR KS6cDmlbVWN7PBCGG5j85F6AgmLJGK+JGhuP8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:cc:content-type :x-gm-message-state; bh=8Eh5m9i4FehdYaOVsdL4EqYz23jPEUCz3lVFinfwutU=; b=isQPUdhCRJMrHuYYlJ9zQFzrQcN83TFVaD3wGuJQwtNRp/2DxhvmW2/KH7fKbhOVrG yytsZo0Pbx+Lqs5vosgo5QiqTEvmNkh8JztViORkbhE6y1FloxcZNVzc/Z0MnpXq7pKW xmFivJHaNjwJWhibo3TJdVjCsLW3D8MoFuOiqHvu4aGEILYfZuBCnfR5ZUIN7Xsn00lp nh0ztQmYwvt7CNAgBdPYFjchHDjgs1rmDwARMMzRmDl7S30efRS/dQ/5XkJPhD2vrdWP y/vBpxNK5tWS/t+3gYgghK9b7Q0kmU9We3rzeFSb00JPjXbbgXxfgygOxBXh4H6dWbmG epcg== MIME-Version: 1.0 Sender: chris@rebertia.com In-Reply-To: References: Date: Sat, 5 Jan 2013 23:06:10 -0800 X-Google-Sender-Auth: qiBw-0XFTvTvcMkgJQ_nw-XVgtA Subject: Re: os.path.realpath(path) bug on win7 ? From: Chris Rebert Cc: Python List Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQnBhQZOftahkz07ZxnbTG3ATzH4M4iSjuAi5Zg+qLGOyB/T42RqNJG9YGjE67UO2/oK3jpc 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357455979 news.xs4all.nl 6908 [2001:888:2000:d::a6]:38346 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36229 On Sat, Jan 5, 2013 at 10:55 PM, iMath <2281570025@qq.com> wrote: > > 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 ? What does os.path.islink('C:/Users/SAMSUNG/Temp.link') report? Cheers, Chris