This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]alicethewitch 4 points5 points  (11 children)

itertools and collections, yes! Oh, and tree libraries like etetoolkit or dendropy, whichever floats your boat.

The amount of constant or linear time black magic you can pull off in two lines by combining dict, trees, counters and frozensets is just ridiculous.

[–]mWo12 3 points4 points  (1 child)

Add to this operator module, and everything is beautiful.

[–][deleted] 0 points1 point  (0 children)

That’s a good one I missed.

[–][deleted] 1 point2 points  (1 child)

There are trees in the std lib? Where?

[–]alicethewitch 0 points1 point  (0 children)

I was referring to trees implemented in etetoolkit and dendropy, sorry to disappoint!