RCobbTX
Posts: 10
Joined: Thu Jan 09, 2014 1:08 pm

Functions

Sat Nov 22, 2014 6:56 pm

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'.)

User avatar
joan
Posts: 14936
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Functions

Sat Nov 22, 2014 8:09 pm

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/

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Functions

Sat Nov 22, 2014 9:13 pm

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.

Return to “Python”