Closed GoogleCodeExporter closed 9 years ago
I am not sure I understand. Are you referring to something like this?
x = 0
def f():
global x
x = 2
f()
print x
So what is the issue? PyScripter just uses standard python to compile and run
the code, so if it works in Python it should work in PyScripter. Can you
provide an example?
Original comment by pyscripter
on 22 Sep 2010 at 10:05
I tried on simple things as you proposed before I poet the bug report and I saw
simple example like that works. However, I sent the code to you so you can view
in depth to understand the bug that I am facing
Original comment by chanh.q....@gtempaccount.com
on 22 Sep 2010 at 10:53
Which code? I do not see any attachments.
Original comment by pyscripter
on 23 Sep 2010 at 1:12
Seem like reply through email did not go through. Here is attached file.
Original comment by chanh.q....@gtempaccount.com
on 23 Sep 2010 at 4:47
Attachments:
OK. I loaded your file into PyScripter. I cannot run it since I do not have
the required modules. So, what is the issue?
By the way AFAIK the global statement makes no sense at the module level, so I
cannot see the purpose of
global SourceDirectory
global InputFolder
global ITPScriptsFolder
global TestsFolder
global TxBaseSpecThreadStatus1,TxBaseSpecThreadStatus2,WaveformCount
etc.
Original comment by pyscripter
on 23 Sep 2010 at 7:44
Is this related to issue 421? Is the issue that the information displayed when
the mouse hovers over a variable is incorrect?
Original comment by pyscripter
on 23 Sep 2010 at 7:49
Thanks, my friend told me do not use global statement at top because they
already global.
Use global statement in a function of moduleA. Then at different moduleB use
import moduleA then use moduleA.variablename, value will get through
Original comment by chanh.q....@gtempaccount.com
on 23 Sep 2010 at 9:28
Original issue reported on code.google.com by
chanh.q....@gtempaccount.com
on 22 Sep 2010 at 9:13