David Halter
cb21de45f1
add parsing tests for name/call positions
2013-08-16 21:34:58 +04:30
David Halter
8996bd6ad1
modifications to use a differnt kind of completion for the interpreter
2013-08-16 13:38:50 +04:30
David Halter
fbcecaf1ef
deprecate 'source_path' as a Script parameter in favour of 'path'
2013-08-15 19:25:19 +04:30
David Halter
9a3ea38b1c
use builtin repl completion after all, but written by us not the std lib module, which doesn't seem to work really, #280
2013-08-15 12:47:10 +04:30
David Halter
a895561f1a
fixed a problem that combined __getattr__ and usages
2013-08-13 15:39:26 +04:30
David Halter
e07625017d
remove all the deprecation warnings in jedi itself
2013-08-11 23:00:27 +04:30
David Halter
86394a7ed5
fix problems with imports as user_statement and brackets, fixes #285
2013-08-11 01:14:13 +04:30
David Halter
649135ea7b
goto_assignments more readable
2013-08-11 00:06:04 +04:30
David Halter
2ea2a8c6cd
filter all non executables when used with call_signatures, fixes #240
2013-08-07 14:36:35 +04:30
David Halter
c6e08221ce
fixed more import problems (also with the import usage), definitely fixes davidhalter/jedi-vim#152
2013-08-07 10:24:28 +04:30
David Halter
1a8227aeec
changed no duplicate modules test to respect attributes with the same name as their module
2013-08-06 13:52:25 +04:30
David Halter
0dc3106569
add keyword_names method to keyword module (includes test), fixes #248
2013-08-06 10:55:05 +04:30
David Halter
972d4e9a08
fix a problem with dynamic flow information and usages
2013-07-24 01:28:15 +02:00
David Halter
991b138ff3
star imports and usages
2013-07-23 17:21:12 +02:00
David Halter
fd2e158cf6
fix usage problem on **kwargs params
2013-07-23 16:33:59 +02:00
David Halter
52c8340d72
invalid goto syntax
2013-07-23 00:19:58 +02:00
David Halter
b6e9f16a01
fix a completion problem on docstrings
2013-07-17 16:48:50 +02:00
Laurens Van Houtven
bb0a4e0d0a
Fix indentation according to PEP8 in api.py
2013-07-11 14:55:36 +02:00
Laurens Van Houtven
3817110717
Remove unneccessary pass statement
2013-07-11 14:55:16 +02:00
Laurens Van Houtven
cdc41128b4
(Mostly) whitespace fixes
2013-07-10 14:45:47 +02:00
Takafumi Arakaki
a4922774c0
Fix the previous error
2013-05-23 15:32:32 +02:00
David Halter
384334ae06
goto on import statement (only import) raised an error
2013-05-19 20:40:54 +04:30
Takafumi Arakaki
6acf34efd3
Fix: api.defined_names was run against wrong scope
...
when there is only one class is defined in the module.
2013-05-19 05:08:18 +02:00
Takafumi Arakaki
5f2477d5bf
Merge branch 'interpreter-api' into dev
...
Conflicts:
jedi/__init__.py
test/test_regression.py
See: #145
2013-05-18 22:28:56 +02:00
David Halter
15885e8685
preload_module function for IDEs, to control which modules to load on startup, refs #102
2013-05-13 09:13:59 +04:30
Takafumi Arakaki
19b3fef0c5
Remove fast option from api.Script
2013-05-11 21:59:39 +02:00
Takafumi Arakaki
a870fece0f
Use fast parser in api.Interpreter
2013-05-11 21:47:55 +02:00
Takafumi Arakaki
2846fe980b
Remove api._quick_complete
2013-05-11 21:40:00 +02:00
Takafumi Arakaki
08f8dcfae4
Do not repeat defaults in Interpreter.__init__
2013-05-11 21:37:53 +02:00
Takafumi Arakaki
6af2a0677d
Compute default line/column/source_path in api.Script
2013-05-11 21:36:43 +02:00
Takafumi Arakaki
633f582184
Add jedi.interpret.ObjectImporter
...
and move scope manipulation functions in api.Interpreter to there.
2013-05-11 21:33:57 +02:00
Takafumi Arakaki
e8914e7856
Document api.Interpreter
2013-05-04 17:45:34 +02:00
Takafumi Arakaki
8fc396371c
Respect settings.fast_parser
2013-05-04 17:44:59 +02:00
Takafumi Arakaki
dc47d15de0
Use locals() for tests in TestInterpreterAPI
...
It is better to check that Interpreter does not fail with the
real name space. Previously the doctest using locals() failed
because of the bug in _import_raw_namespace.
2013-05-04 17:44:59 +02:00
Takafumi Arakaki
a93016db1b
Python 2.5 compatibility fix
2013-05-04 17:44:59 +02:00
Takafumi Arakaki
af10891096
Document api.Interpreter._genname
2013-05-04 17:44:59 +02:00
Takafumi Arakaki
fc79f0e258
Support case like from os.path import join as pjoin
2013-05-04 17:44:59 +02:00
Takafumi Arakaki
6fb42e5f4b
Document _import_raw_namespace more
2013-05-04 17:44:59 +02:00
Takafumi Arakaki
12ac71b1fd
Document api.Interpreter
2013-05-04 17:44:59 +02:00
Takafumi Arakaki
45cad4c83b
Fake imports should locate before fake statements
2013-05-04 17:44:59 +02:00
Takafumi Arakaki
06c03cafa2
Implement the case where raw object is an instance
...
There is still a bug in this implementation.
The corresponding test fails.
2013-05-04 17:44:58 +02:00
Takafumi Arakaki
11abd92d2b
Support alias in _make_fakeimport
2013-05-04 17:44:58 +02:00
Takafumi Arakaki
cf48d1272d
Use proper interface to add fake Import object
2013-05-04 17:44:58 +02:00
Takafumi Arakaki
17770356e2
Implement the case where raw object is a module
...
Previously failing test_complete_raw_module is passed.
2013-05-04 17:44:58 +02:00
Takafumi Arakaki
3266aa2d00
Improve api.Interpreter docstring
2013-05-04 17:43:37 +02:00
Takafumi Arakaki
842fbfce8a
Add api.Interpreter: Jedi API for Python REPLs
2013-05-04 17:43:37 +02:00
David Halter
4d0417f591
change some definition usages to goto_definitions in tests and docs
2013-05-03 21:35:01 +04:30
David Halter
7c8fee1257
removed a lot of the goto usages, used goto_assignments instead. Did the same also for a lot of definition uses
2013-05-03 21:26:29 +04:30
David Halter
edd0a08351
api_classes.RelatedName -> Usage
2013-05-03 21:06:56 +04:30
David Halter
efeeee9706
removed related_names occurences in favor of usages
2013-05-03 21:04:36 +04:30