Dave Halter
6c555e62aa
Refactor argument clinic usage
2018-08-26 03:02:58 +02:00
Dave Halter
4a593f9693
Use anonymous instance arguments in a different way
2018-08-06 11:19:29 +02:00
Dave Halter
357c86ad9c
Use the InstanceArguments for super as well
2018-08-05 14:58:35 +02:00
Dave Halter
60da6034c0
Fix some code_lines issues
2018-03-17 19:41:26 +01:00
Dave Halter
90a226f898
All modules now have a code_lines attribute, see #1062
2018-03-16 10:20:26 +01:00
Dave Halter
bf01b9d47c
Refactor the way builtins can be overwritten by jedi's own contexts
2018-02-21 00:09:41 +01:00
Dave Halter
1ca4d21359
Use unicode literals, to avoid potential issues
2018-02-04 00:55:45 +01:00
Dave Halter
d986c44b94
Merge with master
...
The deprecation of Python2.6 and the insertion of environments made it quite difficult to merge.
2018-01-20 19:32:59 +01:00
Hugo
7c31ea9042
Drop support for EOL Python 2.6
2018-01-07 10:40:05 +02:00
Dave Halter
b716fb7dc6
Use the parser to check for certain namedtuple features
...
This fixes tests that are used with python 2 but a different environment
2017-12-30 04:41:19 +01:00
Dave Halter
52298510ed
Fixing more py27 stuff
2017-12-29 02:02:34 +01:00
Dave Halter
6b6795c40c
Don't use python_version directly on evaluator anymore
2017-12-28 01:44:59 +01:00
Dave Halter
31f1913b07
Use unicode always in getattr
2017-12-28 01:42:58 +01:00
Dave Halter
950cab2849
Fix a potential issue in evaluate/stdlib
2017-12-14 22:24:37 +01:00
Dave Halter
3a7bc92863
Use builtins_module instead of BUILTINS
2017-12-10 18:52:51 +01:00
Dave Halter
aa7319dba5
Remove the last test failures.
2017-12-09 17:38:45 +01:00
Dave Halter
2aa2005502
Move some of the compiled.create calls to compiled.builtin_from_name
2017-12-01 09:54:29 +01:00
Dave Halter
accf20226d
Fix a few more tests
2017-11-26 22:07:13 +01:00
Dave Halter
85ce57a863
Creating objects works now a bit better but is a huge mess.
2017-11-26 18:26:02 +01:00
Dave Halter
e71f0062dd
Get a lot of tests passing
2017-11-26 17:48:00 +01:00
Dave Halter
0762c9218c
Move arguments to a separate module.
2017-10-01 13:29:28 +02:00
Dave Halter
39b24ff2df
Move lazy contexts to a separate module not in contexts
2017-09-30 18:02:02 +02:00
Dave Halter
16011a91af
Move iterable to context/iterable.
2017-09-30 17:41:21 +02:00
Dave Halter
f733e07045
AbstractSequence -> AbstractIterable.
2017-09-30 17:23:15 +02:00
Dave Halter
2c81bd919e
ClassContext is now importable from context.
2017-09-30 16:57:28 +02:00
Dave Halter
3c75f27376
Move the base Context stuff to another module to keep context free for imports.
2017-09-30 16:46:07 +02:00
Dave Halter
8c601a1c65
Also move the class to the context package.
2017-09-29 15:39:20 +02:00
Dave Halter
95930d293c
Move instance module to the context package.
2017-09-29 15:14:56 +02:00
Dave Halter
8f177eea07
Move the ModuleContext to a separate module.
2017-09-29 13:24:48 +02:00
Dave Halter
8c0845cf0c
Move iterate logic to the context.
2017-09-28 13:13:09 +02:00
Dave Halter
b08300813e
Fix an issue surrounding namedtuples where I didn't see the tests failing.
2017-09-28 10:39:54 +02:00
Dave Halter
ed43a68c03
Remove the precedence module in favor of the syntax tree module.
2017-09-27 19:09:30 +02:00
Dave Halter
b1ed0c7d22
Add py__class__ to ContextSet.
2017-09-27 14:09:09 +02:00
Dave Halter
b74c8cb033
To be able to customize ContextSet, move a subclass to evaluate.context
2017-09-27 09:20:58 +02:00
Dave Halter
592f2dac95
A lot more fixes for tests.
2017-09-26 16:29:07 +02:00
Dave Halter
174eff5875
Replace a lot more of empty sets and unite calls.
2017-09-25 23:08:59 +02:00
Dave Halter
a433ee7a7e
Move common to evaluate.utils.
2017-09-20 20:33:01 +02:00
Dave Halter
a8a15114ac
Fix namedtuple support
...
There were a couple issues:
- namedtuple with one member didn't work
- namedtuple content access was never possible
- operator.itemgetter didn't work properly. Corrected py__bool__ for FakeSequence
Fixes #730 .
2017-09-12 11:06:39 +02:00
Dave Halter
04c4313dc7
Start refactoring arguments.
2017-09-09 17:58:06 +02:00
Dave Halter
b90589b62e
Some changes because parso has changed.
2017-05-22 15:42:42 -04:00
Dave Halter
9bca3d39f5
Actually use parso now instead of Jedi.
2017-05-19 14:20:14 -04:00
Dave Halter
b4039872bd
Replace Scope.subscopes with iter_funcdefs and iter_classdefs.
2017-04-30 01:36:17 +02:00
Dave Halter
6a9c2f8795
Start using ContextualizedNode for py__iter__.
2017-03-28 01:34:07 +02:00
Dave Halter
0f66a3c7a8
Remove the module attribute from the parser.
2017-03-18 03:53:34 +01:00
Dave Halter
eaf0100446
Some analysis improvements.
2016-12-11 15:03:19 +01:00
Dave Halter
2edbe44d64
Fix some next() stuff.
2016-12-03 03:45:27 +01:00
Dave Halter
7607db801f
Rewrite the next function.
2016-12-03 02:54:09 +01:00
Dave Halter
d74e48dae2
Fix context completions and super calls.
2016-11-29 18:38:04 +01:00
Dave Halter
5b81a2375d
More tests and better understanding of if/try branches name resolution.
2016-11-29 10:21:50 +01:00
Dave Halter
f6070496ad
Fixes to the isinstance tests.
2016-11-28 09:34:59 +01:00