Christoph Egger <christ...@debian.org> writes:
> Christoph Egger <christ...@debian.org> writes:
>> AttributeError: 'module' object has no attribute 'LDNS_RR_CLASS_IN'
>
> FWIW inspecting the _ldns module (the native C part, ldns without the
> underscore is a thin python wrapper), the following name seems to exist:
>
> | _ldns.LDNS_RR_CLASS_IN_swigconstant
>
> Notice the _swigconstant
> Is ldns.py as installed actually generated with the same swig version as
> the shared object?

Seems the name without the _swigconstant suffix comes directly from the
interface description shipped with the source:

| ./ldns_resolver.i:429:        def get_addr_by_name(self, name, aclass = 
_ldns.LDNS_RR_CLASS_IN, flags = _ldns.LDNS_RD):

Christoph

-- 
9FED 5C6C E206 B70A 5857  70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer

Reply via email to