Closed mush42 closed 4 years ago
Hi,
I don't know if this has any effect, but 'Node.unwrap_tags' should accept any iterable rather than only lists.
The following exception is raised when calling Node.unwrap_tags with a set:
html.body.unwrap_tags({'a', 'span', 'div',}) TypeError: Argument 'tags' has incorrect type (expected list, got set)
I'm not sure if it makes sense to allow arbitrarily iterables. It's strongly typed for speed. We need to benchmark it.
Got it. I'm willing to work under some constraints if it make things faster.
Hi,
I don't know if this has any effect, but 'Node.unwrap_tags' should accept any iterable rather than only lists.
The following exception is raised when calling Node.unwrap_tags with a set: