]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Update example for the type() function to use the currently accepted
authorFred Drake <fdrake@acm.org>
Fri, 1 Nov 2002 21:34:39 +0000 (21:34 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 1 Nov 2002 21:34:39 +0000 (21:34 +0000)
commit80ee73809a550153426d8de841092aecd67aad32
treec350a4c8e5dff80413cf1121de2ec5296e817ec6
parent551a1565f8455129cfb5001d8e85c6e77f93254b
Update example for the type() function to use the currently accepted
preference of using "is" instead of "==" to compare types, use
built-in names where available, and point to the isinstance()
function.
Closes SF bug #632196.
Doc/lib/libfuncs.tex