forked from pool/python-bitarray
Accepting request 824394 from devel:languages:python
- Update to 1.4.2: * C-level: - simplify pack/unpack code - fix memory leak in `~` operation (bitarray_cpinvert) * add official Python 3.9 support * improve many docstrings * add DeprecationWarning for `bitdiff()` * add DeprecationWarning when trying to extend bitarrays from bytes on Python 3 (`bitarrays(b'011')` and `.extend(b'110')`) * C-level: - rewrote `.fromfile()` and `.tofile()` implementation, such that now the same code is used for Python 2 and 3. The new implementation is more memoery efficient on Python 3. - use memcmp() in richcompare to shortcut EQ/NE, when comparing two very large bitarrays for equality the speedup can easily be 100x - simplify how unpacking is handled * add more tests * add `.clear()` method (Python 3.3 added this method to lists) * avoid overallocation when bitarray objects are initially created * raise BufferError when resizing bitarrays which is exporting buffers * add example to study the resize() function * improve some error messages * raise `NotImplementedError` with (useful message) when trying to call the `.fromstring()` or `.tostring()` methods, which have been removed in the last release OBS-URL: https://build.opensuse.org/request/show/824394 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=3
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d460a667a3e2d61acf467ff688b5744df20639498146343d8823fcdde3801767
|
|
||||||
size 63660
|
|
3
bitarray-1.4.2.tar.gz
Normal file
3
bitarray-1.4.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:071e053aae1a182a90d5bb94ba3ac1499f4873515926d4fb7fb18deee197da25
|
||||||
|
size 67943
|
@@ -1,3 +1,34 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 5 00:59:24 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Update to 1.4.2:
|
||||||
|
* C-level:
|
||||||
|
- simplify pack/unpack code
|
||||||
|
- fix memory leak in `~` operation (bitarray_cpinvert)
|
||||||
|
* add official Python 3.9 support
|
||||||
|
* improve many docstrings
|
||||||
|
* add DeprecationWarning for `bitdiff()`
|
||||||
|
* add DeprecationWarning when trying to extend bitarrays
|
||||||
|
from bytes on Python 3 (`bitarrays(b'011')` and `.extend(b'110')`)
|
||||||
|
* C-level:
|
||||||
|
- rewrote `.fromfile()` and `.tofile()` implementation,
|
||||||
|
such that now the same code is used for Python 2 and 3.
|
||||||
|
The new implementation is more memoery efficient on
|
||||||
|
Python 3.
|
||||||
|
- use memcmp() in richcompare to shortcut EQ/NE, when
|
||||||
|
comparing two very large bitarrays for equality the
|
||||||
|
speedup can easily be 100x
|
||||||
|
- simplify how unpacking is handled
|
||||||
|
* add more tests
|
||||||
|
* add `.clear()` method (Python 3.3 added this method to lists)
|
||||||
|
* avoid overallocation when bitarray objects are initially created
|
||||||
|
* raise BufferError when resizing bitarrays which is exporting buffers
|
||||||
|
* add example to study the resize() function
|
||||||
|
* improve some error messages
|
||||||
|
* raise `NotImplementedError` with (useful message) when trying to call
|
||||||
|
the `.fromstring()` or `.tostring()` methods, which have been removed
|
||||||
|
in the last release
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 6 18:40:25 UTC 2020 - Martin Hauke <mardnh@gmx.de>
|
Mon Jul 6 18:40:25 UTC 2020 - Martin Hauke <mardnh@gmx.de>
|
||||||
|
|
||||||
|
@@ -18,11 +18,10 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-bitarray
|
Name: python-bitarray
|
||||||
Version: 1.3.0
|
Version: 1.4.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Efficient Arrays of Booleans
|
Summary: Efficient Arrays of Booleans
|
||||||
License: Python-2.0
|
License: Python-2.0
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/ilanschnell/bitarray
|
URL: https://github.com/ilanschnell/bitarray
|
||||||
Source: https://github.com/ilanschnell/bitarray/archive/%{version}.tar.gz#/bitarray-%{version}.tar.gz
|
Source: https://github.com/ilanschnell/bitarray/archive/%{version}.tar.gz#/bitarray-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
|
Reference in New Issue
Block a user