Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python/Pycharm, Ctrl-Space does not bring up code completion

I have the following file. Why does code completion not run when I press Ctrl-Space after the "r."? It says "no suggestion" in a red box.

(The program as it is runs and puts out: 200)

__author__ = 'hape'

import urllib.request
import urllib.response

print("Starting")
r = urllib.request.urlopen("http://www.python.org")

r.  <------------ No code completion, why not?!

print (r.getcode())

After the r., code completion does not popup, why?

like image 741
Hartmut Pfarr Avatar asked Aug 30 '25 17:08

Hartmut Pfarr


1 Answers

Have you looked at the Pycharm page for Editor code completion settings?

http://www.jetbrains.com/pycharm/webhelp/editor-code-completion.html

By Enabling Smart Type code completion?

http://www.jetbrains.com/pycharm/webhelp/smart-type-code-completion-completing-code-based-on-type-information.html

like image 171
Eric Leschinski Avatar answered Sep 02 '25 05:09

Eric Leschinski