Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #36232

Re: os.path.realpath(path) bug on win7 ?

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 <redstone-cold@163.com>
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 <mailman.158.1357455979.2939.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=182.242.225.100; posting-account=Z1-aQQoAAADvnuKxr9sysEiuPIcBNfjX
References <tencent_6C37ED3974F3E81C56E5D98D@qq.com> <mailman.158.1357455979.2939.python-list@python.org>
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 <redstone-cold@163.com>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc Python List <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.159.1357459914.2939.python-list@python.org> (permalink)
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

Show key headers only | View raw


在 2013年1月6日星期日UTC+8下午3时06分10秒,Chris Rebert写道:
> 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?
True
> 
> 
> 
> Cheers,
> 
> Chris

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: os.path.realpath(path) bug on win7 ? Chris Rebert <clp2@rebertia.com> - 2013-01-05 23:06 -0800
  Re: os.path.realpath(path) bug on win7 ? iMath <redstone-cold@163.com> - 2013-01-06 00:11 -0800
  Re: os.path.realpath(path) bug on win7 ? iMath <redstone-cold@163.com> - 2013-01-06 00:11 -0800

csiph-web