[Wisp-cvs] wisp/users/dig bits.py,1.16,1.17
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2003-04-27 12:28:53
|
Update of /cvsroot/wisp/wisp/users/dig In directory sc8-pr-cvs1:/tmp/cvs-serv1746 Modified Files: bits.py Log Message: fixed a type dichotomy in Bits.__setitem__ Index: bits.py =================================================================== RCS file: /cvsroot/wisp/wisp/users/dig/bits.py,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- bits.py 27 Apr 2003 12:12:08 -0000 1.16 +++ bits.py 27 Apr 2003 12:28:49 -0000 1.17 @@ -65,8 +65,8 @@ else: start, stop, step = index, None, 1 if start == None: # emit - if isinstance(value, int) or isinstance(value, long): - this.emit_single_item(step, value) - else: - for v in value: this.emit_single_item(step, value) + if isinstance(value, tuple) or isinstance(value, list): + for v in value: + this.emit_single_item(step, v) + else: this.emit_single_item(step, value) else: this.set_single_item(start, step, value) |