~pythonregexp2.7/python/issue2636-11

« back to all changes in this revision

Viewing changes to Demo/scripts/markov.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-21 17:53:26 UTC
  • mfrom: (39025.1.14 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080921175326-92vaej2hc3yuecxb
Merged in changes from the core Regexp branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
def tuple(list):
111
111
    if len(list) == 0: return ()
112
112
    if len(list) == 1: return (list[0],)
113
 
    i = len(list)/2
 
113
    i = len(list)//2
114
114
    return tuple(list[:i]) + tuple(list[i:])
115
115
 
116
116
if __name__ == "__main__":