[New-bugs-announce] [issue15902] imp.load_module won't accept None for the file argument for a C extension
report at bugs.python.org
Mon Sep 10 14:04:49 CEST 2012
New submission from Paul Moore:
imp.load_module appears to have a regression - the file argument is not allowed to be None when loading a C_EXTENSION. The pywin32 post-install script for version 217 calls imp.load_module for a C extension with file=None, so presumably this worked in earlier versions.
Note that apparently pywin32 tip no longer calls load_module in this way, and load_module is marked as deprecated in the documentation, so it is not clear if this issue actually needs fixing.
See #15828 for some background.
components: Library (Lib)
nosy: brett.cannon, georg.brandl, ncoghlan, pmoore
title: imp.load_module won't accept None for the file argument for a C extension
versions: Python 3.3
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce