Skip to Content
Professional IronPython™
book

Professional IronPython™

by John Paul Mueller
April 2010
Intermediate to advanced
479 pages
12h 44m
English
Wrox
Content preview from Professional IronPython™

Chapter 3. Implementing Structured Language Elements

WHAT'S IN THIS CHAPTER?

  • Creating applications that use multiple statements

  • Developing applications that select between options

  • Working with loops in applications

  • Enumerating data within applications

Up to this point, the sample applications have focused on simple tasks that didn't require much structure. However, real applications solve complex problems that often require decision making and loops. Performing these tasks requires structure within the application. The IronPython interpreter must know where the decision-making process and the loops begin and end. Consequently, you must know how to add structure to your application.

This chapter discusses four levels of structure. First, you'll see how to string a number of statements together in a structured manner. You've already seen some examples of this kind of structure in Chapters 1 and 2, but this chapter goes further. Second, you'll see how to create decision-making structures so that the application can choose between options. Third, you'll discover two looping mechanisms provided by IronPython. And fourth, you'll see how to enumerate data within applications — one of the more important structural techniques.

After you complete this chapter, you might be tempted to ask whether this is all that IronPython provides in the way of structures. It's true that IronPython does provide a few more advanced structural elements not discussed in this chapter, such as the with keyword. However, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

What Successful Brick-and-Mortar Retailers Get Right

What Successful Brick-and-Mortar Retailers Get Right

Rob Angell
The Human Factor in AI-Based Decision-Making

The Human Factor in AI-Based Decision-Making

Philip Meissner, Christoph Keding
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9780470548592Purchase book