C
C
cyberXndr2013-04-25 11:50:15
Python
cyberXndr, 2013-04-25 11:50:15

Autocomplete in PyCharm?

I use the following code

import requests
r = requests.get("http://habrahabr.ru")
print(r.text)

Everything compiles fine, but the editor doesn't pop up the list of available methods and properties for the r variable. Why? According to the python-requests documentation , they are there.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bagyr, 2013-04-25
@cyberXndr

There is a suspicion that the docstring is not supported.
It worked for me like this:

r = requests.request('GET', 'http://habr.ru')
assert isinstance(r, requests.Response)
r.<ctrl+ENTER>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question