Message260840
| Author |
A. Skrobov |
| Recipients |
A. Skrobov, serhiy.storchaka |
| Date |
2016年02月25日.06:08:52 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1456380533.75.0.854399798664.issue26415@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
A practical note: if, instead of importing crash.py, I do a json.loads, with a few extra transformations:
with open("crash.py") as f: holo_table={tuple(int(z) for z in k.split(', ')):v for k,v in json.loads(f.readlines()[0][13:].replace('(','"').replace(')','"')).iteritems()}
--the whole data structure loads in a jiffy.
Makes me wonder why this roundabout approach is so much more efficient than the native parsing. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年02月25日 06:08:53 | A. Skrobov | set | recipients:
+ A. Skrobov, serhiy.storchaka |
| 2016年02月25日 06:08:53 | A. Skrobov | set | messageid: <1456380533.75.0.854399798664.issue26415@psf.upfronthosting.co.za> |
| 2016年02月25日 06:08:53 | A. Skrobov | link | issue26415 messages |
| 2016年02月25日 06:08:52 | A. Skrobov | create |
|