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 <rep...@bugs.python.org>
<http://bugs.python.org/issue26607>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to