Dave Halter
13949ec145
move is_nested check from evaluate.imports to the parser
2014-05-12 11:02:57 +02:00
Dave Halter
c59a8dce28
ImportError detection
2014-05-11 01:54:25 +02:00
Dave Halter
60971245d6
star imports now have their own class, which will be important for AttributeError detection
2014-05-10 16:53:27 +02:00
Dave Halter
358472b21f
improved star import support preparation
2014-05-10 14:12:36 +02:00
Dave Halter
d0b2a2ce4f
fixed NestedImportModule
2014-05-09 11:52:10 +02:00
Dave Halter
2d48c72340
introduce a NestedImportModule class
2014-05-08 13:22:41 +02:00
Dave Halter
fcd8b25d3d
the parser in general now cares for carriage return/new line combinations
2014-05-04 12:32:02 +02:00
Dave Halter
ef62904af3
python 2 compatibility (also with the new travis build)
2014-05-04 11:50:13 +02:00
Dave Halter
c44b88adc3
Error token handling with dots in front.
2014-05-03 12:39:20 +02:00
Dave Halter
e5326acf8f
ImportPath -> ImportWrapper
2014-04-30 17:15:59 +02:00
Jorgen Schaefer
9ed0dc4861
Always load source files in binary mode.
...
Source files can be in any coding system, provided Python can
read a coding: line at the beginning of the file. So source files
should be loaded in binary format and decoded according to that
line, not assumed to be in the default coding system.
Fixes #398 .
2014-04-24 11:10:59 +02:00
Dave Halter
50c4b7bfd9
memoize problems with defaults in combination with raised exceptions
2014-04-20 14:14:30 +02:00
Dave Halter
547ec56bd3
remove NamePart.string, can be done by casting it to unicode
2014-04-18 14:40:28 +02:00
Dave Halter
237af765b7
start to get rid of the get_set_vars/get_defined_names distinction
2014-04-14 12:28:24 +02:00
Dave Halter
edeebd0bb9
Name initialization should always take the same param types as input
2014-04-13 15:00:49 +02:00
Dave Halter
a6bfb1b3ad
fix issues with os.path completions
2014-04-11 10:33:32 +02:00
Dave Halter
840a806246
generalize import optimizations and make them behave more like sys.modules
2014-04-10 15:21:23 +02:00
Dave Halter
4bc89d638c
start caching some parts of the imports to significantly speed up numpy completions.
2014-04-10 14:55:49 +02:00
Dave Halter
14bf618af0
put some list casts into a different place.
2014-04-10 12:24:30 +02:00
Dave Halter
78837ce539
cleanup
2014-03-21 14:31:15 +01:00
Dave Halter
83b7190a0a
a follow function for the Importer which solves the issues with follow_definitions
2014-03-21 14:09:12 +01:00
Dave Halter
fa0502d762
again testing improvements. follow_definitions imports are now pretty much covered
2014-03-21 13:50:29 +01:00
Dave Halter
a06310db4a
again a temporary follow_definition for imports
2014-03-21 09:27:52 +01:00
Dave Halter
1703f7cca6
kind of separated Importer from ImportPath
2014-03-20 18:21:17 +01:00
Dave Halter
58026c6542
temporary conversion of the imports module to separate import processing from actually importing things
2014-03-19 16:40:38 +01:00
Dave Halter
5764e760d2
improve internal module links for sphinx documentation
2014-03-11 15:46:08 +01:00
Dave Halter
600371632f
NamePart is now no str subclass anymore. They are separated, which makes us save a lot of dicts
2014-02-13 19:22:36 +01:00
Dave Halter
97ad1c6a29
moved get_names_for_scope to finder
2014-01-17 11:33:46 +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
83b490dd6d
PyObject -> CompiledObject, PyName -> CompiledName
2014-01-13 14:09:03 +01:00
Dave Halter
d430ef53a7
fix a few more minor issues
2014-01-11 16:14:58 +01:00
Dave Halter
7965cae373
also changed the imports stuff to partially support compiled
2014-01-09 14:38:15 +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
3126031ff2
move module checking again - probably the last time (resolves an import issue)
2014-01-07 15:20:00 +01:00
Dave Halter
53dbec52ab
use find_types instead of find_names
2014-01-06 14:29:23 +01:00
Dave Halter
6df69478dc
move load_module to imports
2014-01-05 13:51:22 +01:00
Dave Halter
9523e70a71
sys_path stuff has its own module, now.
2014-01-05 13:07:37 +01:00
Dave Halter
4d7349411e
probably finished the load_module method migration
2014-01-05 01:37:54 +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
75a1b6f8cb
follow_paths -> follow_path, follow_path -> _follow_path
2013-12-28 15:00:04 +01:00
Dave Halter
8f564a301f
clean up caches clearing
2013-12-26 02:10:30 +01:00
Dave Halter
8326658134
more improvements, so that almost all import tests pass again
2013-12-24 19:55:11 +01:00
Dave Halter
85a12e8866
RecursionDecorator now also works with Evaluator caches
2013-12-24 19:14:14 +01:00
Dave Halter
ab2c6bf45d
integrate memoize caches into evaluator
2013-12-24 18:46:51 +01:00
Dave Halter
56457a9c8c
ImportPath has now also an _evaluator
2013-12-24 18:00:00 +01:00
Dave Halter
d25cc6e1fe
it should be _evaluator not evaluator
2013-12-24 17:52:01 +01:00
Dave Halter
4e68856cc4
move builtin and imports into the evaluate directory
2013-12-24 16:13:26 +01:00