Python3でmkstempを使用しようとしています。
Python 3.2.3 (default, Jun 25 2012, 23:10:56)
[GCC 4.7.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from tempfile import mkstemp
>>> mkstemp()
(3, '/tmp/tmp080316')
ドキュメントによると、タプルの最初の要素はファイルハンドルであると想定されています。実際、それはintです。適切なファイルオブジェクトを取得するにはどうすればよいですか?