Dave Halter
ae8e43d3c7
Move get_node() to tree_node and replace all the custom classdefs/funcdefs.
2017-01-05 23:43:12 +01:00
Dave Halter
ce0a02f6c1
Fix an issue with executed python objects.
2016-12-17 14:08:49 +01:00
Dave Halter
f355c04cae
Finally fixed all black box tests in python 2.
2016-12-03 13:37:51 +01:00
Dave Halter
bad1f85f8f
Improvements towards arrays / predefined names logic.
2016-11-25 23:31:45 +01:00
Dave Halter
90af0c36e0
Function -> FunctionContext and fakes use the FunctionContext, too.
2016-10-25 09:59:42 +02:00
Dave Halter
2e6603cc2e
A lot of small improvements.
2016-10-22 17:40:42 +02:00
Dave Halter
3654de97b0
Better filter for arrays.
2016-10-16 14:57:08 +02:00
Dave Halter
0a0cb2a722
Fix generators.
2016-10-16 04:17:11 +02:00
Dave Halter
37ba971787
Trying to start implementing instance filters.
2016-10-06 16:35:53 +02:00
Dave Halter
885cf62a12
Remove the position_modifier from the parser.
2016-09-18 00:50:31 +02:00
Dave Halter
1226962922
Remove dedents from the parser tree. No need for them.
2016-09-11 13:03:29 +02:00
Dave Halter
6f598b1157
Use the memoize function for faked arguments only when needed.
...
It's important to note that memoizing every object would mean that
theoretically all objects passed through get_faked would get memoized. This
would have been a possible memory leak, which we should avoid.
Obviously the previous solution proposed in #649 was still better, but this
issue was a new one. Also using str() around keys was not a good idea.
Refs #649 .
2016-07-31 15:02:30 +02:00
ColinDuquesnoy
600a087446
Merge branch 'dev' into bugfix/performances_degradation
...
# Conflicts:
# test/test_regression.py
2016-07-30 16:52:17 +02:00
Dave Halter
ff47fab62a
Remove Whitespace class and replace it with Newline and Endmarker.
2016-07-24 17:16:36 +02:00
ColinDuquesnoy
07f76a1703
Merge remote-tracking branch 'upstream/dev' into bugfix/performances_degradation
...
# Conflicts:
# jedi/evaluate/compiled/fake.py
2016-07-21 10:41:11 +02:00
Dave Halter
9245181a8c
Some python 2.7 (and 3.3) compatibility improvements.
2016-07-03 02:54:21 +02:00
Dave Halter
2700c2cca4
Make it possible to import Jedi in Python 2 again.
2016-05-28 20:20:45 +02:00
Dave Halter
cc331d62e0
Get closer to fixing a lot of issues with the completion for repl.
2016-05-15 14:26:22 +02:00
Dave Halter
eb2e41f771
Grammar versioning has now a smoother interface.
2015-12-25 19:30:25 +01:00
Dave Halter
c4906e0e3f
Rework the parser so we can use arbitrary start nodes of the syntax.
...
This also includes a rework for error recovery in the parser. This is now just possible for file_input parsing, which means for full files.
Includes also a refactoring of the tokenizer. No more do we have to add an additional newline, because it now works correctly (removes certain confusion.
2015-12-20 22:25:41 +01:00
Dave Halter
9a93d599da
Fix: __module__ doesn't need to be properly defined.
2015-12-20 02:35:23 +01:00
ColinDuquesnoy
6e3b5dfb23
Add memoize_function to cache and use it in fake.get_faked
...
The previously added test should now pass.
Fix #591
2015-12-13 20:10:09 +01:00
Dave Halter
8d3be10270
Fix issues in Python 2.7.
2015-12-10 17:20:21 +01:00
Dave Halter
c9a5caa96e
Fix: dicts lookups were not working in all cases.
2015-12-08 22:37:30 +01:00
Dave Halter
bef5fca516
Refactor compiled.CompiledObject so it always owns an evaluator instance.
2015-12-08 02:19:33 +01:00
Dave Halter
79caa2186e
list(open().read()) should work now, fixes #412 .
2015-04-09 00:46:31 +02:00
Dave Halter
0ceadf69a3
Fake objects don't need an ExprStmt for the docstring anymore.
2015-03-05 14:24:19 +01:00
Dave Halter
cf223a71f5
Add a position modifier for the fast parser. Not yet in use though.
2015-01-15 13:57:56 +01:00
Dave Halter
e53e211325
Python 2 compatibility in fake module.
2014-12-16 02:07:20 +01:00
Dave Halter
23417f0288
Fix docstrings in fake/skeleton objects.
2014-12-11 00:05:49 +01:00
Dave Halter
9f45f18ad1
Added a grammar param to the parser.
2014-11-24 01:10:39 +01:00
Dave Halter
c152a1c58b
Actually replace tree with representation (in all the imports).
2014-11-23 19:46:52 +01:00
Dave Halter
ce5d428d22
At least functions generate docstrings again.
2014-11-20 01:37:18 +01:00
Dave Halter
acec5fe76f
fake docstrs fixed
2014-02-26 02:38:28 +01:00
Dave Halter
5e5bb618ea
remove token.py, docstrings are now just normal tokens until used
2014-02-26 01:13:38 +01:00
Dave Halter
c5fcebde82
changed _compatibility.utf8 -> 'u' and removed a lot of the issues with the now enforced unicode source input of the parser
2014-02-23 11:29:00 +01:00
Jean-Louis Fuchs
34e89fa1c5
Merge branch 'dev' into get_code_fidelity
...
Conflicts:
jedi/evaluate/docstrings.py
jedi/parser/representation.py
Resolving merge problems:
* Introducing docstring for compiled.fake
* Partly fixing poor decision in TokenDocstring __init__
2014-01-28 00:37:06 +01:00
Dave Halter
6f2c1397b0
autocompletion diggs now pretty deep for generator objects
2014-01-23 14:39:00 +01:00
Dave Halter
7c105d27e0
some tests survive the new interpreter module already
2014-01-22 15:17:50 +01:00
Dave Halter
99882724da
is_py3k -> is_py3
2014-01-14 11:43:56 +01:00
Dave Halter
e56a0cf544
docstring was sometimes empty for faked modules
2014-01-13 02:58:10 +01:00
Dave Halter
b2d99be3ee
delete old builtin code
2014-01-12 19:23:37 +01:00
Dave Halter
4b319ad817
fix a docstr issue
2014-01-12 19:22:31 +01:00
Dave Halter
860aa50192
renamed fake/_io.pym to io.pym and fixed some other 'fake' issues
2014-01-12 18:17:00 +01:00
Dave Halter
2bde6cde08
changing completion of python file objects
2014-01-12 18:07:58 +01:00
Dave Halter
c75cef0882
fix some python 3 compatibility things (which involves some real bugs, but py2 was passing)
2014-01-12 17:02:26 +01:00
Dave Halter
1765fadf73
fix problems with self attributes - from fake modules
2014-01-11 18:05:44 +01:00
Dave Halter
6f9d834a93
now able to execute instance subscopes on compiled
2014-01-11 13:01:09 +01:00
Dave Halter
28ab937eca
in the process...
2014-01-11 02:55:50 +01:00
Dave Halter
01c03966a7
make first faked compiled modules work
2014-01-10 23:35:58 +01:00