Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3: new.instancemethod is no more #8658

josephsl opened this Issue Aug 22, 2018 · 3 comments


4 participants
Copy link

commented Aug 22, 2018


Discovered while trying to figure out why speech synthesizers were not loading in python 3 port: new.instancemethod is gone.

Steps to reproduce:

  1. Run Python 2.7 and 3.7 interpreters.
  2. Type "import new".

Actual behavior:

Python 3 raises "ModuleNotFoundError".

Expected behavior:"New" module or its closest replqcement (currently types) should be loaded in Python 3.

System configuration:

NVDA Installed/portable/running from source:

Not applicable

NVDA version:


Windows version:

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:


Other questions:

Does the issue still occur after restarting your PC?

Not applicable

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.


@josephsl josephsl added the Python 3 label Aug 22, 2018


This comment has been minimized.

Copy link

commented Aug 22, 2018

Is types.MethodType proper for this?


This comment has been minimized.

Copy link

commented Aug 22, 2018

a simple grep of instancemethod in the git repository turns out that instancemethod is only imported in the NVDAObjects module (, but it is unused.


This comment has been minimized.

Copy link
Collaborator Author

commented Aug 22, 2018

@leonardder leonardder added this to To do in Update NVDA to Python 3 via automation Dec 11, 2018

Update NVDA to Python 3 automation moved this from To do to Done Dec 13, 2018

@nvaccessAuto nvaccessAuto added this to the 2018.4 milestone Dec 13, 2018

feerrenrut added a commit that referenced this issue Dec 13, 2018

AutoPropertyObject: support abstract and class properties (PR #8393)
Closes #8294
Fixes #8652
Closes #8658

Properties and methods within classes can now be marked as abstract in NVDA. These classes will raise an error if instantiated.
See PR #8393 for full description.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.