3 ms·
the example posted in that github issue is using filter in a way that is causing its own problems. If you generate stuff randomly, then filter out stuff matchi
by rtpg 2y ago
the example posted in that github issue is using filter in a way that is causing its own problems.
If you generate stuff randomly, then filter out stuff matching some property, you're basically playing the lottery while generating!
- epgui 2y agoAre you sure things are executed sequentially in that order? I would expect hypothesis strategies composed together to be lazily evaluated. In any case, even in the case you describe, I would not expect the strategy to fail with probability 1. Remember that this generates multiple samples, and only one of these need to be valid.