Cheat sheet

Scott David Daniels Scott.Daniels at Acm.Org
Thu Dec 27 17:06:07 EST 2007


Riccardo T. wrote:
> I wrote a little cheat sheet for this wonderful language, but because of
> my still little experience with it, I would like to have a feedback
> Could you have a look at it and tell me what do you think about, please?
> 
> http://greyfox.imente.org/index.php?id=73
> 
> --
> GreyFox

[in the .png]
 > ...
 > Callable types
 >    ...
 >    User-definet methods

I personally prefer "User-defined methods"

 >    ...
 >    Class instances
I'd try:
      Class instances with a __call__ method.

 > ...
 > Classes
 > Classes Instances

This probably wants to be
   Class Instances

"file" objects are generally supposed to be built with the
open function, not instantiated as shown.
Also note iterating on a file gets the lines.

Do you know about seq[i:] and seq[::-1]?

--Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list