~pythonregexp2.7/python/issue2636

« back to all changes in this revision

Viewing changes to Lib/sre_parse.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-06-09 14:36:32 UTC
  • mfrom: (39021.1.402 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080609143632-wwwkx92u1t5l7yd3
Merged in changes from the latest python source snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
        return self.data[index]
140
140
    def __setitem__(self, index, code):
141
141
        self.data[index] = code
142
 
    def __getslice__(self, start, stop):
143
 
        return SubPattern(self.pattern, self.data[start:stop])
144
142
    def insert(self, index, code):
145
143
        self.data.insert(index, code)
146
144
    def append(self, code):