Evaluating python - a question

alan.prescott at nospam.jarrold.com alan.prescott at nospam.jarrold.com
Thu May 17 18:59:09 CEST 2001


I'm just starting to look at Python as a language but there's one thing that
is bothering me regarding using it for large projects and that's the ease
with which I can put in a simple typo and not have it spotted by the
compiler. For example;-
I create a class ...

class person:

This class has an attibute of forename so

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.

Is there any mechanism in Python to detect typos like this as, in a large
program, they're bound to happen.

Thanks - Alan


 -----  Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web  -----
  http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
   NewsOne.Net prohibits users from posting spam.  If this or other posts
made through NewsOne.Net violate posting guidelines, email abuse at newsone.net



More information about the Python-list mailing list