[Python-checkins] CVS: python/dist/src/Doc/lib libcurses.tex,1.31,1.31.2.1 librandom.tex,1.24,1.24.4.1 libstdtypes.tex,1.52,1.52.4.1

Fred L. Drake fdrake@users.sourceforge.net
2001年4月20日 22:56:41 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv29193/lib
Modified Files:
 Tag: release21-maint
	libcurses.tex librandom.tex libstdtypes.tex 
Log Message:
Fix a number of minor markup errors.
Index: libcurses.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libcurses.tex,v
retrieving revision 1.31
retrieving revision 1.31.2.1
diff -C2 -r1.31 -r1.31.2.1
*** libcurses.tex	2001年04月10日 18:49:09	1.31
--- libcurses.tex	2001年04月21日 05:56:39	1.31.2.1
***************
*** 511,516 ****
 Returns a string which is a printable representation of the character
 \var{ch}. Control characters are displayed as a caret followed by the
! character, for example as \verb|^C|. Printing characters are left as they
! are.
 \end{funcdesc}
 
--- 511,516 ----
 Returns a string which is a printable representation of the character
 \var{ch}. Control characters are displayed as a caret followed by the
! character, for example as \code{\textasciicircum C}. Printing
! characters are left as they are.
 \end{funcdesc}
 
Index: librandom.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/librandom.tex,v
retrieving revision 1.24
retrieving revision 1.24.4.1
diff -C2 -r1.24 -r1.24.4.1
*** librandom.tex	2001年02月02日 02:42:31	1.24
--- librandom.tex	2001年04月21日 05:56:39	1.24.4.1
***************
*** 99,106 ****
 Initialize the basic random number generator.
 Optional argument \var{x} can be any hashable object.
! If \var(x) is omitted or \code{None}, current system time is used;
 current system time is also used to initialize the generator when the
 module is first imported.
! If \var(x) is not \code{None} or an int or long,
 \code{hash(\var{x})} is used instead.
 If \var{x} is an int or long, \var{x} is used directly.
--- 99,106 ----
 Initialize the basic random number generator.
 Optional argument \var{x} can be any hashable object.
! If \var{x} is omitted or \code{None}, current system time is used;
 current system time is also used to initialize the generator when the
 module is first imported.
! If \var{x} is not \code{None} or an int or long,
 \code{hash(\var{x})} is used instead.
 If \var{x} is an int or long, \var{x} is used directly.
***************
*** 138,142 ****
 were called \var{n} times, but do so quickly. \var{n} is a
 non-negative integer. This is most useful in multi-threaded
! programs, in conjuction with multiple instances of the \var{Random}
 class: \method{setstate()} or \method{seed()} can be used to force
 all instances into the same internal state, and then
--- 138,142 ----
 were called \var{n} times, but do so quickly. \var{n} is a
 non-negative integer. This is most useful in multi-threaded
! programs, in conjuction with multiple instances of the \class{Random}
 class: \method{setstate()} or \method{seed()} can be used to force
 all instances into the same internal state, and then
Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.52
retrieving revision 1.52.4.1
diff -C2 -r1.52 -r1.52.4.1
*** libstdtypes.tex	2001年02月27日 03:32:35	1.52
--- libstdtypes.tex	2001年04月21日 05:56:39	1.52.4.1
***************
*** 868,874 ****
 \lineiii{\var{a}.clear()}{remove all items from \code{a}}{}
 \lineiii{\var{a}.copy()}{a (shallow) copy of \code{a}}{}
! \lineiii{\var{a}.has_key(\var{k})}
 {\code{1} if \var{a} has a key \var{k}, else \code{0}}
 {}
 \lineiii{\var{a}.items()}
 {a copy of \var{a}'s list of (\var{key}, \var{value}) pairs}
--- 868,880 ----
 \lineiii{\var{a}.clear()}{remove all items from \code{a}}{}
 \lineiii{\var{a}.copy()}{a (shallow) copy of \code{a}}{}
! \lineiii{\var{k} \code{in} \var{a}}
 {\code{1} if \var{a} has a key \var{k}, else \code{0}}
 {}
+ \lineiii{\var{k} not in \var{a}}
+ {\code{0} if \var{a} has a key \var{k}, else \code{1}}
+ {}
+ \lineiii{\var{a}.has_key(\var{k})}
+ {Equivalent to \var{k} \code{in} \var{a}}
+ {}
 \lineiii{\var{a}.items()}
 {a copy of \var{a}'s list of (\var{key}, \var{value}) pairs}
***************
*** 880,888 ****
 \lineiii{\var{a}.values()}{a copy of \var{a}'s list of values}{(2)}
 \lineiii{\var{a}.get(\var{k}\optional{, \var{x}})}
! {\code{\var{a}[\var{k}]} if \code{\var{a}.has_key(\var{k})},
 else \var{x}}
 {(4)}
 \lineiii{\var{a}.setdefault(\var{k}\optional{, \var{x}})}
! {\code{\var{a}[\var{k}]} if \code{\var{a}.has_key(\var{k})},
 else \var{x} (also setting it)}
 {(5)}
--- 886,894 ----
 \lineiii{\var{a}.values()}{a copy of \var{a}'s list of values}{(2)}
 \lineiii{\var{a}.get(\var{k}\optional{, \var{x}})}
! {\code{\var{a}[\var{k}]} if \code{\var{k} in \var{a}},
 else \var{x}}
 {(4)}
 \lineiii{\var{a}.setdefault(\var{k}\optional{, \var{x}})}
! {\code{\var{a}[\var{k}]} if \code{\var{k} in \var{a}},
 else \var{x} (also setting it)}
 {(5)}

AltStyle によって変換されたページ (->オリジナル) /