Skip to content

generator function for faster callbacks #7

Open

Description

@GoogleCodeExporter
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

Activity

  1. GoogleCodeExporter commented on Feb 13, 2016

    @GoogleCodeExporter
    Author
    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions