[ create a new paste ] login | about

Link: http://codepad.org/hA5Fbq20    [ raw code | fork ]

Python, pasted on Nov 3:
1
2
3
4
5
6
7
8
9
>>> s = "((self start < self stop and self step > 0) or (self start > self stop and self step < 0))"
>>> s.count("("), s.count(")")
(3, 3)
>>> x = tokenize(s)
>>> x
'( ( self start < self stop ) and self step > 0 ) or ( self start > self stop ) and self step < 0 ) )'
>>> x.count("("), x.count(")")
(3, 5)
>>> 


Create a new paste based on this one


Comments: