Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete requests #44

Closed
dbrgn opened this issue Oct 26, 2012 · 3 comments
Closed

Complete requests #44

dbrgn opened this issue Oct 26, 2012 · 3 comments

Comments

@dbrgn
Copy link
Collaborator

dbrgn commented Oct 26, 2012

import requests

r = requests.post('http://google.com', {'foo': 'bar'})
r.st<tab>

This should return r.status_code.

@dbrgn
Copy link
Collaborator Author

dbrgn commented Oct 28, 2012

This is probably invalid due to davidhalter/jedi-vim#31.

@davidhalter
Copy link
Owner

Seems like a very complicated case. It's not invalid and should work, but it uses lots of redirections, which are really tedious to understand completely. Currently there's an error thrown internally:

  File "/home/david/.vim/bundle/jedi-vim/jedi/jedi/evaluate.py", line 670, in iterate for array in arrays:
  File "/home/david/.vim/bundle/jedi-vim/jedi/jedi/evaluate.py", line 267, in __getattr__
      raise AttributeError("Instance %s: Don't touch this (%s)!"
  AttributeError: Instance <eInstance of <eClass of <Class: dict@1666-1806>> (var_args: 17)>:
  Don't touch this (get_contents)!

This means that something want's to iterate through dicts, which is not implemented yet, so you have to be a little bit patient, I will do it in ~ 2-3 Months.

@davidhalter
Copy link
Owner

Wasn't that hard after all. :-) Just a little bug ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants