Results 52 comments of Eugene Crosser

> Nope, it's too strict logic that forces `__getattribute__()` to use only defined set of NLA names. Which set is empty for fake nla objects returned for non-existing NLA. >...

Indeed it works for me! Thanks a lot @ffourcot ! (not closing because I think context manager would be useful still!)

I agree, but isn't the current situation even worse? Different threads pushing and popping uncoordinated against a single(?) global array? In a context manager, you might at least use a...

Thinking out loud: Perhaps make an interface akin to `NSPopen` rather than a context manager. Semantics could be: take a callable object as an argument and evaluate it in a...

Are there any plans to follow this up? I now need a way to dump and to populate conntrack tables, and I am considering my options. pyroute2 does not seem...

@ffourcot, actually I realized that everything is in place already (sans filtering, but it is easy to implement on the application side). `Conntrack` object has dump(), and entry('del', ...) /...

I think that using the destructor for resource management is generally discouraged on the grounds that the time when it is called is unpredictable (and may never happen at all)...

You are right, it's better than just losing the descriptor altogether. An alternative would be to raise an exception, but that would be perhaps too harsh.