Dave Halter
84b07a8809
Removing a test from doctests, becaues it shouldn't be one
2018-08-26 03:09:46 +02:00
Dave Halter
6c555e62aa
Refactor argument clinic usage
2018-08-26 03:02:58 +02:00
Dave Halter
d6306a06a4
With the recent changes one performance optimization got lost
2018-08-07 02:47:25 +02:00
Dave Halter
8fc2add242
FunctionExecutionContext should use the parent if possible
2018-08-06 12:49:31 +02:00
Dave Halter
4a593f9693
Use anonymous instance arguments in a different way
2018-08-06 11:19:29 +02:00
Dave Halter
38a22a4ae8
Move some anonymous instance function execution stuff
2018-08-05 23:37:46 +02:00
Dave Halter
10ecb77673
Get rid of InstanceFunctionExecution, because it's really not needed
2018-08-05 23:26:15 +02:00
Dave Halter
357c86ad9c
Use the InstanceArguments for super as well
2018-08-05 14:58:35 +02:00
Dave Halter
8cae517821
Use InstanceArguments directly and not via InstanceFunctionExecution
2018-08-05 14:34:44 +02:00
Dave Halter
0101fdd9da
Remove old garbage code
2018-08-05 14:19:18 +02:00
Dave Halter
e17d7f5d42
Don't use arguments that are not needed
2018-08-05 14:17:46 +02:00
Dave Halter
7d16a35693
Also move the remaining get_params to get_executed_params
...
Remove the class's get_params entirely, because it is apparently not needed and contained a funny return.
2018-08-05 13:58:06 +02:00
Dave Halter
1456a156a6
get_params -> get_executed_params where possible
2018-08-05 13:53:57 +02:00
Dave Halter
3d55b2d826
Subprocess error reporting improvements
2018-08-05 12:50:17 +02:00
Dave Halter
1547177128
Fix a recursion issue about compiled objects
2018-08-04 23:20:51 +02:00
Dave Halter
bd43608f98
Use a CompiledInstanceNameFilter that wraps the class name as well
2018-08-04 13:10:14 +02:00
Dave Halter
72f2a9e4a5
Prefer Python 3 import over 2
2018-08-04 12:07:41 +02:00
Dave Halter
b91203820c
Now it's actually possible to specify a pytest environment for the same Python version
2018-08-04 02:00:13 +02:00
Hugo
7c9f24a18e
Drop support for EOL Python 3.3 ( #1019 )
2018-08-04 00:40:00 +02:00
Dave Halter
9ca7b30e38
Rewrite the pyc test
2018-08-03 23:59:55 +02:00
Dave Halter
fd8f254ce1
Fix an issue with stderr debugging of subprocesses
2018-08-03 23:51:58 +02:00
Dave Halter
1c76359291
stderr of the child processes should be printed in debug output
...
This fixes #1169 . It might have a bit of a different intention, but at least it's now possible to see output of the subprocess and it's not just a black hole.
2018-08-03 13:35:21 +02:00
Dave Halter
30d14ea016
Remove some redundant code
2018-08-03 12:33:35 +02:00
Dave Halter
bbb1502e06
Use names of classes to infer names of instances
2018-08-03 12:23:54 +02:00
Dave Halter
f34a9281b9
Don't have execute and execute_evaluated on name
2018-08-03 11:34:33 +02:00
Dave Halter
95a1a69771
Fix an issue where __ prefixed variables where not hidden when accessed from a class
...
Everything worked well when looking at it from an instance perspective.
2018-08-03 11:05:49 +02:00
Dave Halter
f25310e0b9
BoundMethods now have access to the function that they are using
2018-08-03 00:25:25 +02:00
Dave Halter
e576457a43
Remove another usage of is_class where it's not needed
2018-08-03 00:25:25 +02:00
Dave Halter
a1314ac3c1
FunctionContext should be created from a unified interface
2018-08-03 00:25:25 +02:00
Dave Halter
9ff5050d01
Use TreeContext in a good way
2018-08-03 00:25:25 +02:00
Dave Halter
4b276bae87
The import resolution for namespace packages was wrong
...
With this change we can now include all parents of the script, which will make
relative imports always work.
Now the whole meta_path is scanned and not just importlib's PathFinder.
Fixes #1183 .
2018-07-21 00:16:10 +02:00
Dave Halter
d292333dab
MergedExecutedParams -> DynamicExecutedParams
2018-07-18 10:02:57 +02:00
Dave Halter
a408fb3211
Fix a recursion error, fixes #1173
2018-07-18 10:01:41 +02:00
Dave Halter
fb360506fb
Don't merge params if it's just one param
2018-07-17 09:53:26 +02:00
Dave Halter
fe1799d125
Add a repr for AnonymousArguments
2018-07-17 09:48:27 +02:00
Dave Halter
1e796fc08d
Environments are now always created on request
...
The issue was that if something changed about the environment (e.g. version
switch) or sys.path change, re-creating the environment was possible, but did
not involve the change. The environments have now a __del__ function that
deletes the subprocess after every time an Environment is garbage collected.
2018-07-15 17:49:17 +02:00
Daniel Hahler
2fc91ceb64
Improve Environment
...
It only takes `executable` and gets all the information from the
subprocess directly.
Fixes https://github.com/davidhalter/jedi/issues/1107 .
2018-07-15 17:49:17 +02:00
Dave Halter
71cea7200b
Don't use invalid escape sequences in regex, see https://github.com/davidhalter/jedi-vim/issues/843
2018-07-12 21:13:26 +02:00
Daniel Hahler
87d7c59c6e
subprocess: listen: exit normally with EOFError
...
This is an expected case, since the parent closed normally, and
therefore the subprocess should exit with 0.
2018-07-11 12:56:55 +02:00
Dave Halter
cef769ecd8
The encoding parameter should be used again (includes test), fixes #1167
2018-07-09 18:25:28 +02:00
Dave Halter
a59e5a016f
Actually use the fast_parser setting again
2018-07-05 21:31:03 +02:00
Dave Halter
37a40d53a8
Use an import name list as long as possible
2018-07-05 18:11:58 +02:00
Dave Halter
d8c0d8e5d2
Different _load_module API
2018-07-05 10:15:49 +02:00
Dave Halter
508ed7e5b8
Directly load modules if possible, with this it's not necessary anymore to use dotted_from_fs_path, also fixes #1013 .
2018-07-05 10:03:05 +02:00
Dave Halter
f4aad8bbfe
Finally make it possible to use auto_import_modules for packages
...
This means that you can now write 'from gi.repository import Gtk' and Gtk completions work.
It also means that other libraries could be used like that for speed or other reasons.
Fixes #531
2018-07-03 00:58:43 +02:00
Dave Halter
2b1cbe4d42
Fix a bug about fstring completion
2018-07-02 01:26:17 +02:00
micbou
95f835a014
Force unicode when listing module names
...
pkgutil.iter_modules may return the module name as str instead of unicode on
Python 2.
2018-06-24 22:41:14 +02:00
micbou
282c6a2ba1
Use highest possible pickle protocol
2018-06-23 14:45:34 +02:00
Daniel Hahler
ea71dedaa1
Include stderr with "subprocess has crashed" exception ( #1124 )
...
* Include stderr with "subprocess has crashed" exception
This does not add it to the other similar exception raised from `kill`,
since this should be something like "was killed already" anyway.
* fixup! Include stderr with "subprocess has crashed" exception
2018-06-23 11:37:43 +02:00
micbou
106b11f1af
Set stdout and stdin to binary mode on Python 2 and Windows
2018-06-22 00:08:53 +02:00