Skip to content

Problem with take() in bidder.py #41

@majun69

Description

@majun69

Greetings!
I'm trying to use the Bidder module (z3b version) in your repository, but encountered the following problem.
I first created a bidder using a BidderFactory

self.bidder = BidderFactory.default_bidder()

then

self.bidder.find_call_for(hand, call_history)

which raised the following exception

File "C:\saycbridge-master\src\z3b\bidder.py", line 207, in __exit__
    _solver_pool.restore(previous_history._solver.take())
AttributeError: 'functools._lru_cache_wrapper' object has no attribute 'take'

It seems that the _solver is missing a take() method. I'm wondering what's the expected behavior of take() here. Is there a possible workaround? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions