Page 69 -
P. 69

2   sharing your code





                                        Modules of functions








                         I’d love to share...but
                         how am I supposed
                         to function without a
                         module?






























                       Reusable code is great, but a shareable module is better.
                       By sharing your code as a Python module, you open up your code to the entire Python
                       community…and it’s always good to share, isn’t it? In this chapter, you’ll learn how to
                       create, install, and distribute your own shareable modules. You’ll then load your module
                       onto Python’s software sharing site on the Web, so that everyone can benefit from your
                       work. Along the way, you’ll pick up a few new tricks relating to Python’s functions, too.






                                                                                   this is a new chapter    33
   64   65   66   67   68   69   70   71   72   73   74