Pro IronPython by Alan Harris

By Alan Harris

IronPython represents a distinct course for builders drawn to operating with dynamic languages in the .NET Framework. no matter if you are looking to improve functions from scratch or upload performance and maintainability to an current software, IronPython opens many doorways whereas offering a high–speed, high–performance language that integrates tightly with different .NET languages.

  • Learn to create functions utilizing some great benefits of a dynamically typed language.
  • Discover how you can leverage the ability of IronPython to enhance current purposes.
  • Explore interacting with different .NET languages via invoking the typical language runtime.

Show description

Read or Download Pro IronPython PDF

Similar python books

Fundamentals of Python: From First Programs through Data Structures

In basics OF PYTHON: FROM FIRST courses via information buildings, Washington and Lee college professor Kenneth A. Lambert provides the entire vital subject matters in CS1 and CS2 in a single quantity. This reasonably priced layout offers teachers with a constant method of educating introductory programming and information constructions over a regular two-term direction series.

Python for Data Analysis: Data Wrangling with Pandas, NumPy, and IPython

Python for info research is anxious with the nuts and bolts of manipulating, processing, cleansing, and crunching info in Python. it's also a pragmatic, smooth advent to clinical computing in Python, adapted for data-intensive purposes. this can be a publication concerning the components of the Python language and libraries you'll have to successfully clear up a extensive set of knowledge research difficulties.

Python and AWS

If you happen to intend to exploit Amazon net prone (AWS) for distant computing and garage, Python is a perfect programming language for constructing purposes and controlling your cloud-based infrastructure. This cookbook will get you began with greater than dozen recipes for utilizing Python with AWS, in line with the author’s boto library.

Artificial Intelligence with Python

Construct real-world synthetic Intelligence purposes with Python to intelligently engage with the area round you approximately This publication Step into the fantastic international of clever apps utilizing this entire consultant input the realm of man-made Intelligence, discover it, and create your personal functions paintings via uncomplicated but insightful examples that may get you up and working with man made Intelligence very quickly Who This publication Is For This booklet is for Python builders who are looking to construct real-world synthetic Intelligence purposes.

Additional info for Pro IronPython

Example text

There is a difference between handling exceptions and validating data entry. We have conditional statements in Listing 2-8 to handle direction of the program under normal circumstances. A user’s entering the string “twenty-five” for his or her age is not a normal circumstance by our definition, so we have an exception to handle it. Exceptions are “heavier” than conditional statements and have a slightly larger impact on performance. By definition, they should be exceptional cases, not the way you control program flow.

You will see something like the following. py', line 4, in HelloConditional ValueError: invalid integer number literal Yikes! We didn’t even get asked for our name and age again. It just crashed and burned! This is an example of an exception. An exception occurs when program execution strays far off course. A pretty common example would be dividing by 0. Many 23 24 Ch apt er 2 ■ IR ONP YTHON S YNTAX languages (C#, for example) even have built-in DivideByZero exceptions to handle those types of cases.

To the user, and I’m not about to break tradition. nNote Totally random trivia: the archetype of the Hello World! programs is actually “The C Programming Language” by Brian Kernighan and Dennis Ritchie. Since the book in your hands is about IronPython, which is based on CPython, which was written in and (in part) modeled after the C language syntax, it seems only fitting to keep the tradition alive. py in a convenient directory. For the sake of our examples in this book, I will be keeping my source code in C:\Python.

Download PDF sample

Rated 4.00 of 5 – based on 42 votes