summaryrefslogtreecommitdiff
path: root/astroid/arguments.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-12-11 17:47:56 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2015-12-11 17:47:56 +0200
commit7f4ce0ece9eda79e7a098abbf4ed3c982450f9a1 (patch)
treef3e5e98268b663e25622d8e9ac8df0470fcf6d9a /astroid/arguments.py
parenta77489d20c536d3e4c92d637286fa9e7fb626813 (diff)
downloadastroid-git-7f4ce0ece9eda79e7a098abbf4ed3c982450f9a1.tar.gz
Ignore elements of sequences when converting them to AST with const_factory
const_factory is buggy in master, as well as the entire raw_building module, which means that at given points during rebuilding of ASTs from live objects, nodes are constructed with Python objects as elements, leading to various crashes with pylint and with astroid during certain inference paths. This is fixed in 2.0 though, where raw_building was completely rewritten, but bringing those changes back into master will need some more work to be done. Until this happens, we ignore the elements of sequences passed to const_factory, since they are not useful in anyway (and the code that uses them crashes anyway). This is just a temporary solution until we either merge master with 2.0 or backport raw_building changes from 2.0 to master.
Diffstat (limited to 'astroid/arguments.py')
0 files changed, 0 insertions, 0 deletions