~pythonregexp2.7/python/issue2636-01+09-02

« back to all changes in this revision

Viewing changes to Lib/UserString.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-22 00:16:16 UTC
  • mfrom: (39022.1.34 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080922001616-p1wdip9lfp0zl5cu
Merged in changes from the Atomic Grouping / Possessive Qualifiers branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
        warnpy3k('the class UserString.MutableString has been removed in '
151
151
                    'Python 3.0', stacklevel=2)
152
152
        self.data = string
153
 
    def __hash__(self):
154
 
        raise TypeError, "unhashable type (it is mutable)"
 
153
 
 
154
    # We inherit object.__hash__, so we must deny this explicitly
 
155
    __hash__ = None
 
156
 
155
157
    def __setitem__(self, index, sub):
156
158
        if isinstance(index, slice):
157
159
            if isinstance(sub, UserString):