
On Sat, Jul 1, 2017 at 4:08 PM, Stephan Kulow <coolo@suse.de> wrote:
Am 01.07.2017 um 15:59 schrieb Michael Ströder:
How do you know that Python code with shee-bang /usr/bin/python is compatible to Python 2.x and 3.x?
If it's not fully compatible how do you avoid damage to your system, security issues etc.?
As you seem to know python 2 vs 3 glitches: do you have any examples of python2 code that worries you to create security issues or damage if run under python3?
My own experiences are rather quite fatal when even trying to run old python code under python3.
Hi, I think the changes in integer division between 2 and 3 are likely to break things in subtle ways which might first go unnoticed...2to3 does not automagically change something like print(4/3) into something like print(4//3). Cheers, Mischa -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org