By Michael J. Foord, Christian Muirhead

In 2005, Microsoft quietly introduced an initiative to carry dynamic languages to the .NET platform. the place to begin for this undertaking used to be a .NET implementation of Python, dubbed IronPython. After a pair years of incubation, IronPython is prepared for real-world use. It blends the simplicity, splendor, and dynamism of Python with the ability of the .NET framework.
IronPython in Action bargains a finished, hands-on advent to Microsoft's intriguing new method for programming the .NET framework. It methods IronPython as a first-class .NET language, absolutely built-in with the .NET setting, visible Studio, or even the open-source Mono implementation. You'll find out how IronPython might be embedded as a ready-made scripting language into C# and VB.NET courses, used for writing complete functions or for internet improvement with ASP. Even greater, you'll see how IronPython works in Silverlight for client-side internet programming.
IronPython opens up fascinating new probabilities. simply because it's a dynamic language, it allows programming paradigms no longer simply to be had in VB and C#. during this booklet, authors Michael Foord and Christian Muirhead discover the realm of sensible programming, stay introspection, dynamic typing and duck typing , metaprogramming, and extra.
IronPython in Action explores those issues with examples, using the Python interactive console to discover the .NET framework with reside items. The professional authors offer a whole creation for programmers to either the Python language and the facility of the .NET framework. The publication additionally indicates find out how to expand IronPython with C#, extending C# and VB.NET purposes with Python, utilizing IronPython with .NET 3.0 and Powershell, IronPython as a home windows scripting software, and masses more.

Show description

Read or Download Ironpython in Action PDF

Similar python books

Mastering Python Design Patterns

Approximately This Book
• Simplify layout development implementation utilizing the ability of Python
• each one development is followed with a real-world instance demonstrating its key features
• this is often an easy-to-follow consultant concentrating on the sensible points of Python layout patterns

Who This publication Is For
This publication is for Python programmers with an intermediate heritage and an curiosity in layout styles carried out in idiomatic Python. Programmers of different languages who're drawn to Python may also reap the benefits of this booklet, however it will be higher in the event that they first learn a few introductory fabrics that designate how issues are performed in Python.

What you'll Learn
• discover manufacturing unit procedure and summary manufacturing unit for item creation
• Clone gadgets utilizing the Prototype pattern
• Make incompatible interfaces appropriate utilizing the Adapter pattern
• safe an interface utilizing the Proxy pattern
• select an set of rules dynamically utilizing the method pattern
• expand an item with no subclassing utilizing the Decorator pattern
• continue the common sense decoupled from the UI utilizing the MVC pattern

In Detail
Python is an object-oriented, scripting language that's utilized in wide selection of different types. In software program engineering, a layout trend is a steered approach to a software program layout challenge. even though now not new, layout styles stay one of many most well liked themes in software program engineering and so they come as a prepared reference for software program builders to resolve the typical difficulties they face at work.

This ebook will take you thru each layout trend defined with the aid of real-world examples. the purpose of the booklet is to introduce extra low-level element and ideas on the best way to write Pythonic code, not only concentrating on universal options as applied in Java and C++. It comprises small sections on troubleshooting, top practices, method structure, and its layout elements. With assistance from this publication, it is possible for you to to appreciate Python layout development ideas and the framework, in addition to concerns and their answer. You'll concentrate on all sixteen layout styles which are used to resolve daily difficulties.

Beginning Game Development with Python and Pygame: From Novice to Professional (Expert's Voice)

Like song and flicks, games are swiftly changing into a vital part of our lives. through the years, you’ve yearned for each new gaming console, mastered each one blockbuster inside of weeks after its liberate, and feature even received a neighborhood gaming pageant or . yet in recent times you’ve been spending loads of time wondering a online game suggestion of your individual, or are exploring the opportunity of creating a profession of this vivid and starting to be undefined.

Python Geospatial Development - Second Edition

Discover ways to construct subtle mapping functions from scratch utilizing Python instruments for geospatial improvement evaluate construct your individual whole and complicated mapping functions in Python. Walks you thru the method of establishing your personal on-line procedure for viewing and enhancing geospatial info useful, hands-on educational that teaches you all approximately geospatial improvement in Python intimately Geospatial improvement hyperlinks your information to areas at the Earth’s floor.

A functional start to computing with Python

A useful begin to Computing with Python permits scholars to speedy examine computing with no need to take advantage of loops, variables, and item abstractions first and foremost. Requiring no past programming event, the publication attracts on Python’s versatile info kinds and operations in addition to its means for outlining new services.

Additional info for Ironpython in Action

Example text

Because of the readability and testability of well-written Python code, it scales well to writing large applications. You are likely to find that your prototypes or scripts can be refactored into full programs much more easily than writing from scratch in an alternative language. NET, you needn’t do without your favorite tools. 9 You can use Visual Studio to create IronPython projects with full access to the designer and debugger. 4 shows Visual Studio being used to create a Windows application with IronPython.

Although Silverlight doesn’t work on Linux, Microsoft is cooperating with the Mono team to produce Moonlight,26 which is an implementation of Silverlight based on Mono. It will initially run on Firefox on Linux, but eventually will support multiple browsers everywhere that Mono runs. The best thing about Silverlight is that the DLR will run on it. So not only can you program Silverlight applications with C#, but you can also use any of the DLR languages, including IronPython. Silverlight is an exciting system.

Stack. Stack. The value can be null. help will also display docstrings defined on Python objects. Docstrings are strings that appear inline with modules, functions, classes, and methods to explain the purpose of the object. NET defined. makedirs) Help on function makedirs in module os | makedirs(name, mode) | makedirs(path [, mode=0777]) | | Super-mkdir; create a leaf directory and all intermediate ones. | Works like mkdir, except that any intermediate path segment (not | just the rightmost) will be created if it does not exist.

Download PDF sample

Rated 4.36 of 5 – based on 9 votes