David Halter
ed36486966
fixed a bug in api_classes comparison
2013-08-14 00:52:34 +04:30
David Halter
19dec3d0ed
fix api_classes definition description on flows
2013-08-13 22:38:02 +04:30
David Halter
cacc94acf3
clean up some docstrings in api_classes and put them in the right order
2013-08-13 22:23:24 +04:30
David Halter
93e993549a
don't skip doctests in api_classes
2013-08-13 22:19:30 +04:30
David Halter
e07625017d
remove all the deprecation warnings in jedi itself
2013-08-11 23:00:27 +04:30
David Halter
0ab4119447
previous fix had still bugs, now finally fixes #221
2013-08-11 22:28:41 +04:30
David Halter
e53c6d10d6
deprecate start_pos as discussed in #221
2013-08-11 21:24:48 +04:30
David Halter
ba9ba7c1fe
line and column return None in case of builtin module, fixes #221
2013-08-11 21:15:48 +04:30
David Halter
f754d1565f
fixed error with 'comma' separated exceptions
2013-07-19 01:27:40 +02:00
David Halter
b84315b829
tests for import problems
2013-07-19 00:56:56 +02:00
Laurens Van Houtven
1391a5a914
PEP8 newlines between class members
2013-07-11 15:19:54 +02:00
Laurens Van Houtven
4763846b1b
PEP8 indentation
2013-07-11 15:19:31 +02:00
Laurens Van Houtven
cdc41128b4
(Mostly) whitespace fixes
2013-07-10 14:45:47 +02:00
Takafumi Arakaki
851238386f
Fix tests for defined_names + full_name
2013-05-21 14:23:59 +02:00
Takafumi Arakaki
339ebbbf4e
Fix TestFullNameWithCompletions.test_from_import
2013-05-21 12:30:21 +02:00
David Halter
7c8fee1257
removed a lot of the goto usages, used goto_assignments instead. Did the same also for a lot of definition uses
2013-05-03 21:26:29 +04:30
David Halter
edd0a08351
api_classes.RelatedName -> Usage
2013-05-03 21:06:56 +04:30
David Halter
860cc5de04
make api_classes.BaseDefinition._definition private
2013-05-03 20:56:07 +04:30
David Halter
5d472e99ac
more variables private in the same file
2013-05-03 20:51:24 +04:30
David Halter
150b7fc1d5
make some variables of the Completion class private
2013-05-03 20:41:18 +04:30
David Halter
49e51f5a1a
deprecated api_classes.Completion.word in favor of name
2013-05-03 20:38:37 +04:30
David Halter
beae920177
Script.complete has been deprecated, therefore changed all usages / documatation to Script.completions
2013-05-03 20:28:11 +04:30
David Halter
cc520530c0
changed module name checking (should only be in one place)
2013-05-03 14:09:46 +04:30
David Halter
da067c5c38
add _module to BaseDefinition api
2013-05-03 14:04:40 +04:30
Danilo Bargen
86d775324b
Fix most flake8 issues ( fixes #205 )
2013-04-27 15:40:36 +02:00
Danilo Bargen
f98b0d7b6f
New "with ignored(*exceptions)" context manager
2013-04-17 23:28:37 +02:00
Takafumi Arakaki
2cc6edfa7c
Fix Completion.follow_definition
2013-03-16 22:57:31 +01:00
David Halter
cd513590ab
Merge pull request #176 from tkf/basedefinition-type
...
More detailed BaseDefinition.type (fixes #169 )
2013-03-15 10:36:53 -07:00
Takafumi Arakaki
f791e96d9d
Fix failing test_basedefinition_type
2013-03-15 13:54:19 +01:00
Takafumi Arakaki
f70e425c4a
Lowercase the str returned by BaseDefinition.type
2013-03-15 13:08:55 +01:00
David Halter
7b6a4c9a2b
some corrections of imports
2013-03-15 16:01:23 +04:30
David Halter
9ad9c806bb
rename non-cycling imports to 'from jedi import ..'
2013-03-15 15:02:33 +04:30
Takafumi Arakaki
7cf70a3f0a
Do not clear cache in __del__
...
Prior to this change, running
`py.test --assert=rewrite test/test_integration.py` fails with errors
due to:
```py
cls = <class 'jedi.recursion.ExecutionRecursionDecorator'>
@classmethod
def cleanup(cls):
> cls.parent_execution_funcs.pop()
E IndexError: pop from empty list
recursion.py:127: IndexError
```
Similar errors occurred in travis occasionally:
- https://travis-ci.org/davidhalter/jedi/jobs/5449831
- https://travis-ci.org/davidhalter/jedi/jobs/5512538
I think this is because GC calls __del__ at random point during
actual execution of ExecutionRecursionDecorator.__call__.
As --assert=rewrite works by AST dynamically, I guess that it
is harder for Python's GC to clean up code and therefore GC
happens sometime later. Although this is just a random guess,
as `tox -- --assert=rewrite` works with this patch now, I think
this is a good change.
2013-03-15 00:21:46 +01:00
David Halter
fbbdc50bb0
Merge pull request #164 from tkf/doc-api-classes
...
Document api_classes
2013-03-14 09:20:38 -07:00
Takafumi Arakaki
dccda224ab
Hide api_classes.defined_names
2013-03-13 22:18:50 +01:00
Takafumi Arakaki
8d54ebea7b
Fix BaseDefinition.module_name
2013-03-13 22:05:59 +01:00
Takafumi Arakaki
125a3b1a6b
Document BaseDefinition.module_name
2013-03-13 22:05:31 +01:00
Takafumi Arakaki
2f7797f867
Ignore known failure in BaseDefinition.description doctest
...
See: #162
2013-03-13 21:44:55 +01:00
Takafumi Arakaki
a449428391
Document BaseDefinition.full_name
2013-03-13 20:30:36 +01:00
Takafumi Arakaki
9e3e6a2eea
Document BaseDefinition.description
2013-03-13 20:29:02 +01:00
Takafumi Arakaki
41b33fd460
Document BaseDefinition.doc
2013-03-13 20:11:14 +01:00
Takafumi Arakaki
f9ed3d42f7
Document BaseDefinition.type
2013-03-13 20:01:43 +01:00
Takafumi Arakaki
871ce5ad33
Compatibility fix for Python 2.5
2013-03-10 20:44:15 +01:00
Takafumi Arakaki
a02940f3c1
Rename api.get_definitions to defined_names
...
Do the same for Definition.get_definitions also.
2013-03-10 20:40:52 +01:00
Takafumi Arakaki
36f03f4b0d
Use the first item returned by get_names_of_scope
2013-03-10 20:40:52 +01:00
Takafumi Arakaki
06de4d66e7
Revert "Add get_names_of_scope option to evaluate.get_names_of_scope"
...
This reverts commit 154662ea273a17f00186546bdf9d75833553d307.
2013-03-10 20:40:52 +01:00
Takafumi Arakaki
d4bf14dd66
Use list comprehension instead of map
2013-03-10 20:40:52 +01:00
Takafumi Arakaki
5a29fecfb2
Fix Python 3 syntax error
2013-03-10 20:40:52 +01:00
Takafumi Arakaki
87714460a2
Add get_names_of_scope option to evaluate.get_names_of_scope
...
Previously failing test passes now.
2013-03-10 20:40:14 +01:00
Takafumi Arakaki
3fbe7e9ff4
Rewrite get_definitions using evaluate.get_names_of_scope
...
- Definition.names is changed to Definition.name.
- TestGetDefinitions.test_nested_definitions fails.
2013-03-10 20:40:14 +01:00