[Python-Dev] Pie-thon benchmark code ready

Guido van Rossum guido at python.org
Wed Dec 31 20:21:27 EST 2003

> >> wondering whether the correctness checks are too much dependent
> >> on details of the representation of objects, especially the order
> >> of keys in a dict repr etc...
> >
> >Probably. :-(
> >
> >I could probably fix that by subclassing dict with something whose
> >repr() sorts the keys -- it doesn't print the few large dicts that it
> >uses, so this should be fine.  The same approach could be used for
> >fixing all repr()-related issues.  I'll leave it to Dan to decide if
> >he wants this to be fixed ASAP or if he's okay with putting it off
> >until later -- I imagine it will take a while before he's got it
> >running on Parrot well enough to hit the first assert...
> Heh. I'm OK with either leaving it as-is if the current ordering is 
> considered correct, or altering the benchmark to guarantee ordering. 
> (Or having the output compared by an external program to guarantee 
> correctness, which is fine as well)

The ordering is supposed to be an unimportant detail.  The external
program solution won't work due to the nature of the benchmark.  I'll
fix the benchmark some time next week.  The fix should be fairly
simple and localized.

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list