BIND 10 #1866: isc.dns constants like RRType.A() should be constants, not functions
BIND 10 Development
do-not-reply at isc.org
Fri Mar 30 23:59:30 UTC 2012
#1866: isc.dns constants like RRType.A() should be constants, not functions
-------------------------------------+-------------------------------------
Reporter: jinmei | Owner:
Type: defect | 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 the C++ counterpart we intentionally define them via proxy
functions like RRType::A() to avoid static initialization fiasco.
But there's no such reason for the Python version, and using a
function looks awkward (and would be less efficient). These should be
defined as normal constant in the C++ wrappers.
Those include: `RRType`, `RRClass`, `Opcode`, and `Rcode` (and perhaps
more).
--
Ticket URL: <http://bind10.isc.org/ticket/1866>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list