zabbix-gnomes icon indicating copy to clipboard operation
zabbix-gnomes copied to clipboard

Make the code more modern

Open hecko opened this issue 7 years ago • 4 comments

  • migrate to python3
  • fix indentation
  • fix pyzabbix class init

hecko avatar Jan 24 '18 08:01 hecko

I'm not the author, but wondering why forcing a switch to python3 while quite a few distributions are still on python2. Using myself some of those scripts for the CentOS infra, and python 2.7 is still the default (and only one in base distro) for CentOs 7 (and let's not even mention python 2.6 on CentOS 6)

Of course that will be @q1x's decision, but that would mean that suddenly some people would have to revert those changes (into a different branch ?)

arrfab avatar Jan 24 '18 12:01 arrfab

Well because Pyhton 2 might become depricated very quickly (https://pythonclock.org) and also because RHEL 8 will not suport Python 2 any more. Also these scripts are not primarily intended to be run regularly on the production infrastructure itself, rather run on dev systems where Im sure you can afford installing Python 3 from EPEL. Just my two cents.

hecko avatar Jan 24 '18 15:01 hecko

Can't it be made to run on both 2.7 and 3? https://docs.python.org/3/howto/pyporting.html

Many packages on Pypi work on both: https://python3wos.appspot.com/

geekpete avatar Jan 24 '18 21:01 geekpete

is there anyone out there? python2 is deprecated by now

ironbishop avatar Mar 27 '20 13:03 ironbishop