]> granicus.if.org Git - python/commit
Update example for the type() function to use the currently accepted
authorFred Drake <fdrake@acm.org>
Fri, 1 Nov 2002 21:33:44 +0000 (21:33 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 1 Nov 2002 21:33:44 +0000 (21:33 +0000)
commit9482d2591a89ebd5f5c79fa22dffe8b9db8a45d9
tree3aa2998f29cb34fe72c9bbc3f5a6dc54db49c6bf
parent57bc5fa60a25661237861b3d3c9941ca8f5dbfd7
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