[CentralOH] basestring not found in Learning Python

jep200404 at columbus.rr.com jep200404 at columbus.rr.com
Thu Feb 5 15:10:13 CET 2015


On Thu, 5 Feb 2015 15:19:57 +0800, iynaix <iynaix at gmail.com> wrote:

> Use isinstance(x, basestring) instead of isinstance(x, str) for python 2.x

Thanks. This seems to not be explained in Learning Python.
I am surprised that I am not able to find an instance of basestring in 
Learning Python 5th edition. 


More information about the CentralOH mailing list