1
0
forked from VimPlug/jedi
Commit Graph

58 Commits

Author SHA1 Message Date
Dave Halter
db0e90763b Start using pathlib.Path instead of all the os.path functions 2020-07-10 17:30:36 +02:00
Dave Halter
25973554e2 Remove the common folder and move it to a common file 2020-05-08 13:23:56 +02:00
Dave Halter
a433ee7a7e Move common to evaluate.utils. 2017-09-20 20:33:01 +02:00
Dave Halter
f4ba71f6a3 Move the recursion limit settings to the recursion module. 2017-09-17 14:08:39 +02:00
Dave Halter
50c7137437 splitlines and source_to_unicode are utils of parso. 2017-05-20 09:55:16 -04:00
Dave Halter
ccef008376 Python 2 compatibility. 2017-03-09 21:06:20 +01:00
Dave Halter
989e4bac89 Speed up splitlines.
We use the python function again with the modifications we need.
I ran it with:

    python3 -m timeit  -n 10000 -s 'from jedi.common import splitlines; x = open("test_regression.py").read()'

The speed differences are quite remarkable, it's ~3 times faster:

    10000 loops, best of 3: 52.1 usec per loop

vs. the old:

    10000 loops, best of 3: 148 usec per loop

We might need to speedup splitlines with  as well. It's probably
also a factor 2-3 slower than it should be.
2017-03-09 08:58:57 +01:00
Dave Halter
bad1f85f8f Improvements towards arrays / predefined names logic. 2016-11-25 23:31:45 +01:00
Dave Halter
721195157a Add the keepends parameter to common.splitlines. 2016-08-07 16:57:53 +02:00
Dave Halter
15221bc8f5 Make sure that the encoding parameters are always right. 2016-07-30 03:34:24 +02:00
Dave Halter
454c8de7b1 Merge pull request #726 from nakamuray/fix-source_to_unicode_py3_compatibility
fix source_to_unicode py3 compatibility
2016-07-30 03:15:04 +02:00
Dave Halter
092299f537 Fix a recursion issue with nested for loops. 2016-07-27 23:36:44 +02:00
Dave Halter
23ff395754 Merge dev and the away branch. 2016-06-07 08:45:26 +02:00
Dmitry Sadovnychyi
5cb969d211 Use utf-8 instead of iso-8859-1 as a default encoding 2016-06-04 17:44:29 +08:00
NAKAMURA Yoshitaka
127da66ae2 fix source_to_unicode py3 compatibility 2016-05-30 23:31:18 +09:00
Dave Halter
55615fb3c1 unite returns a set now, this simplifies all the set(unite( calls. 2015-11-28 17:52:39 +01:00
Dave Halter
a67408ad03 Move the unite function to common. 2015-06-18 14:16:16 +02:00
Dave Halter
468ff59c1c Remove hasattr/next from _compatibility (not used anymore), thanks @dongweiming for noticing. 2015-03-06 00:25:42 +01:00
Dave Halter
9d048623dd Delete the old and unused MultiLevelStopIteration exception. 2015-02-19 01:43:43 +01:00
Dave Halter
526af7ccbe settings should not be affected by exceptions. 2014-08-11 17:27:40 +02:00
Dave Halter
ffaacbefbc new splitlines implementation to get rid of the ugly splitlines we now have as well as (partially) the issue with form feeds 2014-07-18 16:52:55 +02:00
Dave Halter
134cd234de moved user_stmt up in api 2014-01-15 17:35:40 +01:00
Dave Halter
d5aa36cc69 replace propery with safe_property in some evaluate cases. fixes #249 2014-01-15 15:07:06 +01:00
Dave Halter
e115689b7f move NoErrorTokenizer to the parser, where it more or less belongs. 2014-01-05 13:25:11 +01:00
Dave Halter
fce36ebea4 move source_to_unicode to common 2014-01-05 13:17:04 +01:00
Dave Halter
7bf6ff768c first steps to world domination -> removal of the hackish sys.path modifications 2013-12-24 16:23:13 +01:00
Jean-Louis Fuchs
989e12e8a7 * Replaced token tuple with token class
* Fixed PEP8 where I read code
2013-12-05 23:34:20 +01:00
Laurens Van Houtven
cdc41128b4 (Mostly) whitespace fixes 2013-07-10 14:45:47 +02:00
David Halter
f4e8972157 end_pos issues, fixes #150 2013-05-07 23:55:58 +04:30
David Halter
f5aaeaa428 fast parser splitting is now working better 2013-05-01 14:31:41 +04:30
David Halter
9988c49097 fix pushback problem with tokenizer 2013-04-28 00:24:52 +04:30
David Halter
cf49bdc9ab merge of tokenizer/dev branch 2013-04-20 19:23:15 +04:30
David Halter
a7308fa51d removed more unused code 2013-04-20 14:11:46 +04:30
David Halter
d4428c497a use tokenizer instead of tokenize in all modules 2013-04-20 09:52:54 +04:30
Danilo Bargen
f98b0d7b6f New "with ignored(*exceptions)" context manager 2013-04-17 23:28:37 +02:00
David Halter
4e27e7d335 fixed a positioning bug in the own tokenizer 2013-04-17 23:37:21 +04:30
David Halter
188ed33c4f fixed parser change problems 2013-04-15 11:50:05 +04:30
David Halter
b08390c136 some parser end positions changed 2013-04-15 10:22:27 +04:30
David Halter
5dd05eff1a a basic approach to the new fast parser 2013-04-10 22:33:49 +04:30
David Halter
a99d9541bd on the way to a better fast_parser - improved a lot of the positioning stuff 2013-03-24 22:51:17 +04:30
David Halter
9ad9c806bb rename non-cycling imports to 'from jedi import ..' 2013-03-15 15:02:33 +04:30
Takafumi Arakaki
7a9e374a65 Use original exception value when reraise 2013-03-13 23:54:19 +01:00
Takafumi Arakaki
93bd00bba4 Document rethrow_uncaught/reraise 2013-03-13 23:50:40 +01:00
Takafumi Arakaki
3b78b52204 Rename MultiLevelAttributeErro to UncaughtAttributeError 2013-03-13 23:24:26 +01:00
Takafumi Arakaki
e42ff9e762 Add common.rethrow_uncaught 2013-03-13 23:21:15 +01:00
David Halter
923e59b9c2 fixed position problems (with tokenizer offsets) 2013-02-21 21:45:39 +04:30
David Halter
c3fe5d04dd line_offset to offset in Parser, which is important for exact positioning 2013-02-18 23:17:41 +04:30
David Halter
36b75c3e15 fixed the last remaining problems with fast_parser (not cached yet) 2012-12-16 03:50:50 +01:00
David Halter
bcdf273c21 fix comment problem (code shouldn't be parsed multiple times) 2012-12-16 02:41:04 +01:00
David Halter
3aae532374 fix fast_parser problems with asserts 2012-12-15 21:27:09 +01:00