Message209519
Since the usage of isinstance could be "isinstance(1, (int, float))", I'm wondering why it doesn't accept "[int, float]", if I do so, it would raise TypeError saying "arg 2 must be a type or tuple of types". What's the difference in effect between a tuple and a list here? (I know a tuple is immutable, but I think it doesn't matter when passing some other types of non-string iterables(yielding strings), am I right? |
|
Date |
User |
Action |
Args |
2014-01-28 09:27:54 | Chen.ZHANG | set | recipients:
+ Chen.ZHANG |
2014-01-28 09:27:54 | Chen.ZHANG | set | messageid: <1390901274.15.0.0556662587348.issue20415@psf.upfronthosting.co.za> |
2014-01-28 09:27:54 | Chen.ZHANG | link | issue20415 messages |
2014-01-28 09:27:53 | Chen.ZHANG | create | |
|