[New-bugs-announce] [issue15902] imp.load_module won't accept None for the file argument for a C extension

Paul Moore 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)
keywords: 3.3regression
messages: 170178
nosy: brett.cannon, georg.brandl, ncoghlan, pmoore
priority: normal
severity: normal
status: open
title: imp.load_module won't accept None for the file argument for a C extension
type: behavior
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15902>
_______________________________________


More information about the New-bugs-announce mailing list