1. Home
  2. Computing & Technology
  3. Python
Python Blog

From Al Lukaszewski, for About.com

Which to Use: shelve or pickle?

Thursday May 22, 2008
Reading comp.lang.python recently, I found a thread initiated by Guillaume Bog which amounted to the question:
Which is best to use: shelve or pickle?
As Gabriel Genellina notes, shelve imports from pickle. Therefore, importing pickle directly can cut overhead when storing only a few items.
Explore Python
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Python

©2009 About.com, a part of The New York Times Company.

All rights reserved.