In order to get around the lack of a long in python3, compat does this:
class long(int): pass
but long is used by the prom.Field to create BIGINT fields in python2, the problem is that int in python3 is the same as long in python 2 (so there isn't really a way to create BIGINT fields in python 3 without doing something like:
from prom.compat import long
from prom import Field
some_field = Field(long)
which seems horrible and is definitely counter-intuitive. I'm wondering if it is worth just making all integers BIGINT in python 3?
In order to get around the lack of a
long
in python3, compat does this:but
long
is used by theprom.Field
to createBIGINT
fields in python2, the problem is thatint
in python3 is the same aslong
in python 2 (so there isn't really a way to createBIGINT
fields in python 3 without doing something like:which seems horrible and is definitely counter-intuitive. I'm wondering if it is worth just making all integers
BIGINT
in python 3?