×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
On Thu, Jan 9, 2020 at 3:45 PM Pete Helgren <pete@xxxxxxxxxx> wrote:
https://github.com/phelgren/OSSGarden/tree/master/python
Pete, I'm always glad to see resources for learning Python on IBM i,
so thank you for sharing that.
One thing I think prospective readers need to know about your examples
is that most if not all of them are for Python 2, which is still
usable of course, but officially no longer supported by the official
Python development team (the ones behind python.org).
Fortunately, most if not all of your examples have only one
Python-2-specific feature, which is print statements. In Python 3,
these are replaced by print function calls. So where you have
print 'Hello, world!'
in Python 2, you have to change it to
print('Hello, world!')
for Python 3. It's a slightly annoying but very straightforward and
superficial change. There are other differences which are more
substantial, but so far I haven't seen any come up in your examples.
(I haven't looked at them all, though.)
John Y.
As an Amazon Associate we earn from qualifying purchases.