allowing braces around suites
Isaac To
isaact at netscape.net
Fri Aug 27 21:24:43 EDT 2004
>>>>> "Kjetil" == Kjetil Torgrim Homme <kjetilho at yksi.ifi.uio.no> writes:
Kjetil> how long do you have to stare before spotting the bug?
At the first instant when I look at the code, something like within 2
seconds.
Kjetil> db.update_name(person)
Kjetil> if is_student(person):
Kjetil> db.update_courses(person)
Kjetil> db.commit()
Kjetil> only students have their names updated. I wonder why.
Kjetil> real world examples have taken hours or days.
Perhaps because you don't know Python? Or because you are too
accustomed to writing C with broken indentation?
Regards,
Isaac.
More information about the Python-list
mailing list