Mark Doukidis wrote: > d = shelve.open("\\myshelve") > ^ >SyntaxError: invalid token > > > > > Sounds like a problem with your script rather then the shelve module, a syntax error is found before any importing is done... Cheers, Guido