XPost: comp.unix.shell, comp.unix.programmer
In comp.unix.programmer Stefan Ram <
ram@zedat.fu-berlin.de> wrote:
Sometimes, there seem to be some choices how to do something in
Python.
Of course. The slogan is just, well, a slogan, not to
be taken 100% literally. For example, there are almost
always some choices to be made whether to use
object-oriented features or not.
Some years ago I wrote a simple but useful Python
script for searching eBay items. It is so
simple that no classes are really necessary, one
could use just dictionaries/hashes instead. But for
some sanity, I think I used a class or two to
make things a bit better organized and self-documenting.
The last I checked, the O'Reilly Python book is just
absolutely *MASSIVE*. The language has a huge number
of features now and it is pretty obvious that choosing
which ones to use can be a matter of preference. So
there is no "One True Way" to choose.
I guess this is not much different from C++ which proclaims
to be multi-paradigm, but nobody ever uses the immense
full feature set. I've been told that all serious
C++ programming teams stick to a subset of features
that are allowed to be used.
br,
KK
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)