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@theon
ython> 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:1http://ftp.nz.debian.orgsid/main python3.1 3.1.2+20100829-1 (dsc) [1,776B]
Get:2http://ftp.nz.debian.orgsid/main python3.1 3.1.2+20100829-1 (tar) [11.8MB]
Get:3http://ftp.nz.debian.orgsid/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@theon
ython> 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