1
0
forked from VimPlug/jedi
Commit Graph

67 Commits

Author SHA1 Message Date
Dave Halter f57b53bbe2 check for 'if foo is not None' checks in the NameFinder. Solves the issues with the subprocess library. 2014-05-20 16:23:46 +02:00
Dave Halter 79556a7935 finder docstring and naming improvements 2014-05-20 15:17:07 +02:00
Dave Halter ad762f674e renaming of an unclear variable 2014-05-20 14:01:43 +02:00
Dave Halter 08b48807e9 a (temporary) solution for the __file__ access issues in imported modules, see #408 2014-05-19 01:01:56 +02:00
Dave Halter ecf9043d97 Improved error messages for AttributeErrors, however not a final version #408 2014-05-16 18:02:33 +02:00
Dave Halter 9bcc4f8fd2 static analysis is now able to tell the difference between NameError/AttributeError 2014-05-13 16:14:32 +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 586ac9d013 removed a few debug things. 2014-05-10 20:31:33 +02:00
Dave Halter 11a445ab42 Merge branch 'dev' into linter 2014-05-10 16:53:41 +02:00
Dave Halter 60971245d6 star imports now have their own class, which will be important for AttributeError detection 2014-05-10 16:53:27 +02:00
Dave Halter 358472b21f improved star import support preparation 2014-05-10 14:12:36 +02:00
Dave Halter 7c965e544f dive further into following imports, etc 2014-05-08 11:26:08 +02:00
Dave Halter 5ed887c170 precautionary fix without test (sith.py didn't reproduce it), in execution detection. 2014-04-30 12:21:18 +02:00
Dave Halter 23b4a89d1d slices should be ignored in __getitem__ settings (for now) 2014-04-28 18:15:25 +02:00
Dave Halter d106b2ce2b __getattr__ arbitrary returns fix 2014-04-27 23:15:32 +02:00
Dave Halter 77d505e251 eval_statement input shouldn't be a NamePart, but a string 2014-04-22 11:33:46 +02:00
Dave Halter 27f01ca1f6 use Param.stars to avoid certain syntax error params to cause an exception 2014-04-20 13:38:10 +02:00
Dave Halter 240b0c9581 NamePart doesn't have an __eq__ method anymore 2014-04-18 14:36:10 +02:00
Dave Halter b81eb9f8b3 NameFinder.filter_name is simpler now. 2014-04-14 13:45:31 +02:00
Dave Halter 6a40c9b671 remove get_set_vars completely from existance 2014-04-14 12:40:59 +02:00
Dave Halter 4c53a64ca0 increase speed again for compiled objects by not using sorted + lambda on its list of defined names 2014-04-14 10:12:46 +02:00
Dave Halter 4bc55be103 significant speedup due to compiled caching 2014-04-13 16:31:38 +02:00
Dave Halter 6de46fe373 realizing that #241 is more of a feature than a bug, I disabled the corresponding test. This will be changed once the whole implementation of isinstance becomes more flexible and also allows checks on subclasses, so that no information is lost. 2014-04-09 16:27:42 +02:00
Dave Halter b680246195 docstring working for local definitions as well 2014-03-27 12:34:53 +01:00
Dave Halter 394e2e77de refactored the development docs, which was badly needed especially since evaluate/dynamic.py doesn't contain a lot of functionality anymore. 2014-03-11 17:26:38 +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 52348e0d1b delete unnecessary checks from filter 2014-03-10 16:12:17 +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 5f8f1e170b moved global variables handling 2014-03-05 01:19:18 +01:00
Dave Halter 2322edff8f keyword statement not includes globals 2014-03-05 00:44:19 +01:00
Dave Halter 65ce609a3c protect token_list -> _token_list 2014-03-04 12:43:37 +01:00
Dave Halter 9257062910 remove NoErrorTokenizer dependency for all but the fast parsers 2014-02-24 10:31:15 +01:00
Dave Halter 8e847f4982 fix python 2.7 issues. the parser now only takes unicode inputs 2014-02-23 11:44:32 +01:00
Dave Halter 97ad1c6a29 moved get_names_for_scope to finder 2014-01-17 11:33:46 +01:00
Dave Halter de6a6b5813 avoid more import recursion - moved assign_tuples and find_assignments to finder module 2014-01-17 11:12:41 +01:00
Dave Halter 682e1c2708 debug.dbg and debug.warning now take a string and format args parameters to make debugging a little bit cleaner 2014-01-13 16:16:07 +01:00
Dave Halter 83b490dd6d PyObject -> CompiledObject, PyName -> CompiledName 2014-01-13 14:09:03 +01:00
Dave Halter 14c9ed88ca fixed the getattr/__getattr__ stuff 2014-01-10 15:14:55 +01:00
Dave Halter f868668f0e trying to fix the getattr mess with compiled 2014-01-10 13:36:29 +01:00
Dave Halter d2358c60b7 more builtin replacements with compiled 2014-01-09 02:02:33 +01:00
Dave Halter 69afc2482a nicer _remove_statements 2014-01-07 13:25:30 +01:00
Dave Halter a3e4b209c7 _remove_statements beautified 2014-01-07 12:19:05 +01:00
Dave Halter 35640abd82 split param stuff from remove_statements - which is now finally a simple method 2014-01-07 12:02:33 +01:00
Dave Halter 66ec389f5c make _remove_statements smaller 2014-01-07 11:32:20 +01:00
Dave Halter 821d2b9220 remove some recursion 2014-01-07 11:28:01 +01:00
Dave Halter 546a7bbad9 merged _some_method and _remove_statements 2014-01-07 10:53:53 +01:00
Dave Halter d1a4eccf13 prepare merging of some_method and remove_statement 2014-01-07 00:54:45 +01:00
Dave Halter bbc15d4349 moved some NameFinder methods around 2014-01-07 00:38:43 +01:00