frenetic-lang / frenetic

The Frenetic Programming Language and Runtime System
http://www.frenetic-lang.org/
Other
223 stars 51 forks source link

Python Binding Ipv4Dst Doesn't Accept Mask #461

Closed craig-riecke closed 8 years ago

craig-riecke commented 8 years ago

The following code:

Ipv4Dst('192.168.12.3', 24)

Throws:

File "../frenetic/lang/python/frenetic/syntax.py", line 346, in init assert(mask) == int

The problem is the assert on line 346 compares mask to int, not type(mask) to int