You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-dev@lucene.apache.org by "Andi Vajda (JIRA)" <ji...@apache.org> on 2019/03/04 22:44:00 UTC
[jira] [Resolved] (PYLUCENE-46) __dir__ module paramter
[ https://issues.apache.org/jira/browse/PYLUCENE-46?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andi Vajda resolved PYLUCENE-46.
--------------------------------
Resolution: Fixed
> __dir__ module paramter
> ------------------------
>
> Key: PYLUCENE-46
> URL: https://issues.apache.org/jira/browse/PYLUCENE-46
> Project: PyLucene
> Issue Type: Bug
> Environment: Windows, Python3.7, JCC 3.4
> Reporter: Petrus Hyvönen
> Priority: Minor
>
> 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.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Re: [jira] [Resolved] (PYLUCENE-46) __dir__ module paramter
Posted by Andi Vajda <va...@apache.org>.
You're welcome !
Andi..
> On Mar 4, 2019, at 22:29, Petrus Hyvönen <pe...@gmail.com> wrote:
>
> Thanks Andi..
>
>> On Mon, Mar 4, 2019 at 11:44 PM Andi Vajda (JIRA) <ji...@apache.org> wrote:
>>
>>
>> [
>> https://issues.apache.org/jira/browse/PYLUCENE-46?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>> ]
>>
>> Andi Vajda resolved PYLUCENE-46.
>> --------------------------------
>> Resolution: Fixed
>>
>>> __dir__ module paramter
>>> ------------------------
>>>
>>> Key: PYLUCENE-46
>>> URL: https://issues.apache.org/jira/browse/PYLUCENE-46
>>> Project: PyLucene
>>> Issue Type: Bug
>>> Environment: Windows, Python3.7, JCC 3.4
>>> Reporter: Petrus Hyvönen
>>> Priority: Minor
>>>
>>> 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.
>>>
>>
>>
>>
>> --
>> This message was sent by Atlassian JIRA
>> (v7.6.3#76005)
>>
>
>
> --
> _____________________________________________
> Petrus Hyvönen, Uppsala, Sweden
> Mobile Phone/SMS:+46 73 803 19 00
Re: [jira] [Resolved] (PYLUCENE-46) __dir__ module paramter
Posted by Petrus Hyvönen <pe...@gmail.com>.
Thanks Andi..
On Mon, Mar 4, 2019 at 11:44 PM Andi Vajda (JIRA) <ji...@apache.org> wrote:
>
> [
> https://issues.apache.org/jira/browse/PYLUCENE-46?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> ]
>
> Andi Vajda resolved PYLUCENE-46.
> --------------------------------
> Resolution: Fixed
>
> > __dir__ module paramter
> > ------------------------
> >
> > Key: PYLUCENE-46
> > URL: https://issues.apache.org/jira/browse/PYLUCENE-46
> > Project: PyLucene
> > Issue Type: Bug
> > Environment: Windows, Python3.7, JCC 3.4
> > Reporter: Petrus Hyvönen
> > Priority: Minor
> >
> > 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.
> >
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v7.6.3#76005)
>
--
_____________________________________________
Petrus Hyvönen, Uppsala, Sweden
Mobile Phone/SMS:+46 73 803 19 00