¡@

Home 

python Programming Glossary: self.last_update

Throttling with urllib2

http://stackoverflow.com/questions/456649/throttling-with-urllib2

def __init__ self bucket filename self.bucket bucket self.last_update 0 self.last_downloaded_kb 0 self.filename filename self.avg_rate.. self.bucket.consume predicted_size now time.time delta now self.last_update if self.last_update 0 if delta 0 rate just_downloaded delta.. predicted_size now time.time delta now self.last_update if self.last_update 0 if delta 0 rate just_downloaded delta if self.avg_rate is..