rightside-data / adns-python

Automatically exported from code.google.com/p/adns-python
0 stars 0 forks source link

generator function for faster callbacks #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
ADNS_State_completed should return Yield like a generator function to
allow callbacks to happen as quick as the DNS reply comes in. This should
be sufficient to deprecate run_max function call as it doesn't add any value.
http://www.python.org/doc/2.5.2/api/gen-objects.html

The deprecated "apply" call in ADNS.py can be replaced by a direct function
call.
http://docs.python.org/library/functions.html#apply

Original issue reported on code.google.com by mybugrep...@gmail.com on 7 Oct 2008 at 9:36

GoogleCodeExporter commented 8 years ago
apply is still in there because adns-python was developed for Python 1.5 
originally.

run_max exists so that queries can be aborted if they take too long, which can 
be
significant for doing DNS blacklist lookups for inbound mail.

Original comment by farcep...@gmail.com on 7 Oct 2008 at 12:42