Commit 86f365c7 authored by Rudi Chen's avatar Rudi Chen

Replace 100 with 101 in the inner loop for debugging.

It's easier to tell the two constants apart if they are different.
parent 8c6a9696
...@@ -31,7 +31,7 @@ def p(x): ...@@ -31,7 +31,7 @@ def p(x):
return [hex(ord(i)) for i in x] return [hex(ord(i)) for i in x]
s = u"\u20AC" # euro sign s = u"\u20AC" # euro sign
print p(u"\N{EURO SIGN}") print p(u"\N{EURO SIGN}")
print p(s) print p(s)
print p(s.encode("utf8")) print p(s.encode("utf8"))
print p(s.encode("utf16")) print p(s.encode("utf16"))
print p(s.encode("utf32")) print p(s.encode("utf32"))
...@@ -51,7 +51,7 @@ for i in xrange(100): ...@@ -51,7 +51,7 @@ for i in xrange(100):
print repr(BaseException().__unicode__()) print repr(BaseException().__unicode__())
gc.collect() gc.collect()
# do some allocations: # do some allocations:
for j in xrange(100): for j in xrange(101):
[None] * j [None] * j
print u'' in '' print u'' in ''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment