3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-04-15 08:44:10 +00:00
Commit graph

7 commits

Author SHA1 Message Date
Gary Hu
c2d36054d1 Fix two bugs in Python examples
- bincover.py: typo `NOne` -> `None` in _value2bin fallback path
  (would raise NameError if bin_index is out of range).

- complex/complex.py: rename `__neq__` to `__ne__`. Python has no
  `__neq__` dunder, so `!=` was not using the intended definition.
  On Python 3 it silently fell back to the auto-derived inverse of
  `__eq__`; on Python 2 it fell back to identity comparison.
2026-04-14 11:09:19 +08:00
Nikolaj Bjorner
e5dffeace4 fix #2365
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-06-30 08:40:41 +03:00
Dan Liew
896aae5606 Fix Python API examples so they work with Python 3 as well as Python 2. 2017-06-26 11:31:08 +01:00
Christoph M. Wintersteiger
e9f7d558e3 tabs, indentation 2015-05-19 12:40:41 +01:00
Nikolaj Bjorner
e456af142e fix complex.py example with power prompted by suggestion of smilliken
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-03-27 02:42:08 -07:00
Christoph M. Wintersteiger
67e04c5dfb Python example: removed function that has no body.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-16 17:40:28 +00:00
Leonardo de Moura
92695277ed Add new example
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-02-08 19:29:57 -08:00