How to use a global variable inside the initialiser of a class in Python 3?
for eg
import urllib
from urllib.request import urlopen
class ABC(object):
def __init__(self):
x=urlopen('http://www.google.com/').read()
How do I convert x into a global variable?