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



Craig you can get:

>python3 --version
Python 3.6.6

If you use the new RPM installs.

http://ibm.biz/ibmi-rpms

5733OPS is "out-dated"

Bryan


Craig Richards wrote on 8/22/2018 12:11 PM:
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


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.