[New-bugs-announce] [issue42421] Native open failed to create a file on windows10 when colon exists in the name

嘉乐君子 report at bugs.python.org
Fri Nov 20 23:37:46 EST 2020


New submission from 嘉乐君子 <chenhaoran1991 at gmail.com>:

with open('./pdfs/' + pdf_name, 'wb') as fo:
    fo.write(data)

On Windows10, the native 'open' in Python3.7 failed to create a file if the name contains colon, such as 'FocalMix: Semi-Supervised Learning for 3D Medical Image Detection.pdf'.

----------
components: IO
messages: 381524
nosy: chenhaoran1991
priority: normal
severity: normal
status: open
title: Native open failed to create a file on windows10 when colon exists in the name
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42421>
_______________________________________


More information about the New-bugs-announce mailing list