Dave Halter
8028138e8c
Implememnt dict.values for FakeDict to avoid a recursion error. Fixes #1014 .
2018-02-02 09:34:40 +01:00
Dave Halter
24b4e725b5
Make some things clearer about lazy contexts
2018-01-31 23:52:56 +01:00
Dave Halter
24561759f6
Fix a bug related to a wrong parametrization at one point
2018-01-30 01:17:09 +01:00
Dave Halter
68f15c90ac
Undo most of the namespace changes and use module again
...
Is a module like every other module, because if you import an empty
folder foobar it will be available as an object:
<module 'foobar' (namespace)>.
See #1033 .
2018-01-25 20:51:55 +01:00
Dave Halter
04fba28d35
Differentiate between namespace and module as a type
...
Also fixed a bug related to implicit namespace contexts, fixes #1033 .
2018-01-25 20:35:54 +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
Dave Halter
fe813292cf
Try to migrate to the new project API
2018-01-16 23:56:35 +01:00
Hugo
a7ac647498
Remove redundant character escape
2018-01-07 10:40:06 +02:00
Dave Halter
ed57f6172f
Correct the two last unicode issues
2017-12-29 12:59:06 +01:00
Dave Halter
b4f301e082
More unicode literals
2017-12-29 01:42:22 +01:00
Dave Halter
ba81aa16a2
Use unicode in way more cases
2017-12-28 23:19:17 +01:00
Dave Halter
5755d5a4ee
Use unicode always for getting special objects
2017-12-28 22:41:20 +01:00
Dave Halter
5b8ed7f615
Check for bytes and unicode in dicts for Python 2
2017-12-28 02:15:27 +01:00
Dave Halter
d1d4986667
Eliminate is_py3 usages
2017-12-28 01:55:39 +01:00
Dave Halter
a7dea9e821
Fix some more py36 to py27 issues
2017-12-28 01:33:51 +01:00
Dave Halter
c43009d5dc
Do more comparisons in the subprocess
2017-12-26 13:38:47 +01:00
Dave Halter
5a06ea2699
Start using a lot more unicode literals for Python 2
2017-12-24 03:11:28 +01:00
Dave Halter
4ab7f7a0b0
Make ImplicitNamespaceContext a bit cleaner
2017-12-21 23:43:47 +01:00
Dave Halter
3a7bc92863
Use builtins_module instead of BUILTINS
2017-12-10 18:52:51 +01:00
Dave Halter
f09ca9fc20
Use access handles everywhere
2017-12-06 14:46:27 +01:00
Dave Halter
3c78aad8b1
Use create_simple_object for a lot of use cases
2017-12-02 01:59:48 +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
47114178e9
Fake context python code is now not the base for a lot of things anymore. It just gets executed.
2017-11-28 18:26:12 +01:00
Dave Halter
a2b08eabc6
Rename SelfNameFilter to SelfAttributeFilter
2017-11-28 18:06:00 +01:00
Dave Halter
85bda448b1
Simplify one if statement
2017-11-28 08:43:56 +01:00
Dave Halter
e69509b1d9
Refactor LazyInstanceName -> SelfName
2017-11-27 21:08:39 +01:00
Dave Halter
02fb73655c
Fix a slice test with a better helper function
2017-11-26 22:18:51 +01:00
Dave Halter
accf20226d
Fix a few more tests
2017-11-26 22:07:13 +01:00
Dave Halter
e71f0062dd
Get a lot of tests passing
2017-11-26 17:48:00 +01:00
Dave Halter
7263d8565b
Add an access abstraction (only array tests work, yet)
...
The access abstraction will be the new way of accessing builtin objects. This way it will be easier to move that to another process
2017-11-25 19:47:49 +01:00
Dave Halter
4ddf7bf56d
Remove the disabling of dynamic flow information
...
We should be able to handle this anyway also in completions. Don't hide issues here.
2017-10-07 10:52:43 +02:00
Dave Halter
383f749026
Move the initial sys path generation into a new project class.
2017-10-02 20:19:55 +02:00
Dave Halter
0762c9218c
Move arguments to a separate module.
2017-10-01 13:29:28 +02:00
Dave Halter
b6bb251c96
Common instance objects are now directly accessible
2017-09-30 18:19:25 +02:00
Dave Halter
604ca65a9b
Directly importing FunctionContext.
2017-09-30 18:11:15 +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
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
3c2221ec2d
Don't use a star import.
2017-09-29 15:47:36 +02:00
Dave Halter
c8cae2140f
Move the lazy contexts to a separate module.
2017-09-29 15:44:47 +02:00
Dave Halter
8c601a1c65
Also move the class to the context package.
2017-09-29 15:39:20 +02:00
Dave Halter
5f613ece28
Move the namespace to a separate module.
2017-09-29 15:31:26 +02:00
Dave Halter
32917d5565
Remove the function context to a separate module.
2017-09-29 15:28:17 +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
41cfbe2382
Move context to base.py
2017-09-29 13:06:03 +02:00
Dave Halter
20a462597d
Move context.py to a separate package.
2017-09-28 21:10:19 +02:00