euglug.org

[Python] Perl vs Python contest for real ?

작성자

카테고리:



horstThu May 20 04:06:44 PDT 2004

I just signed up to the new list and am not sure if the contest
 http://www.euglug.org/pipermail/python/2004-May/000388.html
is for real --or a year old ?   See my note about date confusion regarding
Ben's message [*ben*]

>From Bob's message:
"""
I think Python's real strengths are in readability and
maintainability, which won't come out in this contest.
"""
YES, and to add to the above there is the self-documenting feature using
pydoc. You can run it interactively, or let it produce static HTML pages,
or run a little documentation server on the port of your choice by:
 cd path-to-python-develop-area	# for short 'cd X'
 python path-to-package-lib/pydoc.py -p 8123
point browser to:
 http://localhost:8123
Awesome!  With one command you have created a little html server that
could serve simple, static html pages (less interesting) but also shows
you everything in your sys.path . If you did the 'cd X' above X will be
the 1st in sys.path (2nd block in your browser) and you can see how well
you have documented your own programs
 ...or where it needs improvement :-).
The 1st block are the built-ins. There is much more to pydoc...

Contests of that kind are always somewhat narrow, as in whom you are
trying to impress. So pydoc is just a nice add-on if the limitation of 3
is strictly enforced. ((or one could run pydoc in a thread, as an add-on
-which I have never done. So anyhow, what's about threads in perl? ))

Coming back to your math example: there are powerful math packages, e.g.
 http://starship.python.net/~hinsen/ScientificPython/
which I haven't used yet, but I found your example is *very* readable. In
short, pseudo code that runs !

Well, even if the contest isn't really real, it's already fun.

 - Horst

 ========== [*ben*] ===========
Ben's message
 http://www.euglug.org/pipermail/python/2004-May/000196.html
claims to be from
 Tue May 18 20:54:02 PDT 2004

but was actually sent over a year ago on
 Date: 03 Mar 2003 17:59:12 -0800
 ==============================