Dave Halter
9663e343c2
Almost the last switch to _get_definition.
2017-09-02 22:42:01 +02:00
Dave Halter
fe9be9fe09
source_to_unicode -> python_bytes_to_unicode.
2017-08-15 20:09:48 +02:00
Dave Halter
f9e31dc941
Refactor splitlines -> split_lines.
2017-08-15 19:55:50 +02:00
Dave Halter
e0485b032e
Fix some stuff to make parso work again.
2017-06-02 00:00:31 +02:00
Dave Halter
24cd603fcf
Some more parso adaptations.
2017-05-26 09:08:34 -04:00
Dave Halter
3f36824a94
Parso changed load_python_grammar to load_grammar.
2017-05-25 12:41:19 -04:00
Dave Halter
ef2e2f343e
Fix some warnings.
2017-05-25 12:24:21 -04:00
Dave Halter
b90589b62e
Some changes because parso has changed.
2017-05-22 15:42:42 -04:00
Dave Halter
f35f1b9676
Add the cache_path parameter to parso calls.
2017-05-20 10:08:48 -04:00
Dave Halter
50c7137437
splitlines and source_to_unicode are utils of parso.
2017-05-20 09:55:16 -04:00
Dave Halter
9bca3d39f5
Actually use parso now instead of Jedi.
2017-05-19 14:20:14 -04:00
Dave Halter
84d8279089
Import.paths -> Import.get_paths.
2017-05-07 15:47:34 +02:00
Matthias Bussonnier
6f1ee0cfa8
Use stacklevel in warnings or filters don't work.
...
In particular with the right stacklevel IPython will display the warning
if code is directly entered by the user. Without this info it does not.
Use the opportunity to add in the warning since when things are
deprecated. This leads to one less lookup of information for the user.
2017-04-29 20:13:19 +02:00
Dave Halter
deb028c3fb
Move get_statement_of_position out of the parser tree.
2017-04-15 02:23:08 +02:00
Dave Halter
65a6c61dc6
Remove nodes_to_execute in favor of a function in parser_utils.
2017-04-08 12:59:49 +02:00
Dave Halter
a6829ca546
Use the cache variables in more straight forward fashion.
2017-03-31 23:10:39 +02:00
Dave Halter
6a9c2f8795
Start using ContextualizedNode for py__iter__.
2017-03-28 01:34:07 +02:00
Dave Halter
8a35a04439
Remove the module path from the parser tree.
...
Some static analysis tests are still failing.
2017-03-27 18:13:32 +02:00
Dave Halter
7874026ee5
A lot of work toward a better diff parser API.
2017-03-25 01:51:03 +01:00
Dave Halter
26cce4d078
Add the grammar as an argument to saving the parser.
...
This makes collisions of different grammars when loading from the cache impossible.
2017-03-22 18:32:49 +01:00
Dave Halter
2cb565561d
Replace the diff parser imports with the modified path.
2017-03-21 22:10:01 +01:00
Dave Halter
0f66a3c7a8
Remove the module attribute from the parser.
2017-03-18 03:53:34 +01:00
Dave Halter
d0b6d41e99
Remove the old star import cache, because it's not even used.
2017-03-18 03:30:23 +01:00
Dave Halter
448bfd0992
Move the python parser tree.
2017-03-16 17:20:32 +01:00
Dave Halter
97fc3bc23c
Refactored the parser calls. Now it's possible to use jedi.parser.python.parse to quickly parse something.
2017-03-14 00:38:58 +01:00
Dave Halter
425fba5e95
Move the parser.fast module to parser.diff.
2017-01-10 19:15:47 +01:00
Dave Halter
5b9e5f96aa
Merge with master.
2017-01-02 13:05:45 +01:00
Dave Halter
57857b6332
Remove the ImportWrapper and replace it with something simpler.
2016-12-17 16:08:37 +01:00
Dave Halter
575352d4b6
Start cleaning up the interpreter module.
2016-12-15 09:49:34 +01:00
Dave Halter
eaf0100446
Some analysis improvements.
2016-12-11 15:03:19 +01:00
Dave Halter
2be5da3f85
Fix some old regression tests.
2016-12-07 01:30:30 +01:00
Dave Halter
c6248ae169
Some testing fixes that were broken with the few previous commits.
2016-12-06 18:18:53 +01:00
Dave Halter
cb4f405f7d
Fix some internal name handling.
2016-12-05 22:27:18 +01:00
Dave Halter
6940900c58
A lot more fixes - fix all evaluate integration tests.
2016-12-03 22:17:38 +01:00
Dave Halter
2161be2dcb
Fix side effect issues with predefined names and lazy contexts.
2016-11-26 10:16:26 +01:00
Dave Halter
e79ebe3ee7
Usage fixes for imports.
2016-11-19 03:05:10 +01:00
Dave Halter
b77fa58058
Fix most usage tests.
2016-11-19 02:24:34 +01:00
Dave Halter
05581714d9
Fix goto tests.
2016-11-17 23:28:47 +01:00
Dave Halter
052f6bf9e7
Fix some small import stuff and the whole ordering tests.
2016-11-11 00:45:16 +01:00
cologler
a51475d265
Update __init__.py
...
fix the source file read mode issue.
if use 'r' mode, this may raise a `UnicodeDecodeError`.
2016-11-09 07:48:45 +08:00
Dave Halter
f57455f0ad
Deprecate Evaluator.wrap.
2016-11-01 23:38:06 +01:00
Dave Halter
2e6603cc2e
A lot of small improvements.
2016-10-22 17:40:42 +02:00
Dave Halter
6eb3b15e9b
Make a test a bit better testable (more flexible).
2016-09-21 18:13:18 +02:00
Daniel Hahler
171873761b
doc: fix goto_assignments, which can follow imports now
2016-08-13 09:04:57 +02:00
Dave Halter
ebd080a0fd
Implement goto_assignments(follow_imports=True). Fixes #382 .
2016-08-03 18:05:08 +02:00
Dave Halter
7d64069780
An empty path given to Jedi should not raise errors. Fixes #577 .
2016-07-09 17:27:57 +02:00
Dave Halter
a3b263a599
REPL completion is working again partially. There's some progress at least.
2016-06-29 08:49:20 +02:00
Dave Halter
52c42c3392
Reenable call signature caching and move a lot of parser specific caching to the parser itself.
2016-06-28 08:46:29 +02:00
Dave Halter
969100e471
Move the parsing away from user_context to api.py.
2016-06-27 08:48:36 +02:00
Dave Halter
0445d51d34
Remove the user_scope from the user_context module.
2016-06-27 08:35:24 +02:00