Message238736
| Author |
martin.panter |
| Recipients |
ashkop, brett.cannon, docs@python, martin.panter, python-dev, r.david.murray, serhiy.storchaka |
| Date |
2015年03月20日.23:30:39 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1426894239.4.0.40636070893.issue22832@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|