Rename 'proto' keyword arg to 'protocol' . Greg Ward's suggestion.

This commit is contained in:
Guido van Rossum 2003-02-09 17:16:45 +00:00
parent 0e447664fe
commit ab58904812
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ Protocol versions
Several functions, methods and constructors used for pickling used
to take a positional argument named 'bin' which was a flag,
defaulting to 0, indicating binary mode. This argument is renamed
to 'proto' and now gives the protocol number, still defaulting to 0.
to 'protocol' and now gives the protocol number, still defaulting
to 0.
It so happens that passing 2 for the 'bin' argument in previous
Python versions had the same effect as passing 1. Nevertheless, a