SlideShare a Scribd company logo
14
Most read
18
Most read
19
Most read
The .NET developer’s introduction to IronPythonDror Helper
About.MeSoftware developer (7 years).NET developer (mostly C#)Language geekBlogger – http://blog.drorhelper.com
AgendaSome backgroundPython basicsWhat is IronPythonWhy should you care
Python programming languageCreated in 1990 by Guido van RossumGeneral purpose high-level programming languageNamed after Monty Python
Python flavors
What about IronPython?
The Python language
Multi Paradigm
Dynamic but type safeThe interpreter keeps track of all variables typesCannot do anything that's incompatible with the type of data you're working withTypes can changeVariable is simply a value bound to a name
Data Types
Indention instead of bracketsforiinrange(100): ifi % 3 == 0:ifi % 5 == 0:print“FizzBuzz”else:print“Fizz”elifi % 5 == 0:print“Buzz“else:printi
Python focusDuck TypingList comprehension
Duck Typingclass Duck: def quack(self): print("Quaaaaaack!") class Person: def quack(self): print("The person imitates a duck.") defin_the_forest(duck): duck.quack() def game(): donald = Duck() 	john = Person() in_the_forest(donald) in_the_forest(john) game()
List ComprehensionWhat would be the values of listB?listA = [j for i in range(2, 8) for j in range(i*2, 50, i)]listB = [x for x in range(2, 50) if x not in listA][2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47]
What about IronPython?
IronPython GoalsTrue Python ImplementationSeamless integration with .NET
IronPython is:Open sourceSupports both .NET & MonoAll CLR types are availableCan call .NET code
IronPython IDEsVS2010 + IronPython extension#DevelopWingEclipse + PyDevFor more details see: http://www.voidspace.org.uk/ironpython/tools-and-ides.shtml
The interactive shellRun code on the flyRun .NET code on the fly>>> print "Hello, world"Hello, world>>> x = 12**2>>> x/272>>> # this is a comment
IronPython in the real worldUse IronPython as part of your .NET applicationsWPFPowerShellASP.NETSparkSilverlightRobotics StudioXNAScripting engine
Where to startDownload IronPython and give it a tryTryPython - http://ironpython.net/try/Read a bookAdd IronPython to your utility belt
ResourcesIronPython - http://ironpython.net/IronPython on Codeplexhttp://ironpython.codeplex.com/Books:Dive into Python - http://diveintopython.org/IronPython in Action - http://www.ironpythoninaction.com/Blogs:Voidspace techie blog: http://www.voidspace.org.uk/python/weblog/index.shtmlGetting started with IronPython - http://blogs.microsoft.co.il/blogs/dhelper/archive/2009/05/01/beginning-ironpython-development-part-1-where-to-start.aspxIntegration:ASP.NET: http://aspnet.codeplex.com/wikipage?referringTitle=Home&title=Dynamic%20Language%20SupportSilverLight: http://www.voidspace.org.uk/ironpython/silverlight/index.shtmlSpark:  http://sparkviewengine.com/documentation/ironpython

More Related Content

PDF
Introduction to python
PDF
Arquitetura QueFilme
PPTX
Introduction to Python
PDF
Future Proof Web Design
PDF
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
PDF
Python in 15 minutes
PPTX
Python programming | Fundamentals of Python programming
Introduction to python
Arquitetura QueFilme
Introduction to Python
Future Proof Web Design
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Python in 15 minutes
Python programming | Fundamentals of Python programming

What's hot (13)

PPT
Python Programming ppt
PDF
Introduction To Python
PDF
The str/bytes nightmare before python2 EOL
PDF
Introduction to python 3
PDF
Python, the Language of Science and Engineering for Engineers
PDF
Introduction to python 3 2nd round
PPT
Podcasting 101
PDF
PYTHON PROGRAMMING FOR HACKERS. PART 1 – GETTING STARTED
PPTX
Introduction to python for Beginners
PPTX
Beginning Python Programmers: Here's Where to Find Help!
PDF
Writing the docs
PDF
Python course syllabus
Python Programming ppt
Introduction To Python
The str/bytes nightmare before python2 EOL
Introduction to python 3
Python, the Language of Science and Engineering for Engineers
Introduction to python 3 2nd round
Podcasting 101
PYTHON PROGRAMMING FOR HACKERS. PART 1 – GETTING STARTED
Introduction to python for Beginners
Beginning Python Programmers: Here's Where to Find Help!
Writing the docs
Python course syllabus
Ad

Viewers also liked (8)

PPTX
SyPy IronPython
PDF
Jython
PPT
Communication between Java and Python
PPT
Network programming in python..
PPTX
Python Network Programming
PPT
Mixing Python and Java
PDF
Jython: Integrating Python and Java
PDF
Mastering Python 3 I/O
SyPy IronPython
Jython
Communication between Java and Python
Network programming in python..
Python Network Programming
Mixing Python and Java
Jython: Integrating Python and Java
Mastering Python 3 I/O
Ad

Similar to The .NET developer's introduction to IronPython (20)

ODP
Open Source .NET
PPTX
Python unit 2 is added. Has python related programming content
PPTX
Introduction about Python by JanBask Training
PPTX
Python_Introduction_Good_PPT.pptx
PPTX
Intro to Python for C# Developers
PPTX
PYTHON 101.pptx
PPTX
Iron python
PPT
Python Programming Basic , introductions
PPTX
pengenalan python apa itu python untuk apa.pptx
ODP
Dynamic Python
PPTX
Python 101 for the .NET Developer
PPT
01-Python-Basics.ppt
PPT
Pythonintroduction
PDF
An Introduction to Python Programming
PPT
Py Con 2009 Pumping Iron Into Python
PPTX
PYTHON PPT.pptx
PPT
FALLSEM2022-23_ITA3007_ETH_VL2022230100613_Reference_Material_I_23-09-2022_py...
PPTX
Introduction to Programming.pptx ok ok ok
PPTX
Introduction to Python Programming Language
PPTX
INTRODUCTION TO PYTHON.pptx
Open Source .NET
Python unit 2 is added. Has python related programming content
Introduction about Python by JanBask Training
Python_Introduction_Good_PPT.pptx
Intro to Python for C# Developers
PYTHON 101.pptx
Iron python
Python Programming Basic , introductions
pengenalan python apa itu python untuk apa.pptx
Dynamic Python
Python 101 for the .NET Developer
01-Python-Basics.ppt
Pythonintroduction
An Introduction to Python Programming
Py Con 2009 Pumping Iron Into Python
PYTHON PPT.pptx
FALLSEM2022-23_ITA3007_ETH_VL2022230100613_Reference_Material_I_23-09-2022_py...
Introduction to Programming.pptx ok ok ok
Introduction to Python Programming Language
INTRODUCTION TO PYTHON.pptx

More from Dror Helper (20)

PPTX
Unit testing patterns for concurrent code
PPTX
The secret unit testing tools no one ever told you about
PPTX
Debugging with visual studio beyond 'F5'
PPTX
From clever code to better code
PPTX
From clever code to better code
PPTX
A software developer guide to working with aws
PPTX
The secret unit testing tools no one has ever told you about
PPTX
The role of the architect in agile
PDF
Harnessing the power of aws using dot net core
PPTX
Developing multi-platform microservices using .NET core
PPTX
Harnessing the power of aws using dot net
PPTX
Secret unit testing tools no one ever told you about
PPTX
C++ Unit testing - the good, the bad & the ugly
PPTX
Working with c++ legacy code
PPTX
Visual Studio tricks every dot net developer should know
PPTX
Secret unit testing tools
PPTX
Electronics 101 for software developers
PPTX
Navigating the xDD Alphabet Soup
PPTX
Building unit tests correctly
PPTX
Who’s afraid of WinDbg
Unit testing patterns for concurrent code
The secret unit testing tools no one ever told you about
Debugging with visual studio beyond 'F5'
From clever code to better code
From clever code to better code
A software developer guide to working with aws
The secret unit testing tools no one has ever told you about
The role of the architect in agile
Harnessing the power of aws using dot net core
Developing multi-platform microservices using .NET core
Harnessing the power of aws using dot net
Secret unit testing tools no one ever told you about
C++ Unit testing - the good, the bad & the ugly
Working with c++ legacy code
Visual Studio tricks every dot net developer should know
Secret unit testing tools
Electronics 101 for software developers
Navigating the xDD Alphabet Soup
Building unit tests correctly
Who’s afraid of WinDbg

Recently uploaded (20)

PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
KodekX | Application Modernization Development
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Big Data Technologies - Introduction.pptx
PDF
Electronic commerce courselecture one. Pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Empathic Computing: Creating Shared Understanding
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Encapsulation theory and applications.pdf
PPTX
Cloud computing and distributed systems.
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
DOCX
The AUB Centre for AI in Media Proposal.docx
Encapsulation_ Review paper, used for researhc scholars
KodekX | Application Modernization Development
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
NewMind AI Weekly Chronicles - August'25 Week I
Big Data Technologies - Introduction.pptx
Electronic commerce courselecture one. Pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Empathic Computing: Creating Shared Understanding
20250228 LYD VKU AI Blended-Learning.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Diabetes mellitus diagnosis method based random forest with bat algorithm
MYSQL Presentation for SQL database connectivity
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Encapsulation theory and applications.pdf
Cloud computing and distributed systems.
Dropbox Q2 2025 Financial Results & Investor Presentation
The AUB Centre for AI in Media Proposal.docx

The .NET developer's introduction to IronPython

  • 1. The .NET developer’s introduction to IronPythonDror Helper
  • 2. About.MeSoftware developer (7 years).NET developer (mostly C#)Language geekBlogger – http://blog.drorhelper.com
  • 3. AgendaSome backgroundPython basicsWhat is IronPythonWhy should you care
  • 4. Python programming languageCreated in 1990 by Guido van RossumGeneral purpose high-level programming languageNamed after Monty Python
  • 9. Dynamic but type safeThe interpreter keeps track of all variables typesCannot do anything that's incompatible with the type of data you're working withTypes can changeVariable is simply a value bound to a name
  • 11. Indention instead of bracketsforiinrange(100): ifi % 3 == 0:ifi % 5 == 0:print“FizzBuzz”else:print“Fizz”elifi % 5 == 0:print“Buzz“else:printi
  • 13. Duck Typingclass Duck: def quack(self): print("Quaaaaaack!") class Person: def quack(self): print("The person imitates a duck.") defin_the_forest(duck): duck.quack() def game(): donald = Duck() john = Person() in_the_forest(donald) in_the_forest(john) game()
  • 14. List ComprehensionWhat would be the values of listB?listA = [j for i in range(2, 8) for j in range(i*2, 50, i)]listB = [x for x in range(2, 50) if x not in listA][2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47]
  • 16. IronPython GoalsTrue Python ImplementationSeamless integration with .NET
  • 17. IronPython is:Open sourceSupports both .NET & MonoAll CLR types are availableCan call .NET code
  • 18. IronPython IDEsVS2010 + IronPython extension#DevelopWingEclipse + PyDevFor more details see: http://www.voidspace.org.uk/ironpython/tools-and-ides.shtml
  • 19. The interactive shellRun code on the flyRun .NET code on the fly>>> print "Hello, world"Hello, world>>> x = 12**2>>> x/272>>> # this is a comment
  • 20. IronPython in the real worldUse IronPython as part of your .NET applicationsWPFPowerShellASP.NETSparkSilverlightRobotics StudioXNAScripting engine
  • 21. Where to startDownload IronPython and give it a tryTryPython - http://ironpython.net/try/Read a bookAdd IronPython to your utility belt
  • 22. ResourcesIronPython - http://ironpython.net/IronPython on Codeplexhttp://ironpython.codeplex.com/Books:Dive into Python - http://diveintopython.org/IronPython in Action - http://www.ironpythoninaction.com/Blogs:Voidspace techie blog: http://www.voidspace.org.uk/python/weblog/index.shtmlGetting started with IronPython - http://blogs.microsoft.co.il/blogs/dhelper/archive/2009/05/01/beginning-ironpython-development-part-1-where-to-start.aspxIntegration:ASP.NET: http://aspnet.codeplex.com/wikipage?referringTitle=Home&title=Dynamic%20Language%20SupportSilverLight: http://www.voidspace.org.uk/ironpython/silverlight/index.shtmlSpark: http://sparkviewengine.com/documentation/ironpython

Editor's Notes

  • #10: Show in ipy:x = 5 x = x + 7 # x  12x = x + “spam” # errorx = 5 x = “eggs”x = x + “ and spam”
  • #19: Need to show VS2010 & #Develop