× 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.



Normally I would trim content except for the minimum needed for
context, but in this case I'm transplanting the whole thing from the
RPG list, so the original e-mail in its entirety is quoted at the
bottom.

Craig, the answer is that it is simplest if you switch to the
RPM-based distributions, installed via yum:

http://ibm.biz/ibmi-rpms

That way you have Python 3.6, and PTFs are a thing of the past, at
least as far as open source on the i.

John Y.

On Wed, Aug 22, 2018 at 12:11 PM Craig Richards <craig@xxxxxxxxxxxxxxxx> wrote:

Hi All,

I'd quite like to use the Python json Command Line Interface.

My OS is V7R3M0 and the versions of Python Installed are:

3.4.6 and
2.7.13

I can get the tool to work without issues but the current version of
json.tool sorts the keys of the output file which is behaviour I don't want.

According to the documentation, in version 3.5 the output was changed to
default to the same order as input, and a --sort-keys option added for
anyone wanting that feature.

As far as I can see, the latest PTF for Python Runtime for IBMi is SI66070
which is for version 3.4.6 which is already installed.

Forgive my ignorance but in the documentation at
https://docs.python.org/3/library/json.html where it talks about the
command line options and specifically the bit about output sort order being
changed in version 3.5 - does that mean that I need to wait until there is
a PTF for 3.5 of the Python runtime before I can get access to this version
of the json.tool module?

Thanks in advance,
Craig
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.