would be nice: import from archive

Dan Perl dperl at rogers.com
Sat Aug 28 00:02:16 CEST 2004


I thought about submitting a recipe but I couldn't think of a way to use it
in a good code 'snippet'.  I am using the zipimport feature now to save
several configuration files together in a zip file (so I can have many
configurations saved in a convenient format, better than a new directory for
each configuration).  That would be more of an example for using multiple
configurations but, anyway, it doesn't make for a short, well-contained
example.  Sorry, Alex.

BTW, there are two books on Python that I keep on my Safari bookshelf:
'Python Cookbook' and 'Learning Python'.  So my jab was made will all the
respect I can muster.  I am really looking forward to the second edition,
recipe on zipimport or not.

Dan

"Alex Martelli" <aleaxit at yahoo.com> wrote in message
news:1gj7a9r.g7ec5a1g89rj0N%aleaxit at yahoo.com...
> Dan Perl <dperl at rogers.com> wrote:
>    ...
> > Alright, alright!  And given the fact that it was added only in 2.3,
that
> > explains why I couldn't find any mention of the feature in 'Python
> > Cookbook', the 1st ed.  I'm looking forward to seeing it mentioned in
the
> > 2nd ed. ;-)
>
> If somebody submits a good recipe about it, I'll be overjoyed to add it
> (not sure what chapter -- 'files'?  'system administration'?  'programs
> about programs'? -- ah well, I'll find a spot!-).
>
> In the 2nd Edition of the _Nutshell_, when THAT comes (don't hold your
> breath!-), I'll write it up just like I will for all the new delights
> since 2.2 -- but for the Cookbook I'm supposed to use recipes that
> people do submit to the online cookbook site... OK, I and my co-editors
> _do_ perform a lot of editing and merging, and occasionally do add a
> recipe or three, but mostly it IS the book you all have written, with
> over a hundred authors covering the subjects THEY think matter...
>
>
> Alex





More information about the Python-list mailing list