PYTHON IS CRAP

Vespe Savikko vespe at cs.tut.fi
Thu Aug 17 01:40:53 EDT 2000


Also sprach David Bolen <db3l at fitlinxx.com>:

  Yeah, but that's still less convenient than just do something like:
  
  	> pyman string.split
  
  (e.g., a direct lookup on precisely the API entry you are interested
  in, in just the way it gets used by the application)

In most (?) cases doc strings do just that:

>>> print string.split.__doc__
split(str [,sep [,maxsplit]]) -> list of strings
splitfields(str [,sep [,maxsplit]]) -> list of strings
 
Return a list of the words in the string s, using sep as the
delimiter string.  If maxsplit is nonzero, splits into at most
maxsplit words If sep is not specified, any whitespace string
is a separator.  Maxsplit defaults to 0.
 
(split and splitfields are synonymous)

  ++Vespe

-- 
  ------------------------------------------------------------------
       Vespe Savikko     vespe at cs.tut.fi     - to doom de doomsday -



More information about the Python-list mailing list