Author rougeth
Recipients rougeth
Date 2019-03-16.20:25:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Reading the documentation for `` I noticed that there were a typo in the `flags` argument, it was documented as `flag`, in plural form.

The same typo was present for ``, but in this case, `flag` makes more sense than `flags`, since the function accepts only one option as a flag.

I opened a PR [1] fixing both typos, but I’d like to discuss if makes sense to rename the argument on `` from `flags` to `flag`. As point out by  @remilapeyre, this change would be backwards compatible, since we cannot use the function with keyword arguments.

>>>‘foo’, flags=‘r’, mode=438)
Traceback (most recent call last):
  File “<stdin>”, line 1, in <module>
TypeError: open() takes no keyword arguments

What do you folks think about it?

1 -
Date User Action Args
2019-03-16 20:25:09rougethsetrecipients: + rougeth
2019-03-16 20:25:09rougethsetmessageid: <>
2019-03-16 20:25:09rougethlinkissue36322 messages
2019-03-16 20:25:09rougethcreate