Commit Graph
100 Commits
Author SHA1 Message Date
Dave Halter fc1899ecd4 implement user_scope search separately in UserContextParser 2014-01-17 02:08:37 +01:00
Dave Halter 33b7c341ab minor changes 2014-01-17 01:40:30 +01:00
Dave Halter 8b34e120e0 for loops are now parsed even if they are really faulty and don't end. 2014-01-17 01:39:23 +01:00
Dave Halter 92eba44d07 allow for flows to also be very faulty 2014-01-17 01:26:34 +01:00
Dave Halter e5d40c3685 flow syntax errors should still make it possible to add them to the parser (otherwise parser doesn't include all the code 2014-01-17 01:15:36 +01:00
Dave Halter 3337d638d1 fix some colorama/pytest combo crazyness 2014-01-17 01:02:50 +01:00
Dave Halter 588fbea4f9 start to remove user_stmt parsing 2014-01-17 00:25:30 +01:00
Dave Halter 6ef75256e0 fix end_pos stuff for fast parser 2014-01-17 00:24:45 +01:00
Dave Halter 4bf72eeaed create a customized UserContextParser for user_stmt and user_scope 2014-01-16 12:12:21 +01:00
Dave Halter 269e84da85 changed version stuff in setup.py, fixes #369 2014-01-16 00:36:14 +01:00
Dave Halter 134cd234de moved user_stmt up in api 2014-01-15 17:35:40 +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 d5aa36cc69 replace propery with safe_property in some evaluate cases. fixes #249 2014-01-15 15:07:06 +01:00
Dave Halter 99882724da is_py3k -> is_py3 2014-01-14 11:43:56 +01:00
Dave Halter a6e49f2680 compatibility improvements -> use reduce from functools 2014-01-14 11:31:01 +01:00
Dave Halter 8bf8985247 move replstartup to the api 2014-01-14 00:08:25 +01:00
Dave Halter a44ce6b7df beautify __main__ 2014-01-14 00:06:01 +01:00
Dave Halter a9efa3db33 make utils feel more pythonic 2014-01-14 00:02:09 +01:00
Dave Halter b2507ad94a increase the pickling version. 2014-01-13 23:00:01 +01:00
Dave Halter b70ea1b9f6 fix a version_info testcase - testcase was broken 2014-01-13 22:17:12 +01:00
Dave Halter 6051b76304 added a note on how to ask questions on stackoverflow to the readme, fixes #334 2014-01-13 22:14:34 +01:00
Dave Halter 0c4a86acfd version bump to 0.8.0, we should make a release again 2014-01-13 21:49:00 +01:00
Dave Halter 7dff41c6b7 added a utils.version_info function to make it easy to check Jedi's version. #350 2014-01-13 21:40:16 +01:00
Dave Halter bf427fb312 use a string instead of a tuple for __version__, this behaviour is defined in a pep somewhere (maybe pep8). fixes #350 2014-01-13 21:34:30 +01:00
Dave Halter cdd356ff9b removed pr.String and pr.Number in favor of the more general pr.Literal 2014-01-13 16:47:01 +01:00
Dave Halter 717c4315df Remove Todos that didn't make sense. 2014-01-13 16:29:30 +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 157f76a55d keywords should be part of the api package 2014-01-13 14:24:34 +01:00
Dave Halter cf0a2e8c2e use FakeStatement instead of strange Statement constructions 2014-01-13 14:14:04 +01:00
Dave Halter 83b490dd6d PyObject -> CompiledObject, PyName -> CompiledName 2014-01-13 14:09:03 +01:00
Dave Halter 0c98c05cd3 use __import__ instead of exec_function (should have done that a long time ago) 2014-01-13 14:01:03 +01:00
Dave Halter 1c1349162c memory_check.py should be an executable script 2014-01-13 13:55:29 +01:00
Dave Halter 292d33e2d1 Merge pull request #363 from davidhalter/builtin
Fixing Memory Issues in Compiled Modules
2014-01-13 03:20:00 -08:00
Dave Halter 6b3ebe50d8 scripts folder doesn't need testing - just ignore it 2014-01-13 03:18:17 +01:00
Dave Halter fd8c4bcf67 Merge pull request #367 from blink1073/memory_check
Add a module to test the memory usage with large libaries
2014-01-12 18:11:49 -08:00
Dave Halter e56a0cf544 docstring was sometimes empty for faked modules 2014-01-13 02:58:10 +01:00
Dave Halter a96a2baf5b fix an issue with missing '__class__' methods e.g. in numpy 2014-01-13 02:30:10 +01:00
Dave Halter c602dc1c40 modules like PyQt4.QtGui are now importable, because the import works again. used a code snippet from the old builtin plugin 2014-01-13 01:57:26 +01:00
Dave Halter b2d99be3ee delete old builtin code 2014-01-12 19:23:37 +01:00
Dave Halter 4b319ad817 fix a docstr issue 2014-01-12 19:22:31 +01:00
Dave Halter dfb494b9c4 finally able to delete the old builtin stuff 2014-01-12 18:22:33 +01:00
Dave Halter 860aa50192 renamed fake/_io.pym to io.pym and fixed some other 'fake' issues 2014-01-12 18:17:00 +01:00
Dave Halter 2bde6cde08 changing completion of python file objects 2014-01-12 18:07:58 +01:00
Dave Halter 99fe204496 Merge remote-tracking branch 'origin/dev' into builtin 2014-01-12 17:04:48 +01:00
Dave Halter c75cef0882 fix some python 3 compatibility things (which involves some real bugs, but py2 was passing) 2014-01-12 17:02:26 +01:00
Dave Halter 4e18fe1e11 Merge pull request #365 from blink1073/dev
Allow Jedi to be imported from a REPL on Windows
2014-01-12 06:08:11 -08:00
Dave Halter e4f3f5bea2 fix recursion issue with compiled classes 2014-01-12 14:28:42 +01:00
Dave Halter bd239446f5 fix call signatures 2014-01-12 02:42:00 +01:00
Dave Halter 7a0dc41b62 fixed doctest issues 2014-01-12 02:23:35 +01:00
Dave Halter 0bff729294 lots of small bugfixes 2014-01-12 02:15:59 +01:00
Dave Halter b93c761db6 after fixing private variable filtering it looks much better 2014-01-12 01:11:59 +01:00
Dave Halter 4006b231d3 fix a few last standing issues with integration tests. ok after running tests with tox i see that they are not the last issues... 2014-01-12 00:34:56 +01:00
Dave Halter 1765fadf73 fix problems with self attributes - from fake modules 2014-01-11 18:05:44 +01:00
Dave Halter d430ef53a7 fix a few more minor issues 2014-01-11 16:14:58 +01:00
Dave Halter c6a14a348e parent was wrongly used in _create_from_name 2014-01-11 16:04:05 +01:00
Dave Halter bfe0c62e7f filter None (is more a keyword than a builtin object) 2014-01-11 15:58:14 +01:00
Dave Halter fc35e69a16 adding helpers.FakeName and other fakes to make it easier to fake parser names and statements 2014-01-11 13:41:03 +01:00
Dave Halter 6f9d834a93 now able to execute instance subscopes on compiled 2014-01-11 13:01:09 +01:00
Dave Halter 28ab937eca in the process... 2014-01-11 02:55:50 +01:00
Dave Halter e7c7bbca79 simple debugging improvement - make it more readable by giving it an indent 2014-01-11 01:58:31 +01:00
Dave Halter 19fa320c88 a hopefully simple integration of PyObject into Instance 2014-01-11 01:48:59 +01:00
Dave Halter 8337f77886 a few other small changes before changing compiled Instance execution to the representation 2014-01-11 01:19:09 +01:00
Dave Halter 32e39ef4ca fixing parents in compiled 2014-01-11 00:26:53 +01:00
Dave Halter 01c03966a7 make first faked compiled modules work 2014-01-10 23:35:58 +01:00
Dave Halter 78cc015b9d start introducing the compiled.fake module that fakes builtin code 2014-01-10 22:58:49 +01:00
Dave Halter 400b0a4aa7 move mixin to compiled/fake to structure it better 2014-01-10 16:38:13 +01:00
Dave Halter 8854206f2a created a module for compiled 2014-01-10 16:37:28 +01:00
Dave Halter 14c9ed88ca fixed the getattr/__getattr__ stuff 2014-01-10 15:14:55 +01:00
Dave Halter f868668f0e trying to fix the getattr mess with compiled 2014-01-10 13:36:29 +01:00
Dave Halter b1409c8f74 fix a name glitch in keywords 2014-01-10 02:03:02 +01:00
Dave Halter 59b379ccc5 fixed most function issues 2014-01-10 00:52:39 +01:00
Dave Halter 9056dc1b9b fixed some array indexing 2014-01-09 19:55:00 +01:00
Dave Halter 0234c1429b fix a few more tracebacks 2014-01-09 17:54:40 +01:00
Dave Halter dfd9a779c3 fix magic_function issues with compiled module 2014-01-09 17:09:31 +01:00
Dave Halter f755e615c9 magic_method -> magic_function 2014-01-09 17:06:02 +01:00
Dave Halter db149a84a8 fixed a lot of import related problems 2014-01-09 16:50:31 +01:00
Dave Halter 7965cae373 also changed the imports stuff to partially support compiled 2014-01-09 14:38:15 +01:00
Dave Halter 11e2446438 replaced builtin with compiled in all modules except imports 2014-01-09 11:05:04 +01:00
Dave Halter d2358c60b7 more builtin replacements with compiled 2014-01-09 02:02:33 +01:00
Dave Halter df6317f8b0 already a lot of tests pass - time to kick it up a notch 2014-01-09 01:56:27 +01:00
Dave Halter e7e802408b fix some api stuff for PyObject 2014-01-09 01:52:10 +01:00
Dave Halter 0cb23dcfa2 tried to start introducing the compiled module to the library 2014-01-09 01:30:29 +01:00
Dave Halter 3017e72b86 first executions with compiled seem to be working 2014-01-09 00:53:50 +01:00
Dave Halter 7af9e6dfd7 pushed the _parse_function_doc to compiled 2014-01-08 22:01:26 +01:00
Dave Halter d71fe3061b better environment for compiled executions 2014-01-08 02:20:41 +01:00
Dave Halter f257e279c2 pass the first test 2014-01-07 18:48:54 +01:00
Dave Halter 70413768ef add a 'compiled' module, to finally solve #102 and #335 2014-01-07 18:45:02 +01:00
Dave Halter f3768f818b Merge pull request #362 from davidhalter/refactoring
Refactoring Jedi for code readability
2014-01-07 09:35:44 -08: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 73aeee6919 make defined_names public in api.classes, because it is 2014-01-07 15:47:00 +01:00
Dave Halter 6deac1dc41 api is now a separate package, to structure the whole thing better. 2014-01-07 15:33:24 +01:00
Dave Halter 3126031ff2 move module checking again - probably the last time (resolves an import issue) 2014-01-07 15:20:00 +01:00
Dave Halter a74b7299e2 scan_statement -> scan_statement_for_calls 2014-01-07 15:10:19 +01:00
Dave Halter 359f3ed4a9 also moved scan_statement away from dynamic 2014-01-07 15:06:11 +01:00
Dave Halter a5fa739960 moved another method away from dynamic 2014-01-07 15:01:59 +01:00
Dave Halter 8a9453872f cleaned up evaluate.param 2014-01-07 14:44:39 +01:00
Dave Halter 1881a24e73 moved the param generation into another file 2014-01-07 14:33:27 +01:00
Dave Halter 69afc2482a nicer _remove_statements 2014-01-07 13:25:30 +01:00
Dave Halter a3e4b209c7 _remove_statements beautified 2014-01-07 12:19:05 +01:00