Specifing arguments type for a function
K.S.Sreeram
sreeram at tachyontech.net
Tue Jun 20 07:30:07 EDT 2006
bruno at modulix wrote:
> if type(arg) is type([]):
Just a tiny nitpick....
You can just use 'list' instead of 'type([])'
if type(arg) is list :
# blah blah
Regards
Sreeram
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20060620/75b1a67d/attachment.sig>
More information about the Python-list
mailing list