<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/astroid-git.git, branch astroid-2.4.0</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 2.4.0 release of astroid</title>
<updated>2020-04-27T08:49:40+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>pcmanticore@gmail.com</email>
</author>
<published>2020-04-27T08:49:40+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=6c8bfb4b7fb5366a3facfc08020c68ac426b9a8d'/>
<id>6c8bfb4b7fb5366a3facfc08020c68ac426b9a8d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add missing copyright annotations for the past releases</title>
<updated>2020-04-27T08:48:59+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>pcmanticore@gmail.com</email>
</author>
<published>2020-04-27T08:48:59+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=c2e6a889e338ef488fb0656a0fb6eaadbb59e463'/>
<id>c2e6a889e338ef488fb0656a0fb6eaadbb59e463</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Transform read_module() into a lambda to prevent it being marked as a bound method</title>
<updated>2020-04-27T07:03:58+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>pcmanticore@gmail.com</email>
</author>
<published>2020-04-27T07:03:58+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=de15854831d35dd332d2aded821191a4630b18ce'/>
<id>de15854831d35dd332d2aded821191a4630b18ce</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Export `six.moves.reload_module` from `importlib` not `imp`</title>
<updated>2020-04-27T07:00:40+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>pcmanticore@gmail.com</email>
</author>
<published>2020-04-27T07:00:40+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=42e4b356de3d951b692082381e4a6c2a8aa36a3e'/>
<id>42e4b356de3d951b692082381e4a6c2a8aa36a3e</id>
<content type='text'>
Close PyCQA/pylint#3509
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Close PyCQA/pylint#3509
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix formatting error</title>
<updated>2020-04-03T13:54:12+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>pcmanticore@gmail.com</email>
</author>
<published>2020-04-03T13:54:12+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=f6a36d912c83d33bebd9c817c803b811130c76c8'/>
<id>f6a36d912c83d33bebd9c817c803b811130c76c8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Inspect compiled CFFI extension members</title>
<updated>2020-04-03T12:34:42+00:00</updated>
<author>
<name>Robin Jarry</name>
<email>robin.jarry@6wind.com</email>
</author>
<published>2020-03-31T13:00:14+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=2da60a08de6f146f5dff78db3d01bee10ed375dc'/>
<id>2da60a08de6f146f5dff78db3d01bee10ed375dc</id>
<content type='text'>
To use a CFFI extension, its "lib" symbol gives access to the exported
C symbols and its "ffi" symbol gives access to low-level utilities.
An import such as the following is required:

  from _compiled_extension_module import ffi
  from _compiled_extension_module import lib

Then in the code, these objects are used to access the C symbols:

  pp = ffi.cast('struct mystruct *', p)
  lib.exported_c_function(pp)

Even if "_compiled_extension_module" is added to
AstroidManager.extension_package_whitelist, the "ffi" and "lib" objects
are not analyzed properly since they do not fall into any of the
supported categories of objects. A dummy "builtin.module" node is
inserted in their place preventing tools like pylint to properly detect
object membership. Thus producing invalid errors:

  Instance of 'module' has no 'cast' member [no-member]
  Instance of 'module' has no 'exported_c_function' member [no-member]

Both these objects define __all__ attributes which lists their exported
symbols. The presence of __all__ means that dir(member) will work and
that object_build may be called recursively on that member.

Insert a Module node to represent these objects and add their members to
the built AST.

Link: https://cffi.readthedocs.io/en/latest/overview.html#main-mode-of-usage
Signed-off-by: Robin Jarry &lt;robin.jarry@6wind.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To use a CFFI extension, its "lib" symbol gives access to the exported
C symbols and its "ffi" symbol gives access to low-level utilities.
An import such as the following is required:

  from _compiled_extension_module import ffi
  from _compiled_extension_module import lib

Then in the code, these objects are used to access the C symbols:

  pp = ffi.cast('struct mystruct *', p)
  lib.exported_c_function(pp)

Even if "_compiled_extension_module" is added to
AstroidManager.extension_package_whitelist, the "ffi" and "lib" objects
are not analyzed properly since they do not fall into any of the
supported categories of objects. A dummy "builtin.module" node is
inserted in their place preventing tools like pylint to properly detect
object membership. Thus producing invalid errors:

  Instance of 'module' has no 'cast' member [no-member]
  Instance of 'module' has no 'exported_c_function' member [no-member]

Both these objects define __all__ attributes which lists their exported
symbols. The presence of __all__ means that dir(member) will work and
that object_build may be called recursively on that member.

Insert a Module node to represent these objects and add their members to
the built AST.

Link: https://cffi.readthedocs.io/en/latest/overview.html#main-mode-of-usage
Signed-off-by: Robin Jarry &lt;robin.jarry@6wind.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add posonlyargs_annotations to Arguments.get_children()</title>
<updated>2020-03-28T08:58:32+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>pcmanticore@gmail.com</email>
</author>
<published>2020-03-28T08:58:32+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=2e1ba8eb47694439215b866564c4699039b86ec9'/>
<id>2e1ba8eb47694439215b866564c4699039b86ec9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add posonlyargs_annotations to Arguments.as_string()</title>
<updated>2020-03-28T08:52:56+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>pcmanticore@gmail.com</email>
</author>
<published>2020-03-28T08:52:56+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=a50d47300b3118d7913984bb5dc018d8d3eb0967'/>
<id>a50d47300b3118d7913984bb5dc018d8d3eb0967</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>``BoundMethod.implicit_parameters`` returns a proper value for ``__new__``</title>
<updated>2020-03-26T09:05:56+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>pcmanticore@gmail.com</email>
</author>
<published>2020-03-26T09:05:56+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=f62be0a2d52b2ba01010cecc372fceb821528091'/>
<id>f62be0a2d52b2ba01010cecc372fceb821528091</id>
<content type='text'>
Close PyCQA/pylint#2335
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Close PyCQA/pylint#2335
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow `FunctionDef.getattr` to look into both instance attrs and special attributes</title>
<updated>2020-03-26T08:26:00+00:00</updated>
<author>
<name>Claudiu Popa</name>
<email>pcmanticore@gmail.com</email>
</author>
<published>2020-03-26T08:26:00+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=76fd7aa73cfbe650c97bf6828adb7e39490c3e99'/>
<id>76fd7aa73cfbe650c97bf6828adb7e39490c3e99</id>
<content type='text'>
Modifying an attribute of a function with an augmented assignment resulted in
`FunctionDef.getattr` to prioritize the instance attributes fetching. This means
that only the augmented assignment modification would have been visible.

Close PyCQA/pylint#1078
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Modifying an attribute of a function with an augmented assignment resulted in
`FunctionDef.getattr` to prioritize the instance attributes fetching. This means
that only the augmented assignment modification would have been visible.

Close PyCQA/pylint#1078
</pre>
</div>
</content>
</entry>
</feed>
