Skip to content

Commit 35c1849

Browse files
committed
add bitarray-based polynomial base objects
1 parent 9fc76a9 commit 35c1849

File tree

7 files changed

+780
-42
lines changed

7 files changed

+780
-42
lines changed

bitarray/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
99
Author: Ilan Schnell
1010
"""
11-
from __future__ import absolute_import
12-
13-
from bitarray._bitarray import (bitarray, decodetree, _sysinfo,
11+
from bitarray._bitarray import (bitarray, decodetree, _sysinfo, tbase,
1412
get_default_endian, _set_default_endian, eval_all_terms,
1513
__version__)
1614

bitarray/_bitarray.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3359,6 +3359,11 @@ init_bitarray(void)
33593359
Py_INCREF((PyObject *) &Bitarray_Type);
33603360
PyModule_AddObject(m, "bitarray", (PyObject *) &Bitarray_Type);
33613361

3362+
if (PyType_Ready(&TBase_Type) < 0)
3363+
goto error;
3364+
Py_INCREF((PyObject *) &TBase_Type);
3365+
PyModule_AddObject(m, "tbase", (PyObject *) &TBase_Type);
3366+
33623367
if (PyType_Ready(&DecodeTree_Type) < 0)
33633368
goto error;
33643369
Py_SET_TYPE(&DecodeTree_Type, &PyType_Type);

0 commit comments

Comments
 (0)