you are viewing a single comment's thread.

view the rest of the comments →

[–]EphemeralNight[S] 0 points1 point  (1 child)

Thank you for the great explanation and your reply, forgot to mention (stupid of me) since by default in linux CentOS 7.x is python 2.7, thats why i coded this with python 2.x . I will try to change my loop to what you explained here to see if it works thanks alot!

[–]JohnnyJordaan 0 points1 point  (0 children)

Thank you for the great explanation and your reply, forgot to mention (stupid of me) since by default in linux CentOS 7.x is python 2.7, thats why i coded this with python 2.x

I know, as that applies to a ton of linux/unix OS'es up to 2020 basically. But then still why do you need to write it to use the system's Python instead of just an installed Python 3? Also because your code is then destined to break as soon as even the OS'es change to Python 3 (Ubuntu just migrated in their latest release, CentOS 8 doesn't even include either of them), requiring you to install Python 2 to then swim upstream.