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


Groups > comp.lang.python > #36229 > unrolled thread

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

Started byChris Rebert <clp2@rebertia.com>
First post2013-01-05 23:06 -0800
Last post2013-01-06 00:11 -0800
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  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

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

FromChris Rebert <clp2@rebertia.com>
Date2013-01-05 23:06 -0800
SubjectRe: os.path.realpath(path) bug on win7 ?
Message-ID<mailman.158.1357455979.2939.python-list@python.org>
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

[toc] | [next] | [standalone]


#36231

FromiMath <redstone-cold@163.com>
Date2013-01-06 00:11 -0800
Message-ID<840d171b-342b-4a85-be0e-e7a7b490c8b6@googlegroups.com>
In reply to#36229
在 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

[toc] | [prev] | [next] | [standalone]


#36232

FromiMath <redstone-cold@163.com>
Date2013-01-06 00:11 -0800
Message-ID<mailman.159.1357459914.2939.python-list@python.org>
In reply to#36229
在 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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web