Commit 297bac33 authored by Guido van Rossum's avatar Guido van Rossum

Use the pprint module to print dictionaries. It happens to print the

keys in sorted order, which makes the output independent from the hash
table order (which can differ bewteen Python versions).
parent 91eb1a8d
......@@ -4,4 +4,4 @@ test_MultiMapping
3
2
{'spam': 3}
{'spam': 1, 'eggs': 2}
{'eggs': 2, 'spam': 1}
from pprint import pprint
from MultiMapping import *
m=MultiMapping()
......@@ -12,8 +13,8 @@ m.push({'spam':3})
print m['spam']
print m['eggs']
print m.pop()
print m.pop()
pprint(m.pop())
pprint(m.pop())
try:
print m.pop()
......
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