Re: Don't understand a probleme of module time not defined when calling a foo func

2016-05-31 Thread Ni Va
On Monday, May 30, 2016 at 11:10:33 PM UTC+2, Matt Wheeler wrote: > On Mon, 30 May 2016, 21:08 Ni Va, wrote: > > > > > _ > > Output: > > Traceback (most recent call last): > > File "", line 1, in > > File "", line 16, in PyExecReplace > > File "", line 22, in > > File "", li

Re: Don't understand a probleme of module time not defined when calling a foo func

2016-05-30 Thread Matt Wheeler
On Mon, 30 May 2016, 21:08 Ni Va, wrote: > > _ > Output: > Traceback (most recent call last): > File "", line 1, in > File "", line 16, in PyExecReplace > File "", line 22, in > File "", line 11, in foo > NameError: global name 'time' is not defined > Based on your tracebac

Don't understand a probleme of module time not defined when calling a foo func

2016-05-30 Thread Ni Va
Hi Evereybody, New in python dev, I don't understand why I obtain a problem of time module import as below in my function foo meanwhile this module is visible from the main core code. Thank you by advance Best Regards Niva # -*- coding: utf-8 -*- import time import sys from timeout import *