I'm new to Python. I'm currently on Py3k (Win).
I'm having trouble installing a .py file. Basically, i want to use the recipes provided at the bottom of this page. So i want to put them inside a .py and import them in any of my source codes.
So i copied all the recipes into a recipes.py file and copied them to C:\Python3k\Lib\site-packages.
Now, the import works fine, but when i try to call any function (eg. take) from it, i got a global name 'islice' is not defined...So i figured, i should add an itertools import to recipes.py
I still get the same error? Do i need to change all instances to itertools.<funcname>? how can i make the import's global? Is this a new Py3k change? Is there something i missing?
Thanks in advance, :)