Page 1 of 1

Functions

Posted: Sat Nov 22, 2014 6:56 pm
by RCobbTX
Where can I find a good discussion of function handling by Python and Raspbian.?
How does Python 2.7 go about searching for functions and how can I impact the process. (I find a majority of internet ‘installs’ of functions just dump an unzipped file 'where ever'.)

Re: Functions

Posted: Sat Nov 22, 2014 8:09 pm
by joan
Raspbian really doesn't come into the equation. Python is intended to be platform independent as fas as is practical.

https://docs.python.org/2.7/

Re: Functions

Posted: Sat Nov 22, 2014 9:13 pm
by DirkS
RCobbTX wrote:How does Python 2.7 go about searching for functions and how can I impact the process. (I find a majority of internet ‘installs’ of functions just dump an unzipped file 'where ever'.)
I assume you mean 'modules'...

In addition to joan's comments:
Recent topic on this forum: http://www.raspberrypi.org/forums/viewt ... 32&t=92049
Info on module installation and python search paths: https://docs.python.org/2/install/, https://docs.python.org/2/tutorial/modules.html

Gr.
Dirk.