This is a lightweight, fast library for using Google's protobufs in Python.
How fast?
Palm, 10,000 decodes: 0.224280118942
Palm, 10,000 encodes: 0.0757548809052
(palm)(git:fix-repeated-codegen) ~/src/palm$ nosetests test/test.py | |
.............EE...................................... | |
====================================================================== | |
ERROR: test.TestProto.test_enum | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/schmichael/src/palm/lib/python2.7/site-packages/nose/case.py", line 197, in runTest | |
self.test(*self.arg) | |
File "/home/schmichael/src/palm/test/test.py", line 225, in test_enum | |
o.cls = test_palm.Test.BUSINESS |
foo = map(lambda s: | |
# lol my lambda's body is indented | |
s = s.upper() | |
print s | |
return s | |
, ['does', 'the', 'lambda', 'implicitly', 'end', 'after', 'toplevel', 'returns?']) |
class D(dict): | |
def __init__(self, *args, **kwargs): | |
dict.__init__(self, *args, **kwargs) | |
def keys(self): | |
print 'lolkeys' | |
return dict.keys(self) | |
d = D() | |
d['a'] = 'b' | |
def foo(**kwargs): | |
print kwargs |
package main | |
import ( | |
"log" | |
"net" | |
) | |
func main() { | |
ln, err := net.Listen("tcp", ":8080") |
set rtp+=$GOROOT/misc/vim |
`Documentation <http://mmstats.readthedocs.org/>`_ | | |
`Package <http://pypi.python.org/pypi/mmstats>`_ | | |
`Code <http://github.com/schmichael/mmstats/>`_ | |
.. image:: https://secure.travis-ci.org/schmichael/mmstats.png?branch=master | |
:target: http://travis-ci.org/schmichael/mmstats/ | |
===== | |
About |
digraph { | |
A [label=A]; | |
B [label=B]; | |
A -> B [label="hi"]; | |
B -> A [label="bye"]; | |
} |
06:43 < schmichael> aw, no recursive closures? http://play.golang.org/p/0l9j3RNyle | |
06:45 < smw> schmichael, http://play.golang.org/p/p2bDJWh1HZ | |
06:45 < burntsushi> schmichael: http://play.golang.org/p/XEntShM_WW |