270 karma · joined February 24, 2012
> Google Maps
Here you go.
>>> from collections import namedtuple
>>> Time = namedtuple('Time', ['hours', 'minutes'])
>>> Point = namedtuple('Point', ['x', 'y'])
>>> t = Time(hours=7, minutes=40)
>>> p = Point(x=7, y=40)
>>> p == t
True
They're still tuples. They're meant more as a tool for making an already existing tuple mess slightly more managable rather than creating a new mess.For making plain data objects take less boilerplate to create have a look at attrs: https://attrs.readthedocs.io
Make just needs executables. It doesn't need specific plugins for each compiler. Its syntax is arcane but it was much easier to make it up and running.
def I(s):
import inspect
frame = inspect.currentframe()
caller_locals = frame.f_back.f_locals
return s.format(**caller_locals)
def main():
a = 12
b = 10
print I('A is {a} and B is {b}')
if __name__ == '__main__':
main()Edit: clojure works on android now but it needed additional porting efforts
But game runs just fine for twenty minutes after disconnect (at least it simulates one city fine). You just may lose your progress because game saves "in the cloud".
I even used internet (through irda gprs phone) on it.
Unfortunately now its touchscreen is broken and I haven't managed to find another compatible touch panel on ebay or dx.