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 purposes 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 purposes utilizing the advantages of a dynamically typed language.
  • Discover the right way to leverage the facility of IronPython to enhance current functions.
  • Explore interacting with different .NET languages through invoking the typical language runtime.

Show description

Read or Download Pro IronPython (Expert's Voice in .NET) PDF

Best Computers books

Database Modeling and Design: Logical Design, 4th Edition (The Morgan Kaufmann Series in Data Management Systems)

Database structures and database layout expertise have passed through major evolution in recent times. The relational facts version and relational database structures dominate company purposes; in flip, they're prolonged via different applied sciences like info warehousing, OLAP, and knowledge mining. How do you version and layout your database software in attention of latest know-how or new enterprise wishes?

Computer Networking: A Top-Down Approach (6th Edition)

&>Computer Networking keeps with an early emphasis on application-layer paradigms and alertness programming interfaces (the best layer), encouraging a hands-on adventure with protocols and networking options, earlier than operating down the protocol stack to extra summary layers. This booklet has develop into the dominant e-book for this path as a result of authors’ reputations, the precision of clarification, the standard of the paintings application, and the price in their personal vitamins.

The Guru's Guide to Transact-SQL

On the grounds that its advent over a decade in the past, the Microsoft SQL Server question language, Transact-SQL, has turn into more and more well known and extra strong. the present model activities such complicated gains as OLE Automation aid, cross-platform querying amenities, and full-text seek administration. This booklet is the consummate consultant to Microsoft Transact-SQL.

Data Structures and Problem Solving Using Java (4th Edition)

Facts constructions and challenge fixing utilizing Java takes a pragmatic and special approach to information constructions that separates interface from implementation. it truly is appropriate for the second one or 3rd programming path.   This e-book offers a pragmatic creation to information buildings with an emphasis on summary considering and challenge fixing, in addition to using Java.

Extra resources for Pro IronPython (Expert's Voice in .NET)

Show sample text content

An IronPython procedure That Demonstrates Dynamic Typing def DynamicTyping(): # the worth variety at the correct dictates the variable variety at the left quantity = five identify = "Alan Harris" writer = precise # this doesn't throw an errors; the compiler➥ infers the variable kind from the price yourName = five C h a p t e r 1   ■  I N TRO D U C T I O N T O I R O N P Y TH O N See the variation? In a statically typed language akin to C#, the compiler must understand at compilation time what the kind for a variable is. trying to assign a price kind that doesn't fit the variable kind generates an mistakes and the code won’t bring together. within the IronPython code in directory 1-2, the variable referred to as “yourName” is assigned a value of five as the compiler is aware the specified form of the variable merely by way of inferring from the kind of the assigned variable. it is important to to concentrate on this way of task since it is in stark distinction to many different languages, however it is sort of robust if used adequately. The eagle-eyed between you have got additionally spotted that once we all started the tactic in C#, we integrated the notice “void” to point that we might now not be returning any worth on the finish of the tactic. If we would have liked to come back the price of the “name” variable, we might have to swap the notice “void” to “string” to inform the C# compiler that we wish to go back a price of knowledge style string once we go out the strategy, and we might need to upload “return name;” to the top of the strategy to prevent a compiler errors and go back the information sort asked appropriately. this isn't the case in IronPython; it's going to look after dealing with this by means of interpreting the information kind of the price back whilst exiting the functionality. There’s anything else occurring the following that was once pointed out prior during this bankruptcy: you'll discover that there's little or no extraneous markup to point application circulate. lacking are the line-ending semicolons, the strategy starting and shutting brackets, and so forth. IronPython is determined by whitespace and indentation to regulate application stream (Listing 1-3). directory 1-3. An IronPython strategy That Demonstrates software circulate through Whitespace and Indentation def DynamicTyping(): # the worth variety at the correct dictates the➥ variable kind at the left quantity = five identify = "Alan Harris" writer = precise # this doesn't throw an blunders; the compiler➥ infers the variable kind from the price errors = five DynamicTyping() # calls the tactic outlined above and executes the assignments We’ll conceal the nitty-gritty information of writing IronPython code presently, yet this could provide you with an concept of the way this variety of programming differs from different languages you've gotten utilized in the previous. loads of price is put on clarity within the Python (and hence IronPython) dialect. Sacrificed are the brackets and the semicolons and embraced are 7 8 Ch apt er 1  ■  INTRODU C T ION T O IR ONP YTHO N indentation and whitespace. it is a frightening global for builders coming from C#, C++, or maybe VB . internet; there are not any landmarks, no highway symptoms wherein to navigate. leisure guaranteed, the advantages becomes obvious quick as you discover ways to strengthen functions swiftly, and as you paintings with IronPython this stuff will quickly develop into moment nature.

Rated 4.83 of 5 – based on 19 votes