Comments (2)
Hi @ShraddhaDevaiya,
I've investigated and, unfortunately, this is an unfortunate side-effect of how Python supports operator overloading. Python limits operator overloading to specific operators, and the boolean operators (and, or, not) are considered built-in and cannot be overloaded.
After investigating further, I've concluded that it's best to support dedicated methods for expressing set-membership operations. I've released a 0.0.5 version of PyVSC that provides 'inside' and 'not_inside' methods on scalar data types. Here's an example testcase using the new 'not_inside' method:
Lines 189 to 210 in e6a0039
The new 'inside' and 'not_inside' methods should work with the same combination of operands that the overloaded 'in' operator does.
Best Regards,
Matthew
from pyvsc.
It is working now, thanks for your support !
from pyvsc.
Related Issues (20)
- Passing type of object rather object in isinstance(object,type) method in to_expr(t) function in vsc.types HOT 5
- rand_int8_t with negative maximum can not be randomized HOT 1
- Supporting inheritance in PyVSC HOT 2
- Performance impart using wilcard bins HOT 4
- Random distribution of 2-variable constraints not uniform HOT 5
- Sampling spams unhelpful messages HOT 1
- Dynamic constraints combined with 'soft' constraining HOT 1
- windows10 install pyboolector failed HOT 4
- Can't have a randsz_list_t of randobj HOT 1
- ModuleNotFoundError: No module named 'pyboolector' HOT 10
- I'm not able to install pyvsc package, it fails when handling the pyboolector module HOT 3
- Selecting a list element from a list of bit-vectors returns an int HOT 3
- Setting constraint_mode to False retains the previous range/bounds of the constraint HOT 1
- Cannot make constraint under if_then soft HOT 13
- Cannot use random value as list index in a constraint HOT 2
- PicklingError when trying to pickle a VSC randobj HOT 2
- What is the relation between pyvsc and portable stimulus (pss)? HOT 2
- how to print coverage model HOT 3
- pyvsc performance dominated by stack frame operations in inspect module HOT 1
- import error _boolector_add
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyvsc.