>>>>> "GvR" == Guido van Rossum <guido@python.org> writes: GvR> I think the plan is to stop recommending the types module -- GvR> maybe deprecating it too. Why? Isn't this still a useful idiom: from types import * ... if isinstance(x, StringTypes): # blah Yah, I know many of the fundamental types are available as builtins, but not all of them. Or are we saying that we'd now rather see the above written as: if isinstance(x, (str, unicode)): # blah ? -Barry
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4