bs4.Comment.isalnum

Comment.isalnum() → bool

Return True if all characters in S are alphanumeric and there is at least one character in S, False otherwise.