From: Barry Warsaw Date: Mon, 23 Dec 1996 23:34:17 +0000 (+0000) Subject: From reading the source, it turns out that the setkey() method can X-Git-Tag: v1.5a1~653 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f308c0f1fc079189b5d3b27ef86e0e27a5c9ac42;p=thirdparty%2FPython%2Fcpython.git From reading the source, it turns out that the setkey() method can 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. --- diff --git a/Doc/lib/librotor.tex b/Doc/lib/librotor.tex index 6befb055908f..af2a283f62fd 100644 --- a/Doc/lib/librotor.tex +++ b/Doc/lib/librotor.tex @@ -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} diff --git a/Doc/librotor.tex b/Doc/librotor.tex index 6befb055908f..af2a283f62fd 100644 --- a/Doc/librotor.tex +++ b/Doc/librotor.tex @@ -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}