immerrr
4eb3cf7921
Improve virtualenv support & egg-link resolution
...
- add sys_path= kwarg to Script & Evaluator constructors
- store sys_path for each evaluator instance
- replace get_sys_path with get_venv_path
- get_venv_path: use addsitedir to load .pth extension files
- get_venv_path: look for egg-link files in all directories in path
2015-10-26 13:03:42 +03:00
Dave Halter
b8bb258677
Get rid of get_importer and clean up imports in general.
2015-04-28 01:41:01 +02:00
Dave Halter
ef4b424cda
Replace pr with tree, #566 .
2015-04-28 01:34:31 +02:00
Dave Halter
d038fba9df
er.wrap -> Evaluator.wrap
2015-04-23 13:51:42 +02:00
Dave Halter
d04241b482
Goto should not include imports that cannot be followed.
2015-04-23 02:37:22 +02:00
Dave Halter
df9452f210
Trying to change the import logic completely. We now have a sys.modules like cache.
2015-04-20 14:47:33 +02:00
Dave Halter
8fca3f78a1
Add a py__name__ call to modules. This makes listing the qualified names of modules possible (in combination with the module_name_cache). Fixes #519 .
2015-04-14 17:36:20 +02:00
Dave Halter
0b531d2b17
print in Python 2 shouldn't be a function, it's a keyword (without the future import).
2015-03-06 01:01:20 +01:00
Dave Halter
b489019f5b
Most integration tests (except 2) pass if we don't always make the use of an ExprStmt.
2015-03-05 01:55:25 +01:00
Dave Halter
f273e314b6
Preparing for an eventual replacement of using expr_stmt for all nodes.
2015-03-05 00:07:50 +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
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
47fc3cbdfe
Functions are not exceptions anymore in the name finder.
2015-01-08 14:14:01 +01:00
Dave Halter
b982b746e7
Fix problems with += stmts.
2015-01-06 11:24:13 +01:00
Dave Halter
54fcf7af9d
Fix goto.
2015-01-05 23:55:38 +01:00
Dave Halter
ab9571bccd
Remove FakeStatement
2014-12-18 03:24:12 +01:00
Dave Halter
b03330c5d7
Updating the docs of evaluate/__init__.
2014-12-15 16:00:16 +01:00
Dave Halter
5f892d62a6
Delete legacy code from evaluate.
2014-12-15 15:34:15 +01:00
Dave Halter
c4c3ef5a21
goto_definition on a name definition (statement) should land on the statement.
2014-12-11 12:48:23 +01:00
Dave Halter
0f01242954
named param goto.
2014-12-08 01:52:32 +01:00
Dave Halter
774ade955d
Fixing for loop additions.
2014-12-04 17:58:01 +01:00
Dave Halter
1725abb1fd
Fix issues with docstrings.
2014-12-03 20:30:03 +01:00
Dave Halter
09ad3411da
Goto fixes.
2014-12-03 17:01:29 +01:00
Dave Halter
6314b80abd
Some goto refactorings.
2014-12-03 16:52:05 +01:00
Dave Halter
6bf154de5e
Better goto for imports, which helps usages.
2014-12-03 16:15:31 +01:00
Dave Halter
50752df6dd
Fix an issue with combinations of InstanceElement and Lambdas.
2014-12-01 11:26:35 +01:00
Dave Halter
88853c78f4
Get lambdas mostly working.
2014-12-01 02:47:48 +01:00
Dave Halter
68bd9160e2
Fixed list comprehension name lookups.
2014-12-01 00:08:27 +01:00
Dave Halter
fae0a7b0c4
Small fixes for past mistakes.
2014-11-24 01:56:54 +01:00
Dave Halter
db76bbccc5
Trying to change the symbols in node. They are now strings.
...
With this change we are finally able to get rid of parser/pytree.py
2014-11-24 01:52:41 +01:00
Dave Halter
9f45f18ad1
Added a grammar param to the parser.
2014-11-24 01:10:39 +01:00
Dave Halter
c152a1c58b
Actually replace tree with representation (in all the imports).
2014-11-23 19:46:52 +01:00
Dave Halter
ac41c31015
Removed more of the old parser representation code.
2014-11-23 19:33:18 +01:00
Dave Halter
9b54541cae
Remove quite a bit of the old parser representation logic.
2014-11-23 19:26:30 +01:00
Dave Halter
267016f533
Function for evaluating functions with already executed arguments.
2014-11-23 19:12:25 +01:00
Dave Halter
f1cbd45575
Usages are pretty solid now except for parser issues.
2014-11-22 15:43:23 +01:00
Dave Halter
22fbcf6c77
More goto improvements.
2014-11-21 15:45:17 +01:00
Dave Halter
eb0bfb4381
get_code in Definition.description should not return first prefix.
2014-11-21 15:33:38 +01:00
Dave Halter
f604066288
First small implementation of goto.
2014-11-21 14:21:00 +01:00
Dave Halter
cc465364d3
Fixes towards better MergedArray and partial functions.
2014-11-20 13:33:05 +01:00
Dave Halter
53c2a1679c
Fix types tests.
2014-11-20 11:16:52 +01:00
Dave Halter
164518b993
Get docstrings working.
2014-11-20 02:19:01 +01:00
Dave Halter
b0109343e4
Jedi didn't care for decorator 'dotted_name' nodes and therefore descriptor tests failed.
2014-11-18 15:44:40 +01:00
Dave Halter
93ffc799f5
Because of the change in dynamic params, we can now remove the decorator hack in the name finder.
2014-11-18 13:06:20 +01:00
Dave Halter
f62f181066
First decorator implementations.
2014-11-17 22:24:54 +01:00
Dave Halter
da5273ce20
Fix issues with dynamic class parameter completion.
2014-11-17 17:07:32 +01:00
Dave Halter
259aa6bd5f
First dynamic params working.
2014-11-17 16:23:18 +01:00
Dave Halter
2dfbc2a0fd
Start to rework dynamic params. However goto is now needed first.
2014-11-17 12:34:32 +01:00
Dave Halter
278bc9d705
Fix generators.
2014-11-14 02:05:25 +01:00