1
0
forked from VimPlug/jedi
Commit Graph

75 Commits

Author SHA1 Message Date
Dave Halter 66840a742c Implement the new parser in jedi.parser.Parser 2014-10-10 00:06:28 +02:00
Dave Halter e9a3a44780 Remove some other _star_import_cache stuff, and with this, #489 should be fixed. 2014-10-06 17:55:28 +02:00
Dave Halter 3638d5149d Change time_cache, to also host the star_import_cache. 2014-10-06 17:37:34 +02:00
Dave Halter bbdb4703ec change cache_call_signatures, so that it has a well defined input. 2014-10-06 16:07:33 +02:00
Dave Halter 87574e9d2e star_import_cache refactorings: Make it more readable. 2014-10-04 12:43:08 +02:00
Dave Halter a1b55a9df7 clear_caches -> clear_time_caches 2014-10-03 14:23:46 +02:00
Dave Halter 03e01631cc Remove NamePart from existance and rename it to Name. 2014-09-26 16:29:53 +02:00
Dave Halter b68a59daef Fix the last remaining issues of the first part of the NamePart switch. 2014-09-09 15:58:20 +02:00
Dave Halter 5a3ee02399 Use ExprStmt pretty much everywhere where it should be used.
ExprStmt is now really a normal statement. All the other statements are from now on considered legacy code. As a side effect this increases the parser pickling version.
2014-09-06 11:13:58 +02:00
Dave Halter 8006d6f190 Change implementation of StatementElement.
Instead of having both next and execution as attributes, we now only have next, because it's an execution if there's an array.
2014-08-18 22:25:55 +02:00
Dave Halter c44168f7ad add a Flow.previous attribute to be able to access the if flow from an else clause. 2014-08-05 11:17:18 +02:00
Dave Halter 852cdad754 Operator fixes. Subclass of Simple, now. 2014-07-22 16:02:34 +02:00
Dave Halter ee1c5041ed use the new implementation of splitlines all over the code, fixes #424 2014-07-18 16:59:22 +02:00
Dave Halter 0b926ca454 get rid of is_list_comp boolean in favor of a direct check of ListComprehensionFlow 2014-06-09 20:19:31 +02:00
Dave Halter dd50001ed1 update pickling version, because we have changed some things about the KeywordStatement a while ago 2014-05-19 13:49:52 +02:00
Dave Halter 6bec7ce847 speed up Builtin lookups 2014-04-25 14:12:28 +02:00
Dave Halter f0e7b5583d update parser pickling version again, because we've changed a lot in the last few commits 2014-04-18 14:41:29 +02:00
Dave Halter d8d6b20a17 fix line split issues in cache 2014-04-09 13:16:28 +02:00
Dave Halter 46277eb9c9 call_signatures caching should be much more precise, now. fixes #390 2014-04-09 12:27:23 +02:00
Dave Halter 162d794081 underscore_decorators now automatically convert generators to lists 2014-01-23 15:21:52 +01:00
Dave Halter b30a186f8f remove user_stmt and user_scope stuff - yes! 2014-01-17 02:34:09 +01:00
Dave Halter 059b1e1353 underscore_memoization is now even easier in fast parser 2014-01-15 15:57:43 +01:00
Dave Halter d71cdded6e some easier memoization for fast parser 2014-01-15 15:48:16 +01:00
Dave Halter b2507ad94a increase the pickling version. 2014-01-13 23:00:01 +01:00
Dave Halter 682e1c2708 debug.dbg and debug.warning now take a string and format args parameters to make debugging a little bit cleaner 2014-01-13 16:16:07 +01:00
Dave Halter 1a3541e3aa removed from 'from __future__ import with_statement' imports, they are not needed anymore (python 2.5 is no longer supported) 2014-01-07 17:46:22 +01:00
Dave Halter 471cf742dc add an cache.underscore_memoization decorator to make some recurring patterns easier to read 2014-01-05 10:37:28 +01:00
Dave Halter 4fdfbcd7e4 make the invalidate_star_import stuff easier 2014-01-05 10:18:04 +01:00
Dave Halter 29e661ea74 remove a lot of modules crap and replace it with a simple method called load_module 2014-01-04 14:35:11 +01:00
Dave Halter 4af92b166a use expression_list instead of commands or call_list 2013-12-27 14:24:14 +01:00
Dave Halter c290afbb1a increase pickling version and change mixin path for builtins 2013-12-27 01:34:23 +01:00
Dave Halter dd7d7ceb7e make some parser caches private 2013-12-26 12:20:29 +01:00
Dave Halter 4cf5d56b64 fix more issues and renamings 2013-12-25 03:24:12 +01:00
Dave Halter ab2c6bf45d integrate memoize caches into evaluator 2013-12-24 18:46:51 +01:00
Dave Halter 066056fb2b memoize_default should always take a first argument 2013-12-24 18:06:15 +01:00
Jean-Louis Fuchs 099a6c2697 * added token.py 2013-12-05 23:59:48 +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
Steven Silvester 9cac894273 Disabling gc while loading pickles for a 20% speed boost on larger libs 2013-10-06 06:26:36 -05:00
David Halter c3ba7d2ae8 remove except only clauses 2013-09-06 00:02:32 +04:30
David Halter ad16f34cda generate set_vars now 2013-09-02 16:02:18 +04:30
David Halter 2e8432de21 don't use function_definition as a name anymore, also not in helper functions 2013-08-21 13:38:13 +04:30
David Halter ed99e380d7 catch ValueError when the cache json.load method fails, fixes #245 2013-07-19 10:55:07 +02:00
David Halter 902e197c4e bump _ModulePickling number 2013-05-03 13:26:25 +04:30
Danilo Bargen b3d9b6ce69 Removed py25 related code (fixes #206) 2013-04-27 16:47:40 +02:00
Danilo Bargen f98b0d7b6f New "with ignored(*exceptions)" context manager 2013-04-17 23:28:37 +02:00
Aldo Stracquadanio 07ec134bc9 Adding python 3.3 to test environment, mani fixes
Added python 3.3 to test-suite

Removed unused import

Removed unused import

Migrated to EAFP for attribute checking

Bumped version of ModulePickling for migration to hashlib

Added py33 environment to tox

Fixed issue with package importing on python 3.3
2013-03-27 10:48:56 +00:00
Aldo Stracquadanio be8ef33b69 Fixed caching issues
Fixed exception raised during cache reading

Switched cache hashing to hashlib

In python 3.3 the hash function is returning different hashes during
different executions of the application.
2013-03-27 10:48:13 +00:00
Takafumi Arakaki aca1cbfa4b Use "jedi/cpython-27" instead of "jedi/2.7" for FS cache 2013-03-20 16:46:55 +01:00
Takafumi Arakaki 27d007adba Compare version using "!="
Cache is not forward compatible.
2013-03-20 12:21:22 +01:00
Takafumi Arakaki 942b66ba5b Separate directory for each Python version 2013-03-20 12:21:22 +01:00