Commit Graph

838 Commits

Author SHA1 Message Date
Dave Halter
59e4f567a2 Create a failing test for an issue probably with the parser. 2015-11-25 06:58:34 +01:00
Dave Halter
8d65129a19 Power operation was not implemented before. 2015-11-20 18:26:39 +01:00
Dave Halter
030131d705 Forget to make the set comprehension result a set(). 2015-11-20 15:05:15 +01:00
Dave Halter
ffaf81bf1b Fix: Set/Dict Comprehensions don't raise an error. They are just ignored for now. 2015-11-20 14:51:52 +01:00
Dave Halter
595b803f1f Fix an issue with strings that can be chained in the parser. 2015-11-17 11:38:51 +01:00
Dave Halter
03efbca586 Tried to get the recursion issues with if stmts working. 2015-11-16 11:44:25 +01:00
Dave Halter
dc2e52fd7d Create Comprehension.py__iter__. 2015-11-14 20:34:33 +01:00
Dave Halter
239f0d7213 Small generator correction that leads to more stability in its result. 2015-11-11 11:34:18 +01:00
Tzerjen Wei
666cbbf123 update the test of set comprehension literal 2015-08-09 17:58:38 +08:00
Tzerjen Wei
fdcf718317 move set comprehension tests to comletion/comprehensions.py 2015-08-09 14:11:42 +08:00
Dave Halter
f2cc320a61 Tests and implementation for type(some class). (Which returns type) 2015-07-01 14:58:37 +02:00
Dave Halter
3ac8f02841 Type tests and implementation for functions. 2015-07-01 14:54:23 +02:00
Dave Halter
e355ab201e Tests and implementation for type on lambda and function objects. 2015-07-01 14:40:57 +02:00
Dave Halter
e222a30227 Implement the type builtin better and with a lot more tests. 2015-07-01 14:27:49 +02:00
Sid Shanker
258d5aee4a Added support for correct continue & break autocompletion. 2015-05-16 14:55:04 -07:00
Dave Halter
93500c3f72 Merge pull request #578 from squidarth/554_support_enumerate
Added in support for autocompleting `enumerate`.
2015-05-04 18:46:47 +02:00
Sid Shanker
20061fcf2e Added in support for autocompleting enumerate.
Resolves #554
2015-05-04 00:19:14 -07:00
Dave Halter
712ae01ac0 Classes should always evaluate to true when asked for py__bool__() 2015-04-28 18:32:19 +02:00
Dave Halter
c2a287c25a Usages on syntax should not return anything. 2015-04-28 17:35:26 +02:00
Dave Halter
0203461980 Disable the star import cache. 2015-04-26 00:02:47 +02:00
Dave Halter
ed74dde45c forgot to check in invisible_pkg 2015-04-23 13:40:05 +02:00
Dave Halter
9b9049e574 Some small import changes that fix a few of the broken test cases. 2015-04-21 17:31:43 +02:00
Dave Halter
18c4b5f7dc Add py__package__ to the ModuleWrapper, which makes relative imports easy to implement and fixed a lot of other things. 2015-04-21 16:12:24 +02:00
Dave Halter
bc765979ca Import priorities are wrong (__dict__ > files). Test for #536. 2015-04-13 15:04:49 +02:00
Dave Halter
a9d3df9b5e Replace the threading.Thread tests in docstrings with random.Random tests, because that might work smother in the travis tests. Don't know why it broke there. 2015-04-09 16:17:16 +02:00
Dave Halter
79caa2186e list(open().read()) should work now, fixes #412. 2015-04-09 00:46:31 +02:00
Dave Halter
ff0c7e27d3 Comment for two commits earlier. 2015-03-03 13:00:32 +01:00
Dave Halter
5cc5505185 Moved comprehension tests out of basic tests into its own file. 2015-03-03 12:58:52 +01:00
Dave Halter
96add84459 Fix a very complicated issue with comprehensions. 2015-03-03 12:56:48 +01:00
Dave Halter
5322c4a965 decorator dotted_names goto lookups. 2015-03-02 14:31:12 +01:00
Dave Halter
5a845e4dea Fix a decorator goto issue. 2015-03-02 13:23:26 +01:00
Dave Halter
6d3bb5c4b1 Fix generator comprehensions issue when used as an argument. 2015-03-02 03:06:58 +01:00
Dave Halter
2b1ddb19c9 Need py__bool__ on generators as well as any other object. 2015-02-27 12:36:03 +01:00
Dave Halter
610068dde4 Fix merged array values. 2015-02-27 11:23:53 +01:00
Dave Halter
a5728f8767 list comprehensions should be completeable. 2015-02-27 11:14:08 +01:00
Dave Halter
f5dad437dd Get rid of the None default for memoize_default. It shouldn't have a default if not given. This also uncovered a bug in for/else loops, that wasn't teste before. 2015-02-27 01:42:14 +01:00
Dave Halter
b8a8c4d402 Fix an array lookup issue. list.pop calls work now pretty well and return the right type. 2015-02-26 13:57:54 +01:00
Dave Halter
d7b69ab92c Fix a small bug in the logic of finding self variables. 2015-02-25 13:54:13 +01:00
Dave Halter
4f2d4992da Fix an mro resolution issue. 2015-02-23 19:04:35 +01:00
Dave Halter
09da6ec0d3 Function annotations don't need to be tested in Python 2.7. 2015-01-13 01:00:08 +01:00
Dave Halter
582b9b01af Get invalid INDENTs working.
The following DEDENT's are removed.
2015-01-12 12:22:57 +01:00
Dave Halter
f8570b1f03 Test for error recovery with try statements. 2015-01-09 18:02:15 +01:00
Dave Halter
5334f8dbad Implemented the in operator in a very simple fashion: It returns nothing. 2015-01-09 16:05:09 +01:00
Dave Halter
301b4ca649 Deprecate NotFoundError, because it wasn't used anymore. 2015-01-08 18:17:37 +01:00
Dave Halter
108cab21f4 Added a closure test that would have failed before the names_dict refactoring. 2015-01-08 17:58:24 +01:00
Dave Halter
c451c0b29e Private variable filtering improved. 2015-01-07 14:44:19 +01:00
Dave Halter
494a3e3307 Fix usages. 2015-01-06 16:54:01 +01:00
Dave Halter
1fb13837c4 Fix import completion issues. 2014-12-18 02:55:03 +01:00
Dave Halter
b2e54ca1eb The tokenizer now includes all newlines and comments in its prefix. 2014-12-17 20:11:42 +01:00
Dave Halter
4bef8895a0 Fix dynamic arrays: They work in instances, now. 2014-12-10 11:34:11 +01:00