I agree with you. I&#x27;m also not convinced that these kind of selectors are good to match Python code. It was more an exercise to develop a generic library that helps implementing jQuery-like selectors [1].<p>Even if the project doesn&#x27;t go too far, it was a good fun for my weekend.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;caioariede&#x2F;pyq&#x2F;tree&#x2F;master&#x2F;sizzle" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;caioariede&#x2F;pyq&#x2F;tree&#x2F;master&#x2F;sizzle</a>