<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/astroid.git/astroid/tests, branch master</title>
<subtitle>bitbucket.org: Obsolete (use python-packages/astroid-git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/astroid.git/'/>
<entry>
<title>Some nodes got a new attribute, 'ctx', which tells in which context the said node was used.</title>
<updated>2015-12-08T08:42:36+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>pcmanticore@gmail.com</email>
</author>
<published>2015-12-08T08:42:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/astroid.git/commit/?id=91747c50f885efe461c0054a7835992f49740ab9'/>
<id>91747c50f885efe461c0054a7835992f49740ab9</id>
<content type='text'>
The possible values for the contexts are `Load` ('a'), `Del` ('del a'),
`Store` ('a = 4') and the nodes that got the new attribute are Starred,
Subscript, List and Tuple. The builtin ast module provides contexts for
Name and Attribute as well, but we took a different approach in the past,
by having different nodes for each type of context. For instance, Name
used in a Del context is a DelName, while Name used in a Store
context is AssignName. Since this is ingrained in astroid since quite
some time, it makes no sense to change them as well, even though it's
a loss of consistency.
The patch introduces a new dependency to enum34 on older Python
versions, which is used for building the three possible enum values
for the contexts.

Closes issue #267.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The possible values for the contexts are `Load` ('a'), `Del` ('del a'),
`Store` ('a = 4') and the nodes that got the new attribute are Starred,
Subscript, List and Tuple. The builtin ast module provides contexts for
Name and Attribute as well, but we took a different approach in the past,
by having different nodes for each type of context. For instance, Name
used in a Del context is a DelName, while Name used in a Store
context is AssignName. Since this is ingrained in astroid since quite
some time, it makes no sense to change them as well, even though it's
a loss of consistency.
The patch introduces a new dependency to enum34 on older Python
versions, which is used for building the three possible enum values
for the contexts.

Closes issue #267.
</pre>
</div>
</content>
</entry>
<entry>
<title>relative_to_absolute_name will now raise TooManyLevelsError when a relative import is trying to access something beyond the top-level package.</title>
<updated>2015-12-06T16:00:01+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>pcmanticore@gmail.com</email>
</author>
<published>2015-12-06T16:00:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/astroid.git/commit/?id=4b4cdeb07b670ef2366c159ef675c336f3c2fb6f'/>
<id>4b4cdeb07b670ef2366c159ef675c336f3c2fb6f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>AstroidBuildingException is now AstroidBuildingError.</title>
<updated>2015-12-06T15:11:50+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>pcmanticore@gmail.com</email>
</author>
<published>2015-12-06T15:11:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/astroid.git/commit/?id=e4ecd3d2805abfbd6f6b457939d4026fa19446ce'/>
<id>e4ecd3d2805abfbd6f6b457939d4026fa19446ce</id>
<content type='text'>
The first name will exist until astroid 2.0.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The first name will exist until astroid 2.0.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add two new exceptions, AstroidImportError and AstroidSyntaxError.</title>
<updated>2015-12-06T15:06:11+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>pcmanticore@gmail.com</email>
</author>
<published>2015-12-06T15:06:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/astroid.git/commit/?id=97c9092852d69f9b98b1276e3d10e9d29c7c0224'/>
<id>97c9092852d69f9b98b1276e3d10e9d29c7c0224</id>
<content type='text'>
They are subclasses of AstroidBuildingException and are raised when
a module can't be imported from various reasons.
Also do_import_module lets the errors to bubble up without converting
them to InferenceError. This particular conversion happens only
during the inference.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
They are subclasses of AstroidBuildingException and are raised when
a module can't be imported from various reasons.
Also do_import_module lets the errors to bubble up without converting
them to InferenceError. This particular conversion happens only
during the inference.
</pre>
</div>
</content>
</entry>
<entry>
<title>assigned_stmts methods have the same signature from now on.</title>
<updated>2015-12-05T11:25:34+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>pcmanticore@gmail.com</email>
</author>
<published>2015-12-05T11:25:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/astroid.git/commit/?id=cf052851cab3176fc6442114cbdc8194b24b5b2e'/>
<id>cf052851cab3176fc6442114cbdc8194b24b5b2e</id>
<content type='text'>
They used to have different signatures and each one made
assumptions about what could be passed to other implementations,
leading to various possible crashes when one or more arguments
weren't given. Closes issue #277.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
They used to have different signatures and each one made
assumptions about what could be passed to other implementations,
leading to various possible crashes when one or more arguments
weren't given. Closes issue #277.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use printf-style formatting in as_string, in order</title>
<updated>2015-12-01T16:49:47+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>pcmanticore@gmail.com</email>
</author>
<published>2015-12-01T16:49:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/astroid.git/commit/?id=2466e41279a9c54228df79baff694b38438b620d'/>
<id>2466e41279a9c54228df79baff694b38438b620d</id>
<content type='text'>
 to avoid a potential problem with encodings when using .format.


Closes issue #273.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 to avoid a potential problem with encodings when using .format.


Closes issue #273.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for handling Uninferable nodes when calling as_string</title>
<updated>2015-11-29T20:11:22+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>pcmanticore@gmail.com</email>
</author>
<published>2015-11-29T20:11:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/astroid.git/commit/?id=c486ba77ea44edc119e723286e26158a65436037'/>
<id>c486ba77ea44edc119e723286e26158a65436037</id>
<content type='text'>
Some object, for instance List or Tuple can have, after inference,
Uninferable as their elements, happening when their components
weren't couldn't be inferred properly. This means that as_string
needs to cope with expecting Uninferable nodes part of the other
nodes coming for a string transformation. The patch adds a visit
method in AsString and ``accept`` on Yes / Uninferable nodes.
Closes issue #270.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some object, for instance List or Tuple can have, after inference,
Uninferable as their elements, happening when their components
weren't couldn't be inferred properly. This means that as_string
needs to cope with expecting Uninferable nodes part of the other
nodes coming for a string transformation. The patch adds a visit
method in AsString and ``accept`` on Yes / Uninferable nodes.
Closes issue #270.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge structured exceptions into master</title>
<updated>2015-11-23T14:11:49+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>pcmanticore@gmail.com</email>
</author>
<published>2015-11-23T14:11:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/astroid.git/commit/?id=96f090f9a420f784587dac18e5ed630fc9c7722f'/>
<id>96f090f9a420f784587dac18e5ed630fc9c7722f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle the cases when a List can contain Uninferable as its elements</title>
<updated>2015-11-23T11:44:11+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>pcmanticore@gmail.com</email>
</author>
<published>2015-11-23T11:44:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/astroid.git/commit/?id=02bdefc5b90d8a93436996f183e63e2a9f85706d'/>
<id>02bdefc5b90d8a93436996f183e63e2a9f85706d</id>
<content type='text'>
This can happen for instance when the list contains objects which
weren't inferable in the first place. There were a bunch of places
affected by this bug: unpack_infer, the inference of list additions
and the handling of the namedtuple's fields.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This can happen for instance when the list contains objects which
weren't inferable in the first place. There were a bunch of places
affected by this bug: unpack_infer, the inference of list additions
and the handling of the namedtuple's fields.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add disable unused-import</title>
<updated>2015-11-07T01:24:00+00:00</updated>
<author>
<name>Ceridwen</name>
<email>ceridwenv@gmail.com</email>
</author>
<published>2015-11-07T01:24:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/astroid.git/commit/?id=ce6c8a0c318cd89d197abc7c3928e52ecf59b356'/>
<id>ce6c8a0c318cd89d197abc7c3928e52ecf59b356</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
