Title: Class HTMLParser may not be initialized properly as method ParserBase.__init__ is not called from its __init__ method · Issue #95813 · python/cpython · GitHub
Open Graph Title: Class HTMLParser may not be initialized properly as method ParserBase.__init__ is not called from its __init__ method · Issue #95813 · python/cpython
X Title: Class HTMLParser may not be initialized properly as method ParserBase.__init__ is not called from its __init__ method · Issue #95813 · python/cpython
Description: Bug report Hello, I receive the error in the title from LGTM.com when subclassing the HTMLParser class. Should HTMLParser technically be calling: super().__init__(), or something similar, in its own initialiser? I know adding this call w...
Open Graph Description: Bug report Hello, I receive the error in the title from LGTM.com when subclassing the HTMLParser class. Should HTMLParser technically be calling: super().__init__(), or something similar, in its ow...
X Description: Bug report Hello, I receive the error in the title from LGTM.com when subclassing the HTMLParser class. Should HTMLParser technically be calling: super().__init__(), or something similar, in its ow...
Opengraph URL: https://github.com/python/cpython/issues/95813
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Class HTMLParser may not be initialized properly as method ParserBase.__init__ is not called from its __init__ method","articleBody":"# Bug report\r\n\r\nHello,\r\n\r\nI receive the error in the title from LGTM.com when subclassing the HTMLParser class. Should HTMLParser technically be calling: `super().__init__()`, or something similar, in its own initialiser? I know adding this call won't improve the functionality as the BaseParser initialiser does nothing of interest for subclasses, but I guess it would stop annoying errors like this.\r\n\r\nRelevant code is here:\r\nhttps://github.com/python/cpython/blob/eb81c1aea16914347919745e843c982ed831a9fb/Lib/html/parser.py#L62-L93\r\n\r\nAnd here:\r\nhttps://github.com/python/cpython/blob/eb81c1aea16914347919745e843c982ed831a9fb/Lib/_markupbase.py#L23-L30","author":{"url":"https://github.com/MyreMylar","@type":"Person","name":"MyreMylar"},"datePublished":"2022-08-09T07:50:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/95813/cpython/issues/95813"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5cf61806-5304-9502-67ea-b5fd9271f857 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF08:312517:411B10:5A625D:696A6AC4 |
| html-safe-nonce | cecdd98e18b745d371bacd908c66c212b68898b7850418f299032ae7e17cd808 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjA4OjMxMjUxNzo0MTFCMTA6NUE2MjVEOjY5NkE2QUM0IiwidmlzaXRvcl9pZCI6IjY5OTAzMDAxMDc3MDk3NzA0MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 32c0fefb02ff25a4c35aa33d4ef3cee590d0e7104bbdf4bfd0457734ef57ab57 |
| hovercard-subject-tag | issue:1332857707 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/95813/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ac0d150ee291795fad98f4417af509f3458058db53ddf0ff0a4a8848be20fbe0/python/cpython/issues/95813 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ac0d150ee291795fad98f4417af509f3458058db53ddf0ff0a4a8848be20fbe0/python/cpython/issues/95813 |
| og:image:alt | Bug report Hello, I receive the error in the title from LGTM.com when subclassing the HTMLParser class. Should HTMLParser technically be calling: super().__init__(), or something similar, in its ow... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MyreMylar |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6fea32d5b7276b841b7a803796d9715bc6cfb31ed549fdf9de2948ac25d12ba6 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f2d9f6432a5a115ec709295ae70623f33bb80aee |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width