This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xtreak
Recipients bkline, xtreak
Date 2019-09-01.22:51:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567378266.3.0.430763800638.issue38003@roundup.psfhosted.org>
In-reply-to
Content
https://docs.python.org/3.0/whatsnew/3.0.html

> The builtin basestring abstract type was removed. Use str instead. The str and bytes types don’t have functionality enough in common to warrant a shared base class. The 2to3 tool (see below) replaces every occurrence of basestring with str.

For a longer explanation of this and other changes you might find below link useful. In Python 2 str is used to represent both text and bytes. Hence to check the type is str in python 2 you have to check it to be basestring and then check it to be unicode. In python 3 all strings are unicode with str and bytes being two different types. Hence there is no basestring and unicode string since they are both unified to be str itself in Python 3.

https://portingguide.readthedocs.io/en/latest/strings.html

Hope this helps.
History
Date User Action Args
2019-09-01 22:51:06xtreaksetrecipients: + xtreak, bkline
2019-09-01 22:51:06xtreaksetmessageid: <1567378266.3.0.430763800638.issue38003@roundup.psfhosted.org>
2019-09-01 22:51:06xtreaklinkissue38003 messages
2019-09-01 22:51:06xtreakcreate