[Solved] How to get values from JSON Array which doesn’t follow “key” : “value” standard / JSON with no Key?

It’s pretty much the compressed format of JSONArray, I’ve seen it few times, some systems use it to lower the amount of data that gets transferred. You can try something like this (edit how you need it, as this is only a basic concept): // Let us assume your JSON is loaded in jsonString variable … Read more

[Solved] What really is a PNG? [closed]

Standard PNGs don’t support editing. Simplifying it a bit, they are just what you said they are: losslessly compressed bitmaps (vs JPGs, which employ lossy compression, or GIFs which are also bitmaps, but only support up to a 256 color palette). Fireworks PNGs contain a special header and extra data that allows them to retain … Read more

[Solved] Can I store an iterator in a file which I can read from later? Will this reduce space consumption? [closed]

Building on larsmans answer, a custom iterator can be built to do this: class my_large_num(object): def __init__(self): self.num_iterations = 0 def __iter__(self): return self def next(self): if self.num_iterations < 1: self.num_iterations += 1 return 10**200 else: raise StopIteration() You can then: import pickle pickled_repr = pickle.dumps(my_large_num()) restored_object = pickle.loads(pickled_repr) sum(restored_object) This works because underneath, iterable … Read more