You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we only expose name, rank = tax[tax_id] in Python, but we should add a way to set properties via indexing for ergonomics. I think this could either take the form of:
a dedicated TaxonomyNode object that mediates editing with the taxonomy (internally it would probably keep a reference the same way the TaxonomyIterator does)
a namedtuple as the return and treating it the same was as a dedicated object above
a regular tuple as the return and some sort of coercion on setting from other tuples with fewer element; this seem more brittle than the other options
The text was updated successfully, but these errors were encountered:
Right now we only expose
name, rank = tax[tax_id]
in Python, but we should add a way to set properties via indexing for ergonomics. I think this could either take the form of:TaxonomyNode
object that mediates editing with the taxonomy (internally it would probably keep a reference the same way theTaxonomyIterator
does)namedtuple
as the return and treating it the same was as a dedicated object aboveThe text was updated successfully, but these errors were encountered: