Commit Graph
100 Commits
Author SHA1 Message Date
David Halter 354838bb86 python 3 full compatibility 2012-07-13 02:10:55 +02:00
David Halter 24577bc632 added an own implementation for hasattr (python 2, python 3 is fine) 2012-07-13 01:27:41 +02:00
David Halter 47da6f297f skip thirdparty modules, if not available 2012-07-13 01:17:00 +02:00
David Halter dbef32627e removed a hasattr(), because in python 2 it catches also other exceptions 2012-07-13 01:14:16 +02:00
David Halter 972b4bd13d parentheses work now in import statements (tested) 2012-07-13 01:00:44 +02:00
David Halter 4739eb6c02 changed the way the tests react, when multiple elements are produced 2012-07-12 16:19:47 +02:00
David Halter c84ca8f897 fixed a bug with tuple indexing: a,b,c = (1,2) 2012-07-12 15:45:14 +02:00
David Halter cc081cdb3c deepcopy removed at one place, tests being 12s faster (from 20s to 8s) 2012-07-12 15:10:57 +02:00
David Halter 12970f80ae fixed an index problem with the parser, which could happen with really special code 2012-07-12 12:01:28 +02:00
David Halter 19c7f470ca comments revised. 2012-07-12 01:04:11 +02:00
David Halter 28f12865d2 removed scopes in follow_statement and so on 2012-07-12 00:47:42 +02:00
David Halter b840648ef3 big change to make param transfer possible. always. this also makes scopes in many places redundant. 2012-07-12 00:37:55 +02:00
David Halter 9b09e11114 tests for an additional variable in *args, **args 2012-07-11 02:28:55 +02:00
David Halter 81c29d58d0 tests for an additional variable in *args, **args 2012-07-11 02:25:43 +02:00
David Halter a0b5bbe6db removed test cases, which who are not python compatible and just something else 2012-07-11 02:19:10 +02:00
David Halter e8c1b8c5bd more kwargs tests 2012-07-11 02:09:52 +02:00
David Halter 5f33bbd8ca new jedi self completion tests 2012-07-11 02:04:27 +02:00
David Halter 97cf613265 kwargs is now working, also within decorators 2012-07-11 02:04:05 +02:00
David Halter 4555b29701 new decorator tests (nested) 2012-07-11 02:03:19 +02:00
David Halter fd4e0ba775 new args/kwargs tests 2012-07-11 02:02:54 +02:00
David Halter 53358b28d3 properties work now also with initialization values of classes 2012-07-10 17:52:46 +02:00
David Halter e4739fddf9 generators are now working with arguments (yield stmts) 2012-07-10 13:36:36 +02:00
David Halter 37f2b8ff56 recursions are now being catched 2012-07-09 12:05:07 +02:00
David Halter e78ba60a47 changed many tests from old completion tests to type tests, which brings more security 2012-07-06 01:37:04 +02:00
David Halter 8d26cff54b changed many tests from old completion tests to type tests, which brings more security 2012-07-06 01:29:50 +02:00
David Halter fdfd475d40 position stuff works now also with function that are located after the just called function 2012-07-06 01:07:17 +02:00
David Halter 28ad77406f default of no arguments at an execution changed to a parsing.Array 2012-07-05 18:22:56 +02:00
David Halter e88c11605b fixed a little bug caused by not setting the parent of flows correctly 2012-07-05 15:55:19 +02:00
David Halter 70b3895e42 debugging stuff 2012-07-05 01:03:28 +02:00
David Halter 70530c0767 colors for debugging 2012-07-04 09:32:33 +02:00
David Halter d7d4e36558 started testing the completion of jedi itself 2012-06-28 21:19:28 +02:00
David Halter b9f779f55c removed old stuff 2012-06-28 20:27:38 +02:00
David Halter 2e2e360567 removed vim exceptions 2012-06-27 20:41:38 +02:00
David Halter 19a5d788c4 generators can now be indexed, don't know if this is a good thing. however, it fixes some problems with lists 2012-06-27 14:35:12 +02:00
David Halter 56a14c7811 move decorator tests 2012-06-27 10:24:31 +02:00
David Halter 2ce3869ab8 revised TODOs 2012-06-26 01:34:58 +02:00
David Halter c4d74c3521 ternary operators work now, list comprehensions preparation 2012-06-26 00:42:19 +02:00
David Halter e7a579ce31 added thirdparty testing (test/completion/thirdparty/) and fixed an AttributeError 2012-06-25 21:05:10 +02:00
David Halter 2f70c67ada improved readme 2012-06-24 20:25:48 +02:00
David Halter cffa236fc2 fix a little error that caused the completion not to work with if/try statements 2012-06-24 20:19:19 +02:00
David Halter 77698599f4 decorator's that are not found, are now just being ignored / introduced new testing file 2012-06-24 20:00:57 +02:00
David Halter 3650e0ee64 fixed property not found bug with builtins + cleaning 2012-06-24 18:47:57 +02:00
David Halter 548af3cc86 changed builtin parsing: introduced inspect, __ names are now used, if in mixins defined 2012-06-24 02:15:21 +02:00
David Halter e42a534e38 property / staticmethod / classmethod builtin implementation 2012-06-24 00:54:40 +02:00
David Halter d1f464f0f7 open function builtin for python 3 2012-06-23 23:49:03 +02:00
David Halter 983de9820f variable assignments for classes prepared 2012-06-23 18:26:36 +02:00
David Halter ff436bd293 resolved little ordering problem 2012-06-22 21:46:54 +02:00
David Halter 38de9e92bb fixed bug in testing suite 2012-06-22 02:45:08 +02:00
David Halter 9674e37b7b fully working descriptors 2012-06-22 01:52:32 +02:00
David Halter 4332495a11 basically working descriptors! 2012-06-22 00:05:57 +02:00
David Halter d88283b879 all tests working again, if the descriptor stuff is not used 2012-06-21 17:44:10 +02:00
David Halter 5811dfbcc3 removed prints 2012-06-21 14:33:53 +02:00
David Halter 31a74da900 temporary commit: introduced MultiLevelAttributeError. many prints to remove 2012-06-21 14:26:03 +02:00
David Halter a9676f77f1 again a decorator fix, which is important for nested decorators 2012-06-12 18:50:39 +02:00
David Halter e1dbdc1662 class decorators with __call__ are now properly working 2012-06-12 17:02:39 +02:00
David Halter c1fc527d60 commit before processing descriptors 2012-06-12 01:13:06 +02:00
David Halter 8fb1dc74a5 fixed test path problem 2012-06-12 01:01:06 +02:00
David Halter 9523d3c938 fully functional classes 2012-06-12 00:45:18 +02:00
David Halter 1400fe877e temporary commit with almost working class scopes 2012-06-11 18:11:33 +02:00
David Halter e641bb528a meta classes for class caching 2012-06-11 12:16:24 +02:00
David Halter dfa6bdd782 removed unncessary error message 2012-06-10 21:15:39 +02:00
David Halter 2574b27496 merge 2012-06-10 00:21:05 +02:00
David Halter 99c62cf1a3 Merge pull request #1 from gwrtheyrn/master
Travis testing by Danilo Bargen
2012-06-09 15:17:40 -07:00
David Halter 1661196701 do class scoping the right way (no direct access to class stuff in methods) 2012-05-28 02:10:42 +02:00
David Halter 5f0926d045 __call__ method is now working 2012-05-25 17:00:50 +02:00
David Halter e7661b1467 cleaning 2012-05-25 16:40:40 +02:00
David Halter ffb233eac1 self redirection solved 2012-05-25 13:59:17 +02:00
David Halter 37f66f53c5 default arguments should now always be the right ones 2012-05-23 15:39:10 +02:00
David Halter bdaf3799e7 __init__ function is working again 2012-05-23 12:19:32 +02:00
David Halter 3c882dea44 functions fully working with default arguments/generators/decorators, but without recursion 2012-05-22 10:34:27 +02:00
David Halter da7ef3ba4b generators work again (deleted some necessary stuff) 2012-05-22 01:47:40 +02:00
David Halter 547c952ba1 first more or less atempt of functions, that are copied. therefore it is possible to make more complicated function calls (recursion, use function multiple times differently, etc) 2012-05-22 01:15:04 +02:00
David Halter 1ee26a09c6 temporary commit: function behaviour changes 2012-05-21 17:42:46 +02:00
David Halter fd1246818a python 2.5 compatibility, works, but tests fail, because certain thing don't exist in 2.5 (like int.real) 2012-05-20 00:59:03 +02:00
David Halter 8d523db9d9 most tests pass for python 3 2012-05-20 00:25:30 +02:00
David Halter c95510cf50 basic python 3 compatibility 2012-05-19 23:49:25 +02:00
David Halter 7ac17aa036 cleaning / pep8 2012-05-19 12:14:32 +02:00
David Halter 21a5825e6e property compatibility python 2.5 2012-05-17 10:54:56 +02:00
David Halter 2aa4a1cf8c another problem with the ouput of vim (parent returned NotImplemented) 2012-05-15 10:36:45 +02:00
David Halter 22c3dc11a0 fixed bug with vim errors of tokenize 2012-05-15 00:21:28 +02:00
David Halter 3a35eed346 readme 2012-05-13 16:31:51 +02:00
David Halter 361c478541 support for unicode/str and float/int literals (different returns) 2012-05-13 16:24:33 +02:00
David Halter 92df46bd58 tests for get_definitions 2012-05-13 16:14:37 +02:00
David Halter ed6b47c12c show_definition added to vim interface 2012-05-13 15:19:08 +02:00
David Halter cb201c3b7b goto function added 2012-05-13 12:41:56 +02:00
David Halter d6c5363132 goto function added 2012-05-13 02:37:47 +02:00
David Halter 7f94e417e4 moved FileWithCursor class to 'module' module 2012-05-13 00:42:30 +02:00
David Halter 4573e511ec again readme 2012-05-13 00:38:53 +02:00
David Halter 9663b1c904 again readme 2012-05-13 00:36:57 +02:00
David Halter 5d17359676 simple readme 2012-05-13 00:32:24 +02:00
David Halter e4efcd1258 added more generator names 2012-05-12 23:45:04 +02:00
David Halter 22d83e8518 resolved parent issue of params -> generators working now! / fixed path problem with tests 2012-05-12 23:32:54 +02:00
David Halter 1fb11dd178 fixed a little statement assignment problem 2012-05-12 11:20:03 +02:00
David Halter b118f7f14f builtin mixins support (functions custom defined) 2012-05-12 01:24:19 +02:00
David Halter 9b525633e5 GlobalScope -> Module refactoring 2012-05-10 19:00:45 +02:00
David Halter 6a035fe147 moved parts of module to builtin 2012-05-10 18:59:28 +02:00
David Halter 3840b4c3ae preparations to merge parts of builtin/modules 2012-05-10 18:37:55 +02:00
David Halter 2efe3b0b57 generator basics - but not yet working with next, etc. need the bultins therefore 2012-05-10 16:54:45 +02:00
David Halter 7e3592ee29 pep8 2012-05-10 15:14:28 +02:00
David Halter f1ecbe30f1 fix long existing bug, that empty round brackets are not seen as a tuple 2012-05-10 14:50:44 +02:00