-
-
Notifications
You must be signed in to change notification settings - Fork 511
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
socket module setattr #826
Comments
fixed empty param function. print jedi.Script("import socket;s = socket.socket(); s.accept()", 1, 44).call_signatures() patch: diff -urN a/bundle/jedi-vim/jedi/evaluate/compiled/__init__.py b/bundle/jedi-vim/jedi/evaluate/compiled/__init__.py
--- a/bundle/jedi-vim/jedi/evaluate/compiled/__init__.py 2017-01-07 18:57:34.000000000 +0800
+++ b/bundle/jedi-vim/jedi/evaluate/compiled/__init__.py 2017-01-08 21:34:18.499759500 +0800
@@ -122,7 +122,9 @@
parts = p.strip().split('=')
if len(parts) > 1:
parts.insert(1, Operator('=', (0, 0)))
- yield UnresolvableParamName(self, parts[0])
+
+ if parts[0]:
+ yield UnresolvableParamName(self, parts[0])
def __repr__(self):
return '<%s: %s>' % (self.__class__.__name__, repr(self.obj)) |
What Python version are you on? I'm getting decent completions on Python 3, but I'm not sure about Python 2. |
python 2.7 in |
I think it will be too complicated to get it working for 2.7. I'm closing for now. Use the new Python, it's awesome :) |
@davidhalter Would you accept a PR that adds the |
No. Dump your legacy Python and enjoy the brave new world ;-) However, the actual reason is that I don't want to maintain that. #385 is pretty much the next thing I'm going to do and it would be one more thing that I'd have to migrate. So at least wait until that is done. |
in dev branch
can't completion such as connect, i try traced in socket.py.
set
auto_import_modules
but param is empty.
I try patched it
have problem?
The text was updated successfully, but these errors were encountered: