[Tutor] Two questions
Sean 'Shaleh' Perry
shalehperry@attbi.com
Wed, 01 May 2002 22:33:27 -0700 (PDT)
On 02-May-2002 Henry Steigerwaldt wrote:
> To All:
>
> Question # 1
>
> How can one append different types of variables together and store into a
> variable?
>
site_id = "%s%s %s %s/%s A%s%s" % (day, ob_time, wind, temp, dwpt, pres,
equal_sign)
This is basically C's sprintf().
>
> Question # 3
>
> Finally, is there a Web link that one can go to that describes each function
> in each
> Python module? For example, if I wanted to know what functions are available
> in the
> "time" or "string" modules, along with descriptions of each funtion and
> examples of
> how to use each, where can one go to get this information.
>
> Most Python books do not contain descriptions of each and every function in
> each
> and every Python module that comes with the language. Having this information
> would help one better understand the various functions, and hence more easily
> write
> Python programs.
>
My fav book is by New Rider's "Essential Python". It has 50 pages of quick
python reference and the rest of the book is a module reference.
However I spend most of my python coding in an emacs window so I now use the
info pages.