str(some_tag) - infinite recursion
Bug #1967610 reported by
vishvAs vAsuki
This bug report is a duplicate of:
Bug #1471755: Converting a tag to a string can exceed maximum recursion depth.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Beautiful Soup |
New
|
Undecided
|
Unassigned |
Bug Description
Problem code (use section_html given in the attachment):
soup = BeautifulSoup(
message_tag = soup.select_
str(message_tag)
Was trying to parse - https:/
To post a comment you must log in.
Trace:
File "/home/ vvasuki/ sanskrit- coders/ doc_curation/ doc_curation/ mail_stream/ google_ groups. py", line 75, in get_thread_ messages_ selenium md_with_ pandoc( content_ in=str( message_ tag), source_ format= "html") python3. 10/site- packages/ bs4/element. py", line 1576, in __unicode__ python3. 10/site- packages/ bs4/element. py", line 1683, in decode contents( python3. 10/site- packages/ bs4/element. py", line 1777, in decode_contents c.decode( indent_ level, eventual_encoding, python3. 10/site- packages/ bs4/element. py", line 1683, in decode contents( python3. 10/site- packages/ bs4/element. py", line 1777, in decode_contents c.decode( indent_ level, eventual_encoding, python3. 10/site- packages/ bs4/element. py", line 1683, in decode contents( python3. 10/site- packages/ bs4/element. py", line 1777, in decode_contents c.decode( indent_ level, eventual_encoding, python3. 10/site- packages/ bs4/element. py", line 1683, in decode contents( python3. 10/site- packages/ bs4/element. py", line 1777, in decode_contents
content = md.get_
File "/usr/lib/
return self.decode()
File "/usr/lib/
contents = self.decode_
File "/usr/lib/
s.append(
File "/usr/lib/
contents = self.decode_
File "/usr/lib/
s.append(
File "/usr/lib/
contents = self.decode_
File "/usr/lib/
s.append(
File "/usr/lib/
contents = self.decode_
File "/usr/lib/
... python3. 10/site- packages/ bs4/element. py", line 1640, in decode attributes( self) python3. 10/site- packages/ bs4/formatter. py", line 123, in attributes
File "/usr/lib/
attributes = formatter.
File "/usr/lib/
return sorted(
RecursionError: maximum recursion depth exceeded