Source code for itertools

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Mon Aug 30 22:14:29 EDT 2010


In message <9aa266f0-be9b-4c9a-bfbd-6cdfc86ad2c8 at t20g2000yqa.googlegroups.com>, vsoler wrote:

> I'm interested in studying the itertools source code, especially the
> permutations function.
> 
> However, I cannot find the library. Where could I find it?

ldo at theon:python> apt-get source python3.1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Need to get 12.0MB of source archives.
Get:1 http://ftp.nz.debian.org sid/main python3.1 3.1.2+20100829-1 (dsc) [1,776B]
Get:2 http://ftp.nz.debian.org sid/main python3.1 3.1.2+20100829-1 (tar) [11.8MB]
Get:3 http://ftp.nz.debian.org sid/main python3.1 3.1.2+20100829-1 (diff) [239kB]                  
Fetched 12.0MB in 28s (417kB/s)                                                                    
dpkg-source: info: extracting python3.1 in python3.1-3.1.2+20100829
dpkg-source: info: unpacking python3.1_3.1.2+20100829.orig.tar.gz
dpkg-source: info: applying python3.1_3.1.2+20100829-1.diff.gz
ldo at theon:python> find . -iname \*itertools\*
./python3.1-3.1.2+20100829/Modules/itertoolsmodule.c
./python3.1-3.1.2+20100829/Lib/test/test_itertools.py
./python3.1-3.1.2+20100829/Lib/lib2to3/fixes/fix_itertools_imports.py
./python3.1-3.1.2+20100829/Lib/lib2to3/fixes/fix_itertools.py
./python3.1-3.1.2+20100829/Doc/library/itertools.rst




More information about the Python-list mailing list