]> granicus.if.org Git - python/commitdiff
From reading the source, it turns out that the setkey() method can
authorBarry Warsaw <barry@python.org>
Mon, 23 Dec 1996 23:34:17 +0000 (23:34 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 23 Dec 1996 23:34:17 +0000 (23:34 +0000)
take an optional string key, but if key is not given, the method does
nothing!  In the rewrite (see upcoming check-in), I left things this
way, but here I document that this is the case.

Doc/lib/librotor.tex
Doc/librotor.tex

index 6befb055908ffba86c6767f4b63e6d8f62b59189..af2a283f62fd450ff5f7901e2771ecad805de993 100644 (file)
@@ -35,8 +35,9 @@ if it is omitted, a default value of 6 will be used.
 Rotor objects have the following methods:
 
 \renewcommand{\indexsubitem}{(rotor method)}
-\begin{funcdesc}{setkey}{}
-Reset the rotor to its initial state.
+\begin{funcdesc}{setkey}{\optional{key}}
+Sets the rotor's key to \var{key}.  If \var{key} is not given, this
+function does nothing\footnote{This is for backwards compatibility.}.
 \end{funcdesc}
 
 \begin{funcdesc}{encrypt}{plaintext}
index 6befb055908ffba86c6767f4b63e6d8f62b59189..af2a283f62fd450ff5f7901e2771ecad805de993 100644 (file)
@@ -35,8 +35,9 @@ if it is omitted, a default value of 6 will be used.
 Rotor objects have the following methods:
 
 \renewcommand{\indexsubitem}{(rotor method)}
-\begin{funcdesc}{setkey}{}
-Reset the rotor to its initial state.
+\begin{funcdesc}{setkey}{\optional{key}}
+Sets the rotor's key to \var{key}.  If \var{key} is not given, this
+function does nothing\footnote{This is for backwards compatibility.}.
 \end{funcdesc}
 
 \begin{funcdesc}{encrypt}{plaintext}