Page 70 -
P. 70

let’s share


           It’s too good not to share


          You’ve been showing your function to other programmers, and they like what
           they see.





                                              You should make your function shareable,
                                              so that everyone can use it.




































          Yes, a function this good should be shared with the world.
           Python provides a set of technologies that make this easy for you, which
           includes modules and the distribution utilities:

                      Modules let you organize your code for optimal sharing.

                      The distribution utilities let you share your modules with the world.



           Let’s turn your function into a module, then use the distribution utilities to
           share your module with the wider Python programming community.


           34    Chapter 2
   65   66   67   68   69   70   71   72   73   74   75