> GvR> I think the plan is to stop recommending the types module -- > GvR> maybe deprecating it too. [BAW] > 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 > > ? You've got a point there. (str, unicode) is no good in the standard library since Python might be compiled without Unicode support. --Guido van Rossum (home page: http://www.python.org/~guido/)
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