Two more things:
1) There are also modules that do interval arithmetic with reals, not just
integers. EG: https://pyinterval.readthedocs.io/en/latest/
2) If you don't mind a small amount of inaccuracy you can often get things
down to less than one bit per element for presence/absence, using a bloo
On 2022-04-10 at 22:20:33 +0200,
Antoon Pardon wrote:
>
>
> Op 9/04/2022 om 02:01 schreef duncan smith:
> > On 08/04/2022 22:08, Antoon Pardon wrote:
> > >
> > > Well my first thought is that a bitset makes it less obvious to calulate
> > > the size of the set or to iterate over its elements.
It sounds a little like you're looking for interval arithmetic.
Maybe https://pypi.org/project/python-intervals/1.5.3/ ?
On Thu, Apr 7, 2022 at 4:19 AM Antoon Pardon wrote:
> I am working with a list of data from which I have to weed out duplicates.
> At the moment I keep for each entry a conta
On 10/04/2022 21:20, Antoon Pardon wrote:
Op 9/04/2022 om 02:01 schreef duncan smith:
On 08/04/2022 22:08, Antoon Pardon wrote:
Well my first thought is that a bitset makes it less obvious to calulate
the size of the set or to iterate over its elements. But it is an idea
worth exploring.
On Sat, 9 Apr 2022 04:59:05 -0700 (PDT), NArshad wrote:
> I have accidentally deleted one account in a Django project because of
> which one of the pages is no more accessible and is giving the error
> written below:
>
> IndexError at /view_issued_book/
> list index out of range
>
> and the error
Op 9/04/2022 om 02:01 schreef duncan smith:
On 08/04/2022 22:08, Antoon Pardon wrote:
Well my first thought is that a bitset makes it less obvious to calulate
the size of the set or to iterate over its elements. But it is an idea
worth exploring.
def popcount(n):
"""
Returns the