BIND 10 #1883: define tp_hash for some basic isc.dns classes
BIND 10 Development
do-not-reply at isc.org
Tue Apr 10 22:23:56 UTC 2012
#1883: define tp_hash for some basic isc.dns classes
-------------------------------------+-------------------------------------
Reporter: jinmei | Owner:
Type: task | UnAssigned
Priority: medium | Status: new
Component: libdns++ | Milestone: Next-
Sensitive: 0 | Sprint-Proposed
Sub-Project: DNS | Keywords:
Estimated Difficulty: 0 | Defect Severity: N/A
Total Hours: 0 | Feature Depending on Ticket:
| Add Hours to Ticket: 0
| Internal?: 0
-------------------------------------+-------------------------------------
In our Python wrappers tp_hash are generally (if not always) NULL,
so we cannot use our C++ based Python classes with python hash
naturally. It's inconvenient, and could also cause performance
issues.
I propose defining tp_hash for some basic classes like isc.dns.Name,
isc.dns.RRType, and isc.dns.RRClass. For the latter two the hash
should be trivial. For name, we can use a hash function defined in
`LabelSequence`.
--
Ticket URL: <http://bind10.isc.org/ticket/1883>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list