[New-bugs-announce] [issue26607] Rename a parameter in the function PyFile_FromFile

Mansour Moufid report at bugs.python.org
Mon Mar 21 20:57:28 EDT 2016


New submission from Mansour Moufid:

Hi,

The last parameter of the function PyFile_FromFile is named 'close', but is a pointer to a function with the prototype of the 'fclose' function in libc. The mismatch causes confusion for some static analysis tools.

This patch renames the parameter to 'fclose'. Note that everywhere else PyFile_FromFile is called, that argument is always named fclose or pclose (or NULL), this was the one exception.

Thanks for your time.

----------
files: 0001-PyFile_FromFile-Rename-close-parameter-to-fclose.patch
keywords: patch
messages: 262156
nosy: Mansour Moufid
priority: normal
severity: normal
status: open
title: Rename a parameter in the function PyFile_FromFile
type: enhancement
versions: Python 2.7
Added file: http://bugs.python.org/file42239/0001-PyFile_FromFile-Rename-close-parameter-to-fclose.patch

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


More information about the New-bugs-announce mailing list