[issue43165] Support the same files with new param in shutil.copyfile

2021-03-18 Thread Milan Balazs
Milan Balazs added the comment: Could you somebody review the PR for this ticket, please? -- ___ Python tracker <https://bugs.python.org/issue43165> ___ ___

[issue43165] Support the same files with new param in shutil.copyfile

2021-02-08 Thread Milan Balazs
Milan Balazs added the comment: Sure, you can use try/except but it would be nice if the "shutil.copyfile" function supports the same files. If I have many files (more thousand), I don't want to check them with a try/except. Furthermore if I want to cover the unexpected exc

[issue43165] Support the same files with new param in shutil.copyfile

2021-02-08 Thread Milan Balazs
Change by Milan Balazs : -- keywords: +patch pull_requests: +23274 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24482 ___ Python tracker <https://bugs.python.org/issu

[issue43165] Support the same files with new param in shutil.copyfile

2021-02-08 Thread Milan Balazs
New submission from Milan Balazs : The "shutil.copyfile" raises a "SameFileError" exception if the src and dts files are the same. There is no option to allow the same files(like in case of shutil.copytree(dirs_exist_ok=False)). For example: import shutil shuti

[issue23163] pdb docs need to contain a statement on threads/multithreaded debugging

2017-01-27 Thread Attila-Mihaly Balazs
Attila-Mihaly Balazs added the comment: Absolutely this. While it is good that there is at least some documentation (at sys.settrace), it is not very explicit nor is it self evident that one should look there (for example the PDB docs don't even mention settrace). -- nosy: +A

[issue28458] from __future__ import print_function does not emulate the flush param from py3k

2016-10-17 Thread Attila-Mihaly Balazs
New submission from Attila-Mihaly Balazs: Doing the following in Python 2.7.12 does not work: from __future__ import print_function print(1, flush=True) It says: "'flush' is an invalid keyword argument for this function" While the following is a perfectly valid python 3k

[issue21496] pyvenv activate_this.py

2016-07-07 Thread Attila-Mihaly Balazs
Attila-Mihaly Balazs added the comment: Hello, A scenario where this would be needed (and where you can't just "execute the script with the python from inside the pyvenv" to get it automatically activate) is when running under mod_wsgi. There sometimes it is needed to activate

[issue19044] getaddrinfo raises near-useless exception

2013-09-20 Thread Balazs
Balazs added the comment: Hi, this is the platform: Linux cloudbackupbr 3.8.0-30-generic #44-Ubuntu SMP Thu Aug 22 20:52:24 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux /bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24

[issue19044] getaddrinfo raises near-useless exception

2013-09-19 Thread Balazs
Changes by Balazs : -- nosy: +balazs ___ Python tracker <http://bugs.python.org/issue19044> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth