Uploaded image for project: 'PyLucene'
  1. PyLucene
  2. PYLUCENE-46

__dir__ module paramter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • Windows, Python3.7, JCC 3.4

    Description

      Hi,

      Since Python 3.7 the _dir_ module attribute is part of the API to return the values that shall be presented from the "dir" python command.

      https://www.python.org/dev/peps/pep-0562/

      https://docs.python.org/3/reference/datamodel.html#object.__dir__

      The top level module of wrapped libraries use this variable name for the path to the module location, which confuses some IDE's. "TypeError: 'str' object is not callable"

      The best would be if this module _dir_() returned the names of the top level wrapped classes, but renaming the variable should solve the IDE problem.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            petrush Petrus Hyvönen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: