Evaluating python - a question

William Park opengeometry at yahoo.ca
Thu May 17 21:19:42 CEST 2001


On Thu, May 17, 2001 at 04:59:09PM +0000, alan.prescott at nospam.jarrold.com wrote:
> me = person()
> me.forename = 'Alan' 
> 
> is Ok but a simple typo (especially with my keyboard skills) of
> 
> me.froname = 'Fred'
> 
> will go undetected and I'll have to spend ages digging around to find a bug
> which languages like C/C++/Pascal would throw out at compile time.

Well, let see in C...
    int forename, froname;
    forename = 1
    froname = 2
So, what's the difference?  A typo in Python is also typo in C.  

Solution:  get a decent editor!  In Vim, you can do word completion
^p/^n (going up and down, respectively).

-- 
William Park, Open Geometry Consulting, <opengeometry at yahoo.ca>
8 CPU cluster, (Slackware) Linux, Python, LaTeX, Vim, Mutt, Sc




More information about the Python-list mailing list