Hum, timestamp and traceback_limit attributed of GroupedStats can also be removed, they are just of the same attribute of the Snapshot class and GroupedStats is created from Snapshot.group_by().
Le 27 oct. 2013 17:26, "Victor Stinner" <victor.stin...@gmail.com> a écrit : > * do you have a better suggestion for GroupedStats.stats attribute or > GroupedStats.statistics() method: "stats" and "statistics" are too > close An option is to modify GroupedStats to inherit from dict, so GroupedStats.stats would be GroupedStats directly. > * should GroupedStats.statistics() and GroupedStats.compare_to() > always sort the result to drop the sort=True parameter? The result is a list which can be bigger than 100,000 items. The question is if it would inefficient to sort the list twice. Another option is to replace sort parameter with a new sort_key parameter (callable), passed to list.sort as the ke parameter. Victor
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com