<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/astroid-git.git, branch astroid-1.3.6</title>
<subtitle>github.com: PyCQA/astroid.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/'/>
<entry>
<title>Prepare 1.3.6 release.</title>
<updated>2015-03-14T16:29:02+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>cpopa@cloudbasesolutions.com</email>
</author>
<published>2015-03-14T16:29:02+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=12a6f507f0490ac5b69a2adbdf8ba1119d523ae3'/>
<id>12a6f507f0490ac5b69a2adbdf8ba1119d523ae3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a new option to AstroidManager for controlling the AST peephole optimizer</title>
<updated>2015-03-14T15:31:32+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>cpopa@cloudbasesolutions.com</email>
</author>
<published>2015-03-14T15:31:32+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=ef4fa9c67dd4682472214f98887ce2ac743c9aaf'/>
<id>ef4fa9c67dd4682472214f98887ce2ac743c9aaf</id>
<content type='text'>
The new option, 'optimize_ast', controls if peephole optimizer should be enabled or not.
This prevents a regression, where the visit_binop method wasn't called
anymore with astroid 1.3.5, due to the differences in the resulting AST.
Closes issue #82.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new option, 'optimize_ast', controls if peephole optimizer should be enabled or not.
This prevents a regression, where the visit_binop method wasn't called
anymore with astroid 1.3.5, due to the differences in the resulting AST.
Closes issue #82.
</pre>
</div>
</content>
</entry>
<entry>
<title>Class.slots raises NotImplementedError for old style classes.</title>
<updated>2015-03-14T13:30:27+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>cpopa@cloudbasesolutions.com</email>
</author>
<published>2015-03-14T13:30:27+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=2808c3cf65a2660c4c28232ca48501cee7ce57c2'/>
<id>2808c3cf65a2660c4c28232ca48501cee7ce57c2</id>
<content type='text'>
Closes issue #67.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes issue #67.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge.</title>
<updated>2015-03-14T12:56:48+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>cpopa@cloudbasesolutions.com</email>
</author>
<published>2015-03-14T12:56:48+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=47f2c71b8868e8c70056fc71938fb413fbce5a47'/>
<id>47f2c71b8868e8c70056fc71938fb413fbce5a47</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Get the correct __new__ for Python 2.</title>
<updated>2015-03-12T16:01:44+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>cpopa@cloudbasesolutions.com</email>
</author>
<published>2015-03-12T16:01:44+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=42cccc0b87261c1f9659a0afe03536c3c3a3734d'/>
<id>42cccc0b87261c1f9659a0afe03536c3c3a3734d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Protect against a TypeError in Arguments.fromlineno.</title>
<updated>2015-03-12T15:51:36+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>cpopa@cloudbasesolutions.com</email>
</author>
<published>2015-03-12T15:51:36+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=2d0ec031f6921d21196de0fdad96b2eaf01104b3'/>
<id>2d0ec031f6921d21196de0fdad96b2eaf01104b3</id>
<content type='text'>
The parent's fromlineno can be None when the parent
is a function retrieved from the builtins module,
which will not have the source code at hand.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The parent's fromlineno can be None when the parent
is a function retrieved from the builtins module,
which will not have the source code at hand.
</pre>
</div>
</content>
</entry>
<entry>
<title>Added tag astroid-1.3.5 for changeset 21520283d496</title>
<updated>2015-03-11T12:30:35+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>cpopa@cloudbasesolutions.com</email>
</author>
<published>2015-03-11T12:30:35+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=5104cfb0e31bb88882c6c6bb6e9c653c56ee99e9'/>
<id>5104cfb0e31bb88882c6c6bb6e9c653c56ee99e9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Prepare 1.3.5.</title>
<updated>2015-03-11T12:07:56+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>cpopa@cloudbasesolutions.com</email>
</author>
<published>2015-03-11T12:07:56+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=836a18fc891a48c952d4270566ff32cdb690b3fb'/>
<id>836a18fc891a48c952d4270566ff32cdb690b3fb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove trailing whitespace.</title>
<updated>2015-03-11T11:58:14+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>cpopa@cloudbasesolutions.com</email>
</author>
<published>2015-03-11T11:58:14+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=fe10f8726eedc0f4bfa4b2aad898489db4221120'/>
<id>fe10f8726eedc0f4bfa4b2aad898489db4221120</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Change the way how context caching and scoping is done.</title>
<updated>2015-03-11T11:47:04+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>cpopa@cloudbasesolutions.com</email>
</author>
<published>2015-03-11T11:47:04+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=3d342e85e127fd0f9300fbfd13666747dd9221bd'/>
<id>3d342e85e127fd0f9300fbfd13666747dd9221bd</id>
<content type='text'>
This patch reverts some changes added by a couple of changesets, making
the context caching and scoping to work as before.
The changesets in question are:

 * 41b3bd589da0549ac061bc4c4b5d379cdbb1e10c
   Replace copy_context with some dynamic scoping.

 * 8d3c601
   Remove context.lookupname; make it an argument to infer() when appropriate.

 * partially reverts  048a42c.
   Fix some deep recursion problems.


There were some problems with these changes, which led to horrendous
performance when dealing with multiple inference paths of the same names,
as seen in these Pylint issues:

* https://bitbucket.org/logilab/pylint/issue/395/horrible-performance-related-to-inspect
* https://bitbucket.org/logilab/pylint/issue/465/pylint-hangs-when-using-inspectsignature
* https://bitbucket.org/logilab/pylint/issue/430/pylint-140-execution-time-and-memory

The reverted changes assumed that a context it's only passed to callees
and then destroyed, thus InferenceContext.push always returned another inference context,
with the updated inference path so far. This is wrong, since contexts are sometimes
reused, so the original context, the one before the .push call need to have the same
cache key in its path (this is actually what's happening in these mentioned issues,
the same object is inferred over and over again, but with different contexts).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch reverts some changes added by a couple of changesets, making
the context caching and scoping to work as before.
The changesets in question are:

 * 41b3bd589da0549ac061bc4c4b5d379cdbb1e10c
   Replace copy_context with some dynamic scoping.

 * 8d3c601
   Remove context.lookupname; make it an argument to infer() when appropriate.

 * partially reverts  048a42c.
   Fix some deep recursion problems.


There were some problems with these changes, which led to horrendous
performance when dealing with multiple inference paths of the same names,
as seen in these Pylint issues:

* https://bitbucket.org/logilab/pylint/issue/395/horrible-performance-related-to-inspect
* https://bitbucket.org/logilab/pylint/issue/465/pylint-hangs-when-using-inspectsignature
* https://bitbucket.org/logilab/pylint/issue/430/pylint-140-execution-time-and-memory

The reverted changes assumed that a context it's only passed to callees
and then destroyed, thus InferenceContext.push always returned another inference context,
with the updated inference path so far. This is wrong, since contexts are sometimes
reused, so the original context, the one before the .push call need to have the same
cache key in its path (this is actually what's happening in these mentioned issues,
the same object is inferred over and over again, but with different contexts).
</pre>
</div>
</content>
</entry>
</feed>
