1
0
forked from VimPlug/jedi
Commit Graph

3364 Commits

Author SHA1 Message Date
Dave Halter
a37201bc1d Finally fixing the Python 2 issues with static_getattr. 2017-08-13 22:24:50 +02:00
Dave Halter
88cfb2cb91 Remove side effects when accessing jedi from the interpreter.
Note that there is http://bugs.python.org/issue31184.
Fixes #925.
2017-08-12 22:49:05 +02:00
Dave Halter
b26b8a1749 Merge branch 'dev' 2017-08-12 22:46:24 +02:00
Dave Halter
997cb2d366 Merge branch 'dev' of github.com:davidhalter/jedi into dev 2017-08-12 22:45:47 +02:00
Yariv Kenan
9a43c35a4d fix old_files method
Returns old files instead of new files info.
Probably not what it was meant for.
2017-08-10 00:14:07 +02:00
micbou
175e57214e Fix instance docstring 2017-07-14 00:59:55 +02:00
micbou
f5248250d8 Fix keyword docstring 2017-07-14 00:22:27 +02:00
Dave Halter
90b531a3b3 Correcting a sentence. 2017-05-15 11:10:22 -04:00
Dave Halter
0da875281b Remove an unused compatibility function that was overriden by the same name lower in the same file. 2017-05-11 16:22:11 -04:00
Dave Halter
6c95f73d77 Remove a function that was not really needed. 2017-05-07 16:00:08 +02:00
Dave Halter
84d8279089 Import.paths -> Import.get_paths. 2017-05-07 15:47:34 +02:00
Dave Halter
9bf66b6149 Make Import.aliases private. 2017-05-07 15:38:03 +02:00
Dave Halter
66b28ca840 Small cleanup. 2017-05-07 15:22:45 +02:00
Dave Halter
fe49fc9b99 Add slots to the PythonMixin. 2017-05-07 15:06:34 +02:00
Dave Halter
536e62e67d Move is_scope and get_parent_scope out of the parser. 2017-05-07 14:58:53 +02:00
Dave Halter
0882849e65 Don't do a simple_stmt error recovery in the parser, because it makes it more complicated. 2017-05-07 14:52:46 +02:00
Dave Halter
30a02587a7 Merge branch 'dev' of github.com:davidhalter/jedi into dev 2017-05-07 14:46:47 +02:00
Élie Gouzien
a78769954d Check whether inspect.getfile will raise a TypeError and anticipate it.
Anticipate the raise of TypeError from inspect.getfile to prevent the computation of repr() for the error message wich is not used.
Useful for some big pandas arrays.
Fix tentative of #919.
2017-05-06 19:40:36 +02:00
Dave Halter
14eeb60240 Remove is_scope from CompiledObject. It's not needed according to tests. 2017-05-05 09:23:50 +02:00
Dave Halter
f916b9b054 More docstrings. 2017-05-05 09:21:42 +02:00
Dave Halter
336b8a46d0 search_ancestor now uses *node_types as a parameter instead of a mix of tuple and simple string like isinstance. 2017-05-02 19:19:07 +02:00
Dave Halter
5c836a72b6 Lambda and Function docstrings render better. 2017-05-02 08:57:03 +02:00
Dave Halter
fc7cc1c814 Docstrings for get_defined_names. 2017-05-02 08:50:52 +02:00
Dave Halter
e96bb29d18 Param docstring. 2017-05-02 08:43:46 +02:00
Dave Halter
c1c3f35e08 Docstring for Param.get_code(). 2017-05-01 02:26:24 +02:00
Dave Halter
63679aabd9 Replace Param.get_description with get_code and a parameter include_coma. 2017-05-01 02:19:42 +02:00
Dave Halter
e0b0343a78 Remove expanduser from the parser path. Not sure if that makes sense so I'd rather remove it. 2017-04-30 15:23:43 +02:00
Dave Halter
0f1570f682 position_nr -> position_index 2017-04-30 14:12:30 +02:00
Dave Halter
2383f5c0a0 docstrings for the parser tree. 2017-04-30 14:06:57 +02:00
Dave Halter
a1454e3e69 Fix a docstring test. 2017-04-30 03:11:09 +02:00
Dave Halter
78fd3ad861 is_generator is not needed in lambdas. 2017-04-30 03:07:48 +02:00
Dave Halter
1295d73efd path_for_name -> get_path_for_name 2017-04-30 03:03:58 +02:00
Dave Halter
e2d6c39ede Remove yields from lambda. It was previously removed from Function. 2017-04-30 02:59:09 +02:00
Dave Halter
076eea12bd Some minor refactoring of the python tree. 2017-04-30 02:56:44 +02:00
Dave Halter
8165e1a27f Add Module.iter_future_import_names to make checking for future imports easier. 2017-04-30 02:44:02 +02:00
Dave Halter
f2a77e58d8 Merge branch 'dev' of github.com:davidhalter/jedi into dev 2017-04-30 02:34:38 +02:00
Dave Halter
d8761e6310 Use names instead of the isinstance checks in _search_in_scope 2017-04-30 02:33:51 +02:00
Dave Halter
6e9911daa3 Scope.imports -> iter_imports. 2017-04-30 02:31:30 +02:00
Dave Halter
42fe1aeaa1 Move yields -> iter_yield_exprs. 2017-04-30 02:13:25 +02:00
Dave Halter
606871eb62 returns -> iter_return_stmts 2017-04-30 01:45:59 +02:00
Dave Halter
b4039872bd Replace Scope.subscopes with iter_funcdefs and iter_classdefs. 2017-04-30 01:36:17 +02:00
Matthias Bussonnier
6f1ee0cfa8 Use stacklevel in warnings or filters don't work.
In particular with the right stacklevel IPython will display the warning
if code is directly entered by the user. Without this info it does not.

Use the opportunity to add in the warning since when things are
deprecated. This leads to one less lookup of information for the user.
2017-04-29 20:13:19 +02:00
Dave Halter
3e05061f3b Remove old unused code. 2017-04-28 18:34:02 +02:00
Dave Halter
ad536a837c A small change. 2017-04-28 18:29:35 +02:00
Dave Halter
b328e727ea Remove Scope.walk, because it was never used. 2017-04-28 18:20:07 +02:00
Dave Halter
eaa5100372 Removed Scope.statements from the parser tree. 2017-04-28 18:18:58 +02:00
Dave Halter
307adc2026 Scope.flows is never used so remove it. 2017-04-28 00:23:47 +02:00
Dave Halter
3cf4c66112 Change some more docstring stuff. 2017-04-28 00:23:28 +02:00
Dave Halter
02a8443541 search_ancestor docstring 2017-04-27 21:47:39 +02:00
Dave Halter
a846e687c3 Move search_ancestor to jedi.parser.tree. 2017-04-27 21:41:24 +02:00