[Patches] [ python-Patches-806246 ] use basestring where possible

SourceForge.net noreply at sourceforge.net
Wed Sep 17 01:52:04 EDT 2003


Patches item #806246, was opened at 2003-09-14 18:52
Message generated for change (Comment added) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=806246&group_id=5470

Category: Library (Lib)
>Group: Python 2.4
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: George Yoshida (quiver)
Assigned to: Nobody/Anonymous (nobody)
Summary: use basestring where possible

Initial Comment:
This patch replaces isinstance(foo, (str, unicode)) 

with isinstance(foo, basestring).

This will make the scripts cleaner, faster and less 

error prone.



Apparently, this patch applies to Python >= 2.3.

----------------------------------------------------------------------

>Comment By: Raymond Hettinger (rhettinger)
Date: 2003-09-17 00:52

Message:
Logged In: YES 
user_id=80475

Applied the change for doctest, pkgutil, and 

test.test_textwrap.



csv needs to remain Py2.2 compatible.

I'm not inclined to change anything in the platmac tree 

because that group of users is highly sensitive to small 

changes.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=806246&group_id=5470



More information about the Patches mailing list