[Python-Dev] Pie-thon benchmark code ready

Dan Sugalski dan at sidhe.org
Wed Dec 31 20:16:00 EST 2003


At 4:50 PM -0800 12/31/03, Guido van Rossum wrote:
>  > 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)

-- 
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan at sidhe.org                         have teddy bears and even
                                       teddy bears get drunk



More information about the Python-Dev mailing list