How to set the global variable so that it can be accessed and released inside other methods

Mark Lawrence breamoreboy at
Fri Oct 3 23:55:56 CEST 2014

On 03/10/2014 22:43, Milson Munakami wrote:
> Hi Chris,
> I want to remove that CreateNet() part from the test class so that it will not create network every time in setup() because all the test cases are run and tested in same network!
> But the test class method also need to access the net object
> How can I do that?
> Please Help.
> Thanks,
> Milson

You are far more likely to get answers if you don't top post and if you 
don't use the obnoxious google groups.  I've snipped roughly 600 lines 
from your reply.  To avoid sending the rubbish that many of us here 
don't want to see would you please access this list via or read and action 
this to prevent us 
seeing double line spacing and single line paragraphs, thanks.

My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

More information about the Python-list mailing list