New submission from 嘉乐君子 <chenhaoran1...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue42421>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to