1
0
forked from VimPlug/jedi
Commit Graph

65 Commits

Author SHA1 Message Date
Dave Halter 59b8c6b015 CompiledObjects should execute everything when reading the return information from docstring (because it's always types, not values) 2014-07-31 17:16:24 +02:00
Dave Halter 50fa3a732d actually start checking if the integration tests are instances on both sides of the comparison. This wasnt necessary for just autocompletion, but it's way more important now. 2014-07-31 14:58:32 +02:00
Dave Halter 0851e7667e A module shouldn't be callable. 2014-07-30 17:07:57 +02:00
Dave Halter 7bd76022bf get rid of the whole is_callable stuff, because now we can just check for hasattr(obj, 'py__call__') 2014-07-30 15:50:47 +02:00
Dave Halter 1e6a950aec further progress in changing to py__call__ 2014-07-30 14:40:56 +02:00
Dave Halter 852cdad754 Operator fixes. Subclass of Simple, now. 2014-07-22 16:02:34 +02:00
Akinori Hattori 2696d95d70 fix dotted_from_fs_path for Windows 2014-07-19 10:33:08 +09:00
Dave Halter 13ada3154b replace get_defined_names with scope_names_generator in a lot of places (the cleanup still needs to be done, though). 2014-07-02 16:12:49 +02:00
Dave Halter 5b7c869323 types also add to completions, also for compiled objects. removed a few lines of code that complicated the process as well. 2014-06-28 12:09:43 +02:00
Dave Halter 47205dd7f3 change the implementation of compiled.load_module and always use the sys.modules cache after an import, because it's easier. Doesn't require any logic. 2014-06-25 18:57:07 +02:00
Dave Halter ddca14980e introduce an is_scope function to make it easier to work with scopes 2014-06-20 17:47:42 +02:00
Dave Halter 4e596060b9 test for is_nested failure 2014-05-16 13:00:13 +02:00
Dave Halter a2b483b4f5 None issue fix for static analysis 2014-05-13 01:21:32 +02:00
Dave Halter b6ec589997 refactor general array lookup method get_index_types 2014-05-12 15:23:48 +02:00
Dave Halter 6bec7ce847 speed up Builtin lookups 2014-04-25 14:12:28 +02:00
Dave Halter c790f88678 speed up precedences. 2014-04-25 13:28:01 +02:00
Dave Halter ff810d9ece cache compiled.CompiledObject.defined_names attribute, improves test suite performance by 20%, numpy by more than 50%. Awesome! 2014-04-14 02:20:22 +02:00
Dave Halter 3fced34544 the last commit featured an incomplete caching for compiled objects. The current one should improve this. 2014-04-13 21:55:29 +02:00
Dave Halter 4bc55be103 significant speedup due to compiled caching 2014-04-13 16:31:38 +02:00
Dave Halter 27645af6d2 make a slow inspect.getdoc() call lazy, which improves performance for numpy completions by 30% 2014-04-11 11:53:11 +02:00
Dave Halter d2dc39e0c2 also allow unicode, bytes, bytearray, dict -> fixes #297 2014-04-07 16:16:31 +02:00
Dave Halter 193e04ae8e get rid of side effects in the interpreter if trying to use the index on an iterable (using __getitem__) 2014-04-07 16:11:23 +02:00
Dave Halter 79e2ec85cc implement slicing for __getitem__ with interpreter 2014-04-04 15:09:25 +02:00
Dave Halter a6fbcde184 more detailed tests and implementation of array indexing in the interpreter 2014-04-04 13:22:12 +02:00
Dave Halter 50ef3c7fa3 implement __getitem__ access for CompiledObject 2014-04-04 12:59:16 +02:00
Dave Halter b8987fe451 CompiledObject.get_index_types implementation example 2014-04-03 19:05:29 +02:00
Dave Halter edb0bbd183 use defined_names also for modules, fixes symbol browsing issues - fixes #344 2014-04-02 13:48:27 +02:00
Dave Halter 305b593f3b create an is_callable method for all representation objects, to determine if something is callable or not 2014-04-02 09:42:15 +02:00
Dave Halter 72aa7f918f the type of a compiled object is also function, not def 2014-04-01 14:45:05 +02:00
Dave Halter 2ae5dad78b fix Definition.name API for params 2014-03-13 22:48:02 +01:00
Dave Halter eaa56c47cc compiled params didn't have a param 2014-03-13 12:49:37 +01:00
Dave Halter db1b73d423 lo and behold - reversed is implemented - the force is strong with this one. fixes #24 2014-03-11 11:04:00 +01:00
Dave Halter 62a14f7558 restructure NameFinder.filter_name a little bit 2014-03-10 15:57:01 +01:00
Dave Halter cc667e76dc start_pos is usually not needed to search in modules, but if we generalize that, things get a lot slower - tests still pass - but the slowness is probably due to some weird recursion catching that now happens and that Jedi runs into, e.g. check ./run.py std 27 --debug 2014-03-10 00:40:57 +01:00
Dave Halter ca460ac34f fixed a problem with docstrings that were empty (None), docstrings in Jedi are always strings. 2014-03-06 12:20:11 +01:00
Dave Halter 66a488b911 clean up parse_dot_name and other small things 2014-03-05 22:46:11 +01:00
Dave Halter 1f7e4ca637 dict literals are now working (at least the parser) 2014-03-05 18:46:43 +01:00
ColinDuquesnoy 725e55485a Add params property to compiled object 2014-02-26 13:53:09 +01:00
Dave Halter 3d7522dff6 fixed None type appearances in CompiledObject 2014-01-24 00:57:53 +01:00
Dave Halter a1b68945ed fix some generator parents 2014-01-23 14:27:20 +01:00
Dave Halter 4a71f4beeb fixes for the interpreter stuff, py27 works now fine 2014-01-22 15:42:11 +01:00
Dave Halter 7c105d27e0 some tests survive the new interpreter module already 2014-01-22 15:17:50 +01:00
Dave Halter 9e063b1248 started writing a new interpreter module that is heavily simplified and fits the current Jedi architecture way better. 2014-01-21 23:35:21 +01:00
Dave Halter 717c4315df Remove Todos that didn't make sense. 2014-01-13 16:29:30 +01:00
Dave Halter 83b490dd6d PyObject -> CompiledObject, PyName -> CompiledName 2014-01-13 14:09:03 +01:00
Dave Halter 0c98c05cd3 use __import__ instead of exec_function (should have done that a long time ago) 2014-01-13 14:01:03 +01:00
Dave Halter a96a2baf5b fix an issue with missing '__class__' methods e.g. in numpy 2014-01-13 02:30:10 +01:00
Dave Halter c602dc1c40 modules like PyQt4.QtGui are now importable, because the import works again. used a code snippet from the old builtin plugin 2014-01-13 01:57:26 +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