New submission from Robert Rouhani <robert.rouh...@gmail.com>:

It appears as though PyImport_ReloadModule is importing the deprecated "imp" 
module.

I integrated a newer version of Python into Unreal Engine 4, which internally 
calls this function for some of it's own modules. Normally a stray warning 
wouldn't be of much concern to me, but the process of "cooking" (converting raw 
assets to optimized/final assets) will fail if anything is written to stderr. 
This makes it impossible to package a copy of the game for testing or release 
without a workaround.

I'm going to add a test to _testembed.c to verify my fix. Is this something 
that I should include in the Github PR?

----------
components: Interpreter Core
messages: 367501
nosy: Robert Rouhani
priority: normal
severity: normal
status: open
title: PyImport_ReloadModule emits deprecation warning
type: behavior
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40417>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to