Title: imp.find_module crashes Python if there exists a directory named "__init__.py" · Issue #51981 · python/cpython · GitHub
Open Graph Title: imp.find_module crashes Python if there exists a directory named "__init__.py" · Issue #51981 · python/cpython
X Title: imp.find_module crashes Python if there exists a directory named "__init__.py" · Issue #51981 · python/cpython
Description: BPO 7732 Nosy @warsaw, @brettcannon, @doko42, @amauryfa, @ncoghlan, @orsenthil, @pitrou, @vstinner, @bitdancer, @Trundle, @florentx Files issue7732_find_module_v2.diff: Patch, apply to trunkimport_directory-py3k.patchpyfile_fromfile_clos...
Open Graph Description: BPO 7732 Nosy @warsaw, @brettcannon, @doko42, @amauryfa, @ncoghlan, @orsenthil, @pitrou, @vstinner, @bitdancer, @Trundle, @florentx Files issue7732_find_module_v2.diff: Patch, apply to trunkimport_...
X Description: BPO 7732 Nosy @warsaw, @brettcannon, @doko42, @amauryfa, @ncoghlan, @orsenthil, @pitrou, @vstinner, @bitdancer, @Trundle, @florentx Files issue7732_find_module_v2.diff: Patch, apply to trunkimport_...
Opengraph URL: https://github.com/python/cpython/issues/51981
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"imp.find_module crashes Python if there exists a directory named \"__init__.py\"","articleBody":"BPO | [7732](https://bugs.python.org/issue7732)\n--- | :---\nNosy | @warsaw, @brettcannon, @doko42, @amauryfa, @ncoghlan, @orsenthil, @pitrou, @vstinner, @bitdancer, @Trundle, @florentx\nFiles | \u003cli\u003e[issue7732_find_module_v2.diff](https://bugs.python.org/file16029/issue7732_find_module_v2.diff \"Uploaded as text/plain at 2010-01-28.20:11:25 by @florentx\"): Patch, apply to trunk\u003c/li\u003e\u003cli\u003e[import_directory-py3k.patch](https://bugs.python.org/file22415/import_directory-py3k.patch \"Uploaded as text/plain at 2011-06-20.13:35:22 by @vstinner\")\u003c/li\u003e\u003cli\u003e[pyfile_fromfile_close.patch](https://bugs.python.org/file22416/pyfile_fromfile_close.patch \"Uploaded as text/plain at 2011-06-20.13:59:10 by @vstinner\")\u003c/li\u003e\n\n\u003csup\u003e*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup\u003e\n\n\u003cdetails\u003e\u003csummary\u003eShow more details\u003c/summary\u003e\u003cp\u003e\n\nGitHub fields:\n```python\nassignee = 'https://github.com/vstinner'\nclosed_at = \u003cDate 2013-08-23.19:20:34.694\u003e\ncreated_at = \u003cDate 2010-01-18.12:07:04.800\u003e\nlabels = ['library', 'type-crash']\ntitle = 'imp.find_module crashes Python if there exists a directory named \"__init__.py\"'\nupdated_at = \u003cDate 2013-08-23.19:20:34.693\u003e\nuser = 'https://github.com/Trundle'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2013-08-23.19:20:34.693\u003e\nactor = 'pitrou'\nassignee = 'vstinner'\nclosed = True\nclosed_date = \u003cDate 2013-08-23.19:20:34.694\u003e\ncloser = 'pitrou'\ncomponents = ['Library (Lib)']\ncreation = \u003cDate 2010-01-18.12:07:04.800\u003e\ncreator = 'Trundle'\ndependencies = []\nfiles = ['16029', '22415', '22416']\nhgrepos = []\nissue_num = 7732\nkeywords = ['patch']\nmessage_count = 29.0\nmessages = ['98007', '98009', '98010', '98011', '98012', '98472', '98474', '98475', '98476', '98477', '102694', '102695', '102699', '102702', '110328', '113336', '138707', '138716', '144450', '144463', '144465', '144977', '147532', '147628', '190762', '191820', '195668', '195672', '196012']\nnosy_count = 14.0\nnosy_names = ['barry', 'brett.cannon', 'doko', 'amaury.forgeotdarc', 'ncoghlan', 'orsenthil', 'pitrou', 'vstinner', 'r.david.murray', 'Trundle', 'flox', 'l0nwlf', 'BreamoreBoy', 'python-dev']\npr_nums = []\npriority = 'high'\nresolution = 'fixed'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = None\ntype = 'crash'\nurl = 'https://bugs.python.org/issue7732'\nversions = ['Python 2.6', 'Python 2.7', 'Python 3.2', 'Python 3.3']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/Trundle","@type":"Person","name":"Trundle"},"datePublished":"2010-01-18T12:07:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":29},"url":"https://github.com/51981/cpython/issues/51981"}
| 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:3ea191ad-c6b7-4bcd-65df-4f87ba0d4efe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD64:1BECEB:2022C27:2B0A5F8:6A537973 |
| html-safe-nonce | 4c3d56e36823e5f18f42ba247224f621a145ada021f9ab76050b7bffda7ed261 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDY0OjFCRUNFQjoyMDIyQzI3OjJCMEE1Rjg6NkE1Mzc5NzMiLCJ2aXNpdG9yX2lkIjoiODczOTc3OTczNjM4NDAxMDYxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 51ed7379102f4bff5a8c2a296fe973ead1dce36681bde0591f5019120d85a72c |
| hovercard-subject-tag | issue:1198851368 |
| 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/51981/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f3aac7ce9c0b1a792d22cc727c450b2dfe791be99da46a7b1d159c4510e751bc/python/cpython/issues/51981 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f3aac7ce9c0b1a792d22cc727c450b2dfe791be99da46a7b1d159c4510e751bc/python/cpython/issues/51981 |
| og:image:alt | BPO 7732 Nosy @warsaw, @brettcannon, @doko42, @amauryfa, @ncoghlan, @orsenthil, @pitrou, @vstinner, @bitdancer, @Trundle, @florentx Files issue7732_find_module_v2.diff: Patch, apply to trunkimport_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Trundle |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width