[New-bugs-announce] [issue24196] Fail to create file if name starts with prn.

Boris report at bugs.python.org
Fri May 15 00:01:13 CEST 2015


New submission from Boris:

>>> f=open('prn.txt','w')
Traceback (most recent call last):
  File "<pyshell#80>", line 1, in <module>
    f=open('prn.txt','w')
FileNotFoundError: [Errno 2] No such file or directory: 'prn.txt'

Names that fail:
prn.
prn.txt
prn.yourmmama.txt
...

Names that do not fail:
prn
prn_.txt
npr.txt
...

Happens on Windows 7, Python3.3, both 32 bit and 64 bit
This should be easy to replicate.

----------
components: IO
messages: 243219
nosy: borisompol
priority: normal
severity: normal
status: open
title: Fail to create file if name starts with prn.
type: behavior
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24196>
_______________________________________


More information about the New-bugs-announce mailing list