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 ?

Newsgroups comp.lang.python
Date 2013-01-06 00:11 -0800
References <tencent_6C37ED3974F3E81C56E5D98D@qq.com> <mailman.158.1357455979.2939.python-list@python.org>
Subject Re: os.path.realpath(path) bug on win7 ?
From iMath <redstone-cold@163.com>
Message-ID <mailman.159.1357459914.2939.python-list@python.org> (permalink)

Show all headers | 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