Dave Halter
862e4a6176
Add filters for the sub module dicts and module attributes dicts.
2016-10-12 02:19:52 +02:00
Dave Halter
37ba971787
Trying to start implementing instance filters.
2016-10-06 16:35:53 +02:00
Dave Halter
c2873792eb
Filters for compiled objects and also FunctionExecution.
2016-10-02 15:36:24 +02:00
Dave Halter
885cf62a12
Remove the position_modifier from the parser.
2016-09-18 00:50:31 +02:00
Dave Halter
abaa9732eb
Merge branch 'dev' of https://github.com/bstaint/jedi into dev
2016-08-01 15:17:52 +02:00
bstaint
e35a9ff389
Replace multiple slashes.
2016-08-01 10:42:36 +08:00
Dave Halter
6440e33512
Fix an issue with magic methods on classes. Fixes #461 .
2016-07-31 23:42:16 +02:00
Dave Halter
647a4db326
Autocomplete inherited methods when overriding in child class. Fixes #458 .
2016-07-31 23:09:50 +02:00
bstaint
b31b456dd4
Fixed Windows slashes problem.
2016-08-01 01:13:39 +08: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
Dave Halter
6a8138d185
Improve the compiled object generation caching, which was very wrong and is ok now, but still needs improvements.
2016-07-03 15:32:08 +02:00
Dave Halter
62786158da
Some more Python compatibility improvements.
2016-07-03 11:35:07 +02:00
Dave Halter
609965d07c
Finally fix all python 3.4 tests again.
2016-07-01 20:59:24 +02:00
Dave Halter
67a0f604a7
Fix an issue with interpreter exceptions in certain cases.
2016-07-01 19:32:05 +02:00
Dave Halter
2652666080
Remove the logic to not use getattr on instances in CompiledObjects.
2016-07-01 18:11:44 +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
5edcf47512
Break Interpreter completion even more in favor of a better solution in the future.
2016-06-03 19:31:42 +02:00
Dave Halter
ef314a5c38
Complete writing the full mixed objects module.
2016-05-17 17:44:22 +02:00
Dave Halter
50f6bb0299
When we are working with CompiledObjects and instances there should never be a case where class values are returned.
2016-05-15 23:06:07 +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
1189868593
Use CheckAttribute descriptor more in CompiledObject to avoid duplicate code.
2015-12-10 16:43:42 +01:00
Dave Halter
5087584fdc
evaluator is now used only as an attribute in CompiledObject.
2015-12-10 16:40:56 +01:00
Dave Halter
9e8da17688
Remove py__class__ evaluator param from representation objects.
2015-12-10 16:39:27 +01:00
Dave Halter
afb1d6c3b8
Remove evaluator param from py__call__.
2015-12-10 16:20:46 +01:00
Dave Halter
506d5a4f31
Remove evaluator param from py__bases__.
2015-12-10 16:16:30 +01:00
Dave Halter
98b1845784
Remove evaluator param from py__mro__.
2015-12-10 16:12:43 +01:00
Dave Halter
3a975db0d7
Get completely rid of get_index_types.
2015-12-10 04:41:21 +01:00
Dave Halter
e23f453a11
Fix all remaining issues from the compiled refactoring except static analysis.
2015-12-10 01:48:08 +01:00
Dave Halter
86037222b4
Fix: stdlib issues with the latest CompiledObject changes.
2015-12-10 00:02:06 +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
21faf2431a
Added isinstance type checks in the linter.
2015-12-03 16:14:26 +01:00
Dave Halter
8daa0b8784
Introduce an additional node parameter for py__iter__ which helps static analysis.
2015-12-03 11:52:54 +01:00
Dave Halter
37c21726e7
Fix: py__iter__ in dynamic list/set usages with empy params.
2015-12-01 18:35:12 +01:00
Dave Halter
306d274a3d
Merge dev into linter.
2015-11-10 21:52:18 +01:00
Dave Halter
ee51b0a62f
More issues from the list of types to set of types conversion.
2015-10-30 10:32:17 +01:00
immerrr
4eb3cf7921
Improve virtualenv support & egg-link resolution
...
- add sys_path= kwarg to Script & Evaluator constructors
- store sys_path for each evaluator instance
- replace get_sys_path with get_venv_path
- get_venv_path: use addsitedir to load .pth extension files
- get_venv_path: look for egg-link files in all directories in path
2015-10-26 13:03:42 +03:00
Dave Halter
844a011193
Replacing the types list with a types set. Some tests are failing, though.
2015-10-13 18:03:36 +02:00
Dave Halter
3ac8f02841
Type tests and implementation for functions.
2015-07-01 14:54:23 +02:00
Dave Halter
126f490f1e
Modules have now the name __main__ if they contain dots.
2015-04-28 17:29:42 +02:00
Dave Halter
cbd3a8a59a
Restructured loading of compiled __init__ files.
2015-04-28 02:30:32 +02:00
Dave Halter
06d134a7c1
Finished changing the import logic. The sys.path calculations within Jedi are clearer now.
2015-04-25 22:45:08 +02:00
Dave Halter
df9452f210
Trying to change the import logic completely. We now have a sys.modules like cache.
2015-04-20 14:47:33 +02:00
Dave Halter
74779f1a5d
Test and preparations for better call signatures with builtins, see #515 .
2015-04-10 03:05:38 +02:00
Dave Halter
8b1c033fc4
Remove old commented code.
2015-03-06 11:22:38 +01:00
Dave Halter
eb146adcc1
Modules that are not importable shouldn't cause Jedi to stop working (just issue a warning). Fixes #468 , #71 .
2015-03-06 11:13:04 +01:00
Dave Halter
a998c36fa3
Fix an attribute error in static analysis code.
2015-02-26 14:40:33 +01:00
Dave Halter
6e5ba3de87
Fix remaining issue siwh the Param refactoring.
2015-02-11 01:40:18 +01:00
Dave Halter
8125d5f562
Remove asserts and calculate them dynamically.
2015-02-05 20:16:55 +01:00
Dave Halter
26ecb16e5f
CompiledObject.type resembles now the Node.type values.
2015-01-09 01:33:59 +01:00