PyCharm 3.4.1: unresolved 'map' link

As you know, map is a built-in python function.

I am currently using PyCharm 3.4.1 and it reports

 Unresolved reference 'map' 

in my code:

 a = map(int, [1,2,3]) 

where the word card was red, underlining, and shows this message tip.

enter image description here

I read about the question: PyCharm shows an unresolved link error for valid code

And made File | Invalidate Caches ... and rebooting PyCharm helps.

But the problem has not yet been resolved.


For more information, I am working on a django 1.6 object.

and the project interpreter is as follows:

enter image description here

Can anyone explain why and how? Many thanks!

+5
source share
1 answer

Finally, I myself found this:

Pycharm generates a builtins.py file for code hint.

Perhaps this is the way:

C:\Program Files (x86)\JetBrains\PyCharm 3.4.1\helpers\python-skeletons\builtins.py

Randomly select a built-in function, click it with the Ctrl key, then this file will be opened in PyCharm.

Then I see the error, but still do not know how and when this happens:

enter image description here

I see that the multi-line comment block was not closed correctly.

I manually fixed it and everything went well!

+1
source

Source: https://habr.com/ru/post/1202394/


All Articles