[New-bugs-announce] [issue4233] open(0, closefd=False) prints 3 warnings

Amaury Forgeot d'Arc report at bugs.python.org
Thu Oct 30 01:08:01 CET 2008


New submission from Amaury Forgeot d'Arc <amauryfa at gmail.com>:

This happens with a recent py3k build:

>>> x = open(0, closefd=False)
>>> del x
C:\dev\python\py3k\lib\io.py:1461: RuntimeWarning: Trying to close 
unclosable fd!
  self.buffer.close()
C:\dev\python\py3k\lib\io.py:389: RuntimeWarning: Trying to close 
unclosable fd!
  self.close()
__main__:1: RuntimeWarning: Trying to close unclosable fd!

Also, there are no unit test for closefd.

----------
components: Interpreter Core
messages: 75337
nosy: amaury.forgeotdarc
priority: critical
severity: normal
status: open
title: open(0, closefd=False) prints 3 warnings
versions: Python 3.0

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


More information about the New-bugs-announce mailing list