<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/core/shape_base.py, branch maintenance/1.16.x</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>ENH: refactor __array_function__ pure Python implementation</title>
<updated>2019-01-16T23:25:45+00:00</updated>
<author>
<name>Stephan Hoyer</name>
<email>shoyer@google.com</email>
</author>
<published>2018-12-19T18:08:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=a4de69b51e5c64cb0be484b9d3341dfe0685668e'/>
<id>a4de69b51e5c64cb0be484b9d3341dfe0685668e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use set litterals</title>
<updated>2018-11-24T19:59:42+00:00</updated>
<author>
<name>Roman Yurchak</name>
<email>rth.yurchak@pm.me</email>
</author>
<published>2018-11-24T19:59:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=09992482c93f1b9e28b7958a792e6b3b709834fa'/>
<id>09992482c93f1b9e28b7958a792e6b3b709834fa</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: more fixes for disabling overrides</title>
<updated>2018-11-11T00:12:18+00:00</updated>
<author>
<name>Stephan Hoyer</name>
<email>shoyer@google.com</email>
</author>
<published>2018-11-11T00:12:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=b44284ebc42c496e5c5d906acc33ebbc337fd3b1'/>
<id>b44284ebc42c496e5c5d906acc33ebbc337fd3b1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: adjust stack deprecation warning per review</title>
<updated>2018-10-28T21:58:48+00:00</updated>
<author>
<name>Stephan Hoyer</name>
<email>shoyer@google.com</email>
</author>
<published>2018-10-28T21:55:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=00640218fcbc5d71f22550a9368da92358c8de96'/>
<id>00640218fcbc5d71f22550a9368da92358c8de96</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: warn when passing map to stack functions, too</title>
<updated>2018-10-27T20:09:23+00:00</updated>
<author>
<name>Stephan Hoyer</name>
<email>shoyer@google.com</email>
</author>
<published>2018-10-27T20:09:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=ced6475d519552455cc50831052213c1249a909c'/>
<id>ced6475d519552455cc50831052213c1249a909c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>DEP: deprecate passing a generator to stack functions</title>
<updated>2018-10-27T19:45:25+00:00</updated>
<author>
<name>Stephan Hoyer</name>
<email>shoyer@google.com</email>
</author>
<published>2018-10-27T19:23:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=bfe0921f9bdd6b347982a9c998b8b1890040ba5b'/>
<id>bfe0921f9bdd6b347982a9c998b8b1890040ba5b</id>
<content type='text'>
Fixes gh-12263

We can't support generators with dispatch for ``__array_function__``.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes gh-12263

We can't support generators with dispatch for ``__array_function__``.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: set __module__ for more array_function_dispatch uses</title>
<updated>2018-10-26T15:20:31+00:00</updated>
<author>
<name>Stephan Hoyer</name>
<email>shoyer@google.com</email>
</author>
<published>2018-10-26T15:20:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=786cfa0d0d914c1438aa176b3d990d6cf75ea837'/>
<id>786cfa0d0d914c1438aa176b3d990d6cf75ea837</id>
<content type='text'>
I noticed a few more functions using ``array_function_dispatch`` where I had
not set the module, using this script::

    import types

    def check_module(module):
        for name in dir(module):
            item = getattr(module, name)
            if isinstance(item, types.FunctionType):
                print(f'{item.__module__}.{item.__name__}')

    &gt;&gt;&gt; import numpy
    &gt;&gt;&gt; check_module(numpy)
    ...

Note that functions without overrides like ``numpy.ones`` still display the
module in which they are defined, e.g., ``numpy.core.numeric.ones``. We should
probably fix that, too, probably most cleanly adding a decorator that sets
``__module__``, e.g.,

    def set_module(module):
        def decorator(func):
            func.__module__ = module
            return func
        return decorator

    ...

    @set_module('numpy')
    def ones(shape, dtype=None, order='C'):
        ...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I noticed a few more functions using ``array_function_dispatch`` where I had
not set the module, using this script::

    import types

    def check_module(module):
        for name in dir(module):
            item = getattr(module, name)
            if isinstance(item, types.FunctionType):
                print(f'{item.__module__}.{item.__name__}')

    &gt;&gt;&gt; import numpy
    &gt;&gt;&gt; check_module(numpy)
    ...

Note that functions without overrides like ``numpy.ones`` still display the
module in which they are defined, e.g., ``numpy.core.numeric.ones``. We should
probably fix that, too, probably most cleanly adding a decorator that sets
``__module__``, e.g.,

    def set_module(module):
        def decorator(func):
            func.__module__ = module
            return func
        return decorator

    ...

    @set_module('numpy')
    def ones(shape, dtype=None, order='C'):
        ...
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'master' into einsum-dispatch</title>
<updated>2018-10-25T19:46:24+00:00</updated>
<author>
<name>Stephan Hoyer</name>
<email>shoyer@gmail.com</email>
</author>
<published>2018-10-25T19:46:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=2dfb68ef3de5d6fcb9451462d38352f411f055c0'/>
<id>2dfb68ef3de5d6fcb9451462d38352f411f055c0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: provide an algorithm that blocks matrices with a single memory copy.</title>
<updated>2018-10-21T01:02:55+00:00</updated>
<author>
<name>Mark Harfouche</name>
<email>mark.harfouche@gmail.com</email>
</author>
<published>2018-10-02T21:11:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=198df77c93d9813ceaa39db66c2d9393f96c7acd'/>
<id>198df77c93d9813ceaa39db66c2d9393f96c7acd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: add comment explaining _block_dispatcher</title>
<updated>2018-10-19T16:16:16+00:00</updated>
<author>
<name>Stephan Hoyer</name>
<email>shoyer@gmail.com</email>
</author>
<published>2018-10-19T16:16:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=024c728ef42d12a2bf10ce3b44791301c4d66f80'/>
<id>024c728ef42d12a2bf10ce3b44791301c4d66f80</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
