Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Python 3: new.instancemethod is no more #8658
Discovered while trying to figure out why speech synthesizers were not loading in python 3 port: new.instancemethod is gone.
Steps to reproduce:
Python 3 raises "ModuleNotFoundError".
Expected behavior:"New" module or its closest replqcement (currently types) should be loaded in Python 3.
NVDA Installed/portable/running from source:
Windows 10 Version 1803
Name and version of other software in use when reproducing the issue:
Python 2.7, 3.7
Other information about your system:
Does the issue still occur after restarting your PC?
Have you tried any other versions of NVDA?
This may impact object creation and related facilities, a fundamental blocking bug for Python 3 transition. Google searches says use types.instancemethod, or in Python 3, new.instancemethod is not needed.
Hi, confirmed. There are also others that import certain items but never use them (bdDetect and external eSpeak python module, for instance). Thanks. From: Leonard de Ruijter <firstname.lastname@example.org> Sent: Wednesday, August 22, 2018 5:05 AM To: nvaccess/nvda <email@example.com> Cc: Joseph Lee <firstname.lastname@example.org>; Author <email@example.com> Subject: Re: [nvaccess/nvda] Python 3: new.instancemethod is no more (#8658) a simple grep of instancemethod in the git repository turns out that instancemethod is only imported in the NVDAObjects module (init.py), but it is unused. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#8658 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AHgLkC0LXPGp9fulsSfOt60UGV5XnBMpks5uTUkAgaJpZM4WG4ea> .