Unable to extract Python source code using Windows

Scott David Daniels scott.daniels at acm.org
Wed May 17 00:07:26 CEST 2006


Elric02 at rogers.com wrote:
> Scott ,
> I tried downloading for different archives, (different versions of
> Python) I can't believe they are all garbled.  But they all don't work
> with WinZip.
> 
OK, against my better judgment (you haven't shown your work so far):

I get an md5 for python-2.4.3.tar.bz2 of:
          141c683447d5e76be1d2bd4829574f02

Next read about the tarfile module, where you may discover:

     import tarfile
     archive = tarfile.TarFile.open('python-2.4.3.tar.bz2', 'r:bz2')

might give you something interesting.


-- 
-Scott David Daniels
scott.daniels at acm.org



More information about the Python-list mailing list