[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-02-13 Thread Jeremy Pinto
Jeremy Pinto added the comment: In fact, the issue seems to be coming from open() itself when opening a non-existent directory in write mode: [nav] In [1]: import os ...: nonexixstent_dir = 'not_a_dir/' ...: assert not os.path.exists(nonexixstent_dir

[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-02-13 Thread Jeremy Pinto
New submission from Jeremy Pinto : Issue: If you try to copy a file to a directory that doesn't exist using shutil.copy, a IsADirectory error is raised saying the directory exists. This issue is actually caused when `open(not_a_dir, 'wb') is called on a non-existing dir. Expected behaviour

[issue40562] SEO: differentiate between Python 2 and Python 3 docs on Google SERP

2020-09-19 Thread Pinto
Pinto added the comment: Merci Julien j'ai reussi à régler le même problème rencontré sur mon site https://lesmarketing.fr/agence-seo-montpellier/ -- ___ Python tracker <https://bugs.python.org/issue40

[issue40562] SEO: differentiate between Python 2 and Python 3 docs on Google SERP

2020-06-10 Thread Pinto
Pinto added the comment: I have the same problem on my site https://lesmarketing.fr I deactivated the breadcrumbs, you have found a solution ? -- nosy: +khaled ___ Python tracker <https://bugs.python.org/issue40

[issue36085] Enable better DLL resolution

2020-03-27 Thread David Miguel Susano Pinto
David Miguel Susano Pinto added the comment: I have just found out that commit 2438cdf0e93 which added the winmode argument and the documentation for it disagree. Documentation states that default is zero while the real default in code is None. I have opened PR 19167 on github to address

[issue35338] set union/intersection/difference could accept zero arguments

2018-11-28 Thread David Miguel Susano Pinto
New submission from David Miguel Susano Pinto : set union, intersection, difference methods accept any non-zero number of sets and return a new set instance, like so: >>> a = set([1, 2]) >>> b = set([1, 3]) >>> c = set([3, 5]) >>> set.u