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 <rep...@bugs.python.org>
<http://bugs.python.org/issue15902>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to