Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 30th, 2012  |  syntax: None  |  size: 0.31 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/usr/bin/env python2.7
  2.  
  3. import time
  4. import urllib
  5.  
  6. class Hyper(object):
  7.     """docstring for Hyper"""
  8.     def __init__(self):
  9.         super(Hyper, self).__init__()
  10.  
  11.     def some_func(self):
  12.         get_res = urllib.urlopen()
  13.         return get_res.read()
  14.  
  15.     def s_func(self):
  16.         time.sleep(5)
  17.         pass