Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(1)  |  Derive(0)  |  Import(2)

        def group_by_class():
    result = {}
    for o in get_new_objects():
        try:
            cls = o.__class__
        except AttributeError:
            cls = o

        key = cls.__module__ + '.' + cls.__name__
        try:
            result[key].append(o)
        except KeyError:
            result[key] = [o]

    return result
        


src/d/r/drainhunter-0.2/drainhunter/django/views.py   drainhunter(Download)
from django.core.urlresolvers import reverse
 
from drainhunter import snapshot, group_by_class
import drainhunter.web
 

src/d/r/drainhunter-0.2/drainhunter/web.py   drainhunter(Download)
from drainhunter import group_by_class
 
def index(snapshot_url):
    objects = group_by_class()
    if not objects: