[issue37701] shutil.copyfile raises SpecialFileError for symlink to fifo

2021-12-14 Thread Christopher Hunt
Christopher Hunt added the comment: > I expect it to fail if follow_symlinks is True, which is the default value. I > expect it to succeed with follow_symlinks=False, which should create a > shallow copy of just the symlink, regardless of its target. I agree, thanks for the correction.

[issue37701] shutil.copyfile raises SpecialFileError for symlink to fifo

2021-12-11 Thread Eryk Sun
Eryk Sun added the comment: > Raising a SpecialFileError would be OK if `follow_symlinks` was False. I expect it to fail if follow_symlinks is True, which is the default value. I expect it to succeed with follow_symlinks=False, which should create a shallow copy of just the symlink,

[issue37701] shutil.copyfile raises SpecialFileError for symlink to fifo

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue37701] shutil.copyfile raises SpecialFileError for symlink to fifo

2019-12-11 Thread Ashley Whetter
Change by Ashley Whetter : -- keywords: +patch pull_requests: +17050 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16575 ___ Python tracker ___

[issue37701] shutil.copyfile raises SpecialFileError for symlink to fifo

2019-07-28 Thread Christopher Hunt
Christopher Hunt added the comment: Likewise when the destination is a symlink - though in that case the value of `follow_symlinks` should probably not matter. -- ___ Python tracker

[issue37701] shutil.copyfile raises SpecialFileError for symlink to fifo

2019-07-28 Thread Christopher Hunt
New submission from Christopher Hunt : Currently shutil.copyfile raises SpecialFileError when src is a link to a fifo. To reproduce: import os import shutil import tempfile d = tempfile.mkdtemp() fifo = os.path.join(d, 'fifo') link_to_fifo = os.path.join(d,