Ejemplo n.º 1
0
def count_words(request):
    return WordCountResponse(len(request.words.split())
                             )  # The callback function takes a single argument
Ejemplo n.º 2
0
def count_words(request):
	return WordCountResponse(len(request.words.split()))
def count_words(request):  #2
    print "There are %s words" % WordCountResponse(len(request.words.split()))
    return WordCountResponse(len(request.words.split())
                             )  #wordcountResponse takes uint32 as its argument