view example/global.py @ 1:b90e49ab734b

Factorise conversion of Python str into Rust String.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 31 May 2016 00:52:00 +0100
parents 211b0df72e64
children
line wrap: on
line source

value = 2

def function():
    global value
    value = 3

if __name__ == '__main__':
    print(value)
    function()
    print(value)