On 31 ago, 04:14, Lawrence D'Oliveiro <l...@geek- central.gen.new_zealand> wrote: > In message > <9aa266f0-be9b-4c9a-bfbd-6cdfc86ad...@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? > > l...@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: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 > l...@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
I was expecting an itertools.py file, but I don't see it in your list. I can instead see the test_itertools.py file, but my understanding is that it is not the file I am looking for. Is it possible that it is a built-in module whose source code is not available for watching it? Thank you very much -- http://mail.python.org/mailman/listinfo/python-list