Difference between revisions of "Python"

From MidrangeWiki
Jump to: navigation, search
m (External links: add EL to TFHG article)
(Updated to mention the RPM packages)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{SeealsoWP|Python (programming language)}}
 
{{SeealsoWP|Python (programming language)}}
{{AN}} is a is a general-purpose high-level programming language.
+
{{AN}} is a general-purpose very-high-level programming language.
  
==System i implementation==
+
==IBM i implementation==
Though not available on the iSeries as an IBM [[LPP]], a port of Python 2.5 was done by Per Gummedal. 
 
  
Note that Python 3.1.1 was released in August 2009.
+
There are currently several implementations for IBM i:
 +
* Native port of Python 2.7 by Per Gummedal, called [http://www.iseriespython.com iSeriesPython], for V5R3 and later
 +
* [[PASE]] port of Python 3.4 by IBM, as Option 2 of [[5733-OPS]] (Open Source for IBM i Product) for 7.1 and later
 +
* [[PASE]] port of Python 2.7 by IBM, as Option 4 of [[5733-OPS]] (Open Source for IBM i Product) for 7.1 and later
 +
* [[PASE]] port of Python 3.6 by IBM, distributed as an [https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/IBM%20i%20Technology%20Updates/page/Open%20Source%20RPM%27s RPM package] via <code>yum</code> for 7.2 and later
 +
* [[PASE]] port of Python 2.7 by IBM, distributed as an [https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/IBM%20i%20Technology%20Updates/page/Open%20Source%20RPM%27s RPM package] via <code>yum</code> for 7.2 and later
  
===Hello world===
+
Additionally, there are AIX ports on Perzl.org which may or may not work in PASE.
  # print "Hello world"
+
 
 +
The RPM-based distributions are the most up to date and generally considered the easiest to install.
 +
 
 +
==Hello world==
 +
 
 +
===Python 2===
 +
print "Hello world"
 +
 
 +
===Python 3===
 +
  print("Hello world")
  
 
==External links==
 
==External links==
* http://www.iseriespython.com
+
* [http://www.iseriespython.com iSeriesPython Web Site]
* [http://www.itjungle.com/fhg/fhg082510-story01.html "An Introduction to Python on IBM i, Part 1"] by Garry Taylor, in ''The Four Hundred Guru'', Volume 10, Number 25 -- August 25, 2010
+
* [http://iseriespython.blogspot.ca iSeriesPython Blog]
 +
* [https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/IBM%20i%20Technology%20Updates/page/Python IBM i Technology Updates - Python]
 +
* [http://ibm.biz/ibmi-rpms Installation and availability of open source RPM packages from IBM]
 +
* [https://www.gateway400.org/documents/Gateway400/Handouts/GetStartedWithPythonOnIBMi2016.pdf "Getting started with Python on IBM i" (PDF)] - handed out at Gateway/400 User Group meeting Jan 14, 2016
  
 
==Categories==
 
==Categories==
 
{{stub}}
 
{{stub}}
 
[[Category:Programming languages]]
 
[[Category:Programming languages]]

Latest revision as of 14:30, 11 June 2019

See also on Wikipedia: Python (programming language)

Python is a general-purpose very-high-level programming language.

IBM i implementation

There are currently several implementations for IBM i:

  • Native port of Python 2.7 by Per Gummedal, called iSeriesPython, for V5R3 and later
  • PASE port of Python 3.4 by IBM, as Option 2 of 5733-OPS (Open Source for IBM i Product) for 7.1 and later
  • PASE port of Python 2.7 by IBM, as Option 4 of 5733-OPS (Open Source for IBM i Product) for 7.1 and later
  • PASE port of Python 3.6 by IBM, distributed as an RPM package via yum for 7.2 and later
  • PASE port of Python 2.7 by IBM, distributed as an RPM package via yum for 7.2 and later

Additionally, there are AIX ports on Perzl.org which may or may not work in PASE.

The RPM-based distributions are the most up to date and generally considered the easiest to install.

Hello world

Python 2

print "Hello world"

Python 3

print("Hello world")

External links

Categories

This article is a stub. You can help by editing it.