[docs] [issue22832] Tweak parameter names for fcntl module

Martin Panter report at bugs.python.org
Sat Mar 21 00:30:39 CET 2015


Martin Panter added the comment:

I object to dropping the brackets from the function signatures. Now it gives the impression that the functions accept keyword arguments:

ioctl(fd, request, arg=0, mutate_flag=True)

but:

>>> ioctl(0, 0, bytearray(), mutate_flag=False)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: ioctl() takes no keyword arguments

There is already a little bit of precedent for this, e.g. the built-in eval() function, but I would prefer using square brackets, or some other non-Python syntax indicator.

----------

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


More information about the docs mailing list