[Github-comments] [geany/geany] Autocompletion is misleading in some circumstances for Python (#1306)

programmin1 notifications at xxxxx
Thu Nov 17 02:47:06 UTC 2016


Enter this in a Python file:

```
import os
os.path.list[press tab]
```

Tab shows listdir! I knew listdir() was in one of those modules... only problem is, run it and you will find the autocomplete was wrong, there is no such thing as os.path.listdir, it is os.listdir, in Python2 and 3.

So the autocomplete is actually steering you wrong here, and trusting it may make code that doesn't run.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1306
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20161117/a5bc2c02/attachment.html>


More information about the Github-comments mailing list