Q:

Can't locate collections module for python 3

I'm new to Python 3 and following a tutorial which uses a package called collections. While there is an import statement(import collections)in the program, and the program works without error I am confused. I can't locate the package, and it is not listed as one of the downloadable packages. Is it part of python 2/3, and if so where would I see it listed?

A:

I guess it comes with Python 3. You can see the location of an imported module with __path__, like this:
>>> import collections
>>> collections.__path__
['/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/collections']

Here's some relevant Python documentation:

https://docs.python.org/3.5/tutorial/modules.html#packages-in-multiple-directories
https://docs.python.org/3.5/reference/import.html#path

