From the verb to pickle:
vegetables, such as cauliflowers, onions, etc, preserved in vinegar, brine, etc
It is Python objects, preserved for later use. The name was taken from the Modula-3 concept, a language that inspired many Python features. Also see the Module-3 Pickle documentation.
I suspect Guido picked the name because:
- it is better than the first name he thought of (flatten, see this old usenet post announcing it)
- funny names are better than drab ones, in tradition with the Monty Python background of the language
- there is a nice alliteration going on there with the P's (Python Pickles)
- you put pickles (in jars) on a
shelve
, a module added to the library in the same commit.
If you ever get hold of Guido's time machine you could travel back to November 1994 and ask him yourself why he picked that specific name. I do notice that Ken Mannheimer already uses the term pickled objects a mere 10 days after the announcement of flatten
as part of the follow-up discussion, probably referencing to the Modula-3 inspiration for the concept, and the name must've stuck.