[issue33428] pathlib.Path.glob does not follow symlinks

2020-04-29 Thread Danya Alexeyevsky


Danya Alexeyevsky  added the comment:

I can reproduce the bug with Linux and python 3.7.5:

```
Python 3.7.5 (default, Apr 19 2020, 20:18:17) 
[GCC 9.2.1 20191008] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pathlib import Path
>>> Path('a/b').mkdir(parents=True)
>>> Path('c/d').mkdir(parents=True)
>>> Path('a/c').symlink_to('../c')
>>> Path('e').symlink_to('c')
>>> list(Path('.').rglob('*'))
[PosixPath('e'), PosixPath('c'), PosixPath('a'), PosixPath('c/d'), 
PosixPath('a/c'), PosixPath('a/b')]
```

Expected result:

```
[PosixPath('e'), PosixPath('e/d'), PosixPath('c'), PosixPath('a'), 
PosixPath('c/d'), PosixPath('a/c'), PosixPath('a/c/d'), PosixPath('a/b')]
```

--
nosy: +Danya.Alexeyevsky

___
Python tracker 
<https://bugs.python.org/issue33428>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23042] Python 2.7.9 ctypes module doesn't build on FreeBSD x86

2015-03-13 Thread Danya Alexeyevsky

Danya Alexeyevsky added the comment:

Faced the same problem on FreeBSD.

I confirm: applying the reversed patch fixed it.

Thanks!

--
nosy: +Danya.Alexeyevsky

___
Python tracker 
<http://bugs.python.org/issue23042>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com