¡@

Home 

python Programming Glossary: mya

Parallel mapping functions in IPython w/ multiple parameters

http://stackoverflow.com/questions/11371009/parallel-mapping-functions-in-ipython-w-multiple-parameters

on one value of a and a bunch of values of b. func myA b for b in myLongList Obviously the real function is more complicated.. arguments. So lets say I want to get the answer to func myA myLongList . The obvious way to do this is to curry either w.. functools.partial or just as dview.map_sync lambda b func myA b myLongList However this does not work correctly on remote..

How to make simplejson serializable class

http://stackoverflow.com/questions/4821940/how-to-make-simplejson-serializable-class

self return str self.__dict__ when I do import simplejson myA A simplejson.dumps myA TypeError 'item1' None is not JSON serializable.. when I do import simplejson myA A simplejson.dumps myA TypeError 'item1' None is not JSON serializable I can't find..