BIND 10 #2908: Python wrapper for ZoneTableAccessor and getZoneTableAccessor

BIND 10 Development do-not-reply at isc.org
Wed Jun 12 02:48:18 UTC 2013


#2908: Python wrapper for ZoneTableAccessor and getZoneTableAccessor
-------------------------------------+-------------------------------------
            Reporter:  jinmei        |                        Owner:
                Type:  task          |  vorner
            Priority:  medium        |                       Status:
           Component:  data source   |  reviewing
            Keywords:                |                    Milestone:
           Sensitive:  0             |  Sprint-20130625
         Sub-Project:  DNS           |                   Resolution:
Estimated Difficulty:  5             |                 CVSS Scoring:
         Total Hours:  0             |              Defect Severity:  N/A
                                     |  Feature Depending on Ticket:
                                     |  shared memory data source
                                     |          Add Hours to Ticket:  0
                                     |                    Internal?:  0
-------------------------------------+-------------------------------------
Changes (by pselkirk):

 * owner:  pselkirk => vorner


Comment:

 Replying to [comment:15 vorner]:

 > So I don't want to flatten the two classes into one. I just want to get
 the iterator without an explicit call.

 After researching (googling) the guts of Python iteration, I think I
 finally understand. By moving `ZoneTableAccessor_getIterator` from
 `tp_methods` to `tp_iter`, I can make `ZoneTableAccessor` iterable, while
 still preserving `ZoneTableIterator` as the iterator itself (but mostly
 invisible to the app).

 Like I said, I was led astray by the `DataSrcClient` wrapper, which has
 its own problems, but I'm not going to try to fix them in this ticket.

-- 
Ticket URL: <http://bind10.isc.org/ticket/2908#comment:16>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list