Home › Forums › kdb+ › embedPy/ BeautifulSoup › Re: embedPy/ BeautifulSoup
-
Actually, subsequent to this, using:
q)p)def func(x):return x.attrs
in place of
q)p)def func(x):return str(x)
will return a python dictionary of attributes. Since this is a native python type, I found that it imports to Q as a dictionary and keeps the nested structure.