| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| if isinstance(arg, gr): | ||
| return self.from_other(arg) | ||
| if arg is int: | ||
| return self.from_si(arg) | ||
| if arg is float: | ||
| return self.from_d(arg) |
There was a problem hiding this comment.
Should this not be something like if type(arg) is int?
Sorry, something went wrong.
C.f. https://flintlib.org/doc/gr.html#assignment-and-conversions We can use more appropriate functions for conversions than roundtripping through a string
|
Looks good |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
C.f. https://flintlib.org/doc/gr.html#assignment-and-conversions
We can use more appropriate functions for conversions than roundtripping through a string