Skip to content

Python 3: new.instancemethod is no more #8658

@josephsl

Description

@josephsl

Hi,

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:

N/A

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:

N/A

Other questions:

Does the issue still occur after restarting your PC?

Not applicable

Have you tried any other versions of NVDA?

N/A

Impact:

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.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions