Linux Today: Linux News On Internet Time.

Linux.com: Programming with Python - Part 2: The Real World

Nov 15, 2000, 22:17 (7 Talkback[s])
(Other stories by Jason Tackaberry)

"In Part 1, I introduced you to the basics of Python, including its syntax, the basic constructs, classes, and exceptions. If you haven't read part 1 yet, or need a refresher, it might be a good idea to have a look. As with the previous installment of this tutorial, I'll draw on some of your past programming experience, especially with Perl. If you're still a beginner with little or no experience, you needn't worry too much. In most cases you shouldn't need to thoroughly understand the comparisons I make with other languages."

"The title of the first part is Baby Steps, and that's really all it is. It didn't arm you with enough knowledge to jump into the deep end and get coding with Python. Hopefully, though, it piqued your curiousity. In this part, The Real World, we're going to put Python to work, doing useful things that you might need to do in any real-world project...."

"Understanding the rules of scope is a necessary evil, especially because scope rules work differently in Python than in languages like Perl or C. A scope is a "region" where attributes (or any name mapped to an object) are directly accessible. Before defining the semantics of scopes in Python, it might be worth looking at an example...."

Complete Story

Related Stories: