Did I find the right examples for you? yes no

All Samples(159954)  |  Call(6296)  |  Derive(153609)  |  Import(49)
The most base type

src/s/q/sqlalchemy-HEAD/examples/elementtree/adjacency_list.py   sqlalchemy(Download)
class Document(object):
    def __init__(self, name, element):
        self.filename = name
        self.element = element
 
class _Node(object):
    pass
 
# Attribute class.  also internal, this will represent the key/value attributes stored for 
# a particular Node.
class _Attribute(object):
class ElementTreeMarshal(object):
    def __get__(self, document, owner):
        if document is None:
            return self
 

src/m/d/mdn-lib-HEAD/packages/jsonpickle/tests/samples.py   mdn-lib(Download)
class Thing(object):
    def __init__(self, name):
        self.name = name
        self.child = None
 
    def __repr__(self):
        return 'samples.Thing("%s")' % self.name
 
 
class ThingWithSlots(object):
class ThingWithProps(object):
 
    def __init__(self, name='', dogs='reliable', monkies='tricksy'):
        self.name = name
        self._critters = (('dogs', dogs), ('monkies', monkies))

src/s/q/SQLAlchemy-0.7.10/examples/elementtree/optimized_al.py   SQLAlchemy(Download)
class Document(object):
    def __init__(self, name, element):
        self.filename = name
        self.element = element
 
class _Node(object):
    pass
 
# Attribute class.  also internal, this will represent the key/value attributes stored for
# a particular Node.
class _Attribute(object):
class ElementTreeMarshal(object):
    def __get__(self, document, owner):
        if document is None:
            return self
 

src/s/q/SQLAlchemy-0.7.10/examples/elementtree/adjacency_list.py   SQLAlchemy(Download)
class Document(object):
    def __init__(self, name, element):
        self.filename = name
        self.element = element
 
class _Node(object):
    pass
 
# Attribute class.  also internal, this will represent the key/value attributes stored for
# a particular Node.
class _Attribute(object):
class ElementTreeMarshal(object):
    def __get__(self, document, owner):
        if document is None:
            return self
 

src/g/a/gaesdk-python-HEAD/lib/PyAMF/doc/tutorials/examples/jython/swing/gui.py   gaesdk-python(Download)
class AppGUI(object):
    """
    Swing graphical user interface.
    """
    def __init__(self, title, host, port, service):
class ThreadedAmfClient(object):
    """
    Threaded AMF client that doesn't block the Swing GUI.
    """
    def __init__(self, url, serviceName):
class ThreadedAmfServer(object):
    """
    Threaded WSGI server that doesn't block the Swing GUI.
    """
    def __init__(self, host, port, serviceName):      

src/d/e/dez-0.4.9.0/dez/samples/new_conn.py   dez(Download)
class TestCloseChunked(object):
    def __init__(self, conn):
        self.conn = conn
        self.conn.set_rmode_close_chunked(self.data_received)
 
    def data_received(self, data):
        print data.replace("\r\n", "\\r\\n\n")
 
 
class TestClose(object):
class TestSizeChunked(object):
    def __init__(self, conn):
        self.conn = conn
        self.conn.set_rmode_size_chunked(15, self.data_received)
 
    def data_received(self, data):
        print data.replace("\r\n", "\\r\\n\n")
 
class TestSize(object):
class TestDelimiter(object):
    def __init__(self, conn):
        self.conn = conn
        self.conn.set_rmode_delimiter('\r\n', self.data_received)
 

src/s/q/sqlalchemy-HEAD/examples/association/proxied_association.py   sqlalchemy(Download)
class OrderItem(object):
    def __init__(self, item, price=None):
        self.item = item
        self.price = price is None and item.price or price
 
class Order(object):
class Item(object):
    def __init__(self, description, price):
        self.description = description
        self.price = price
 

src/s/q/sqlalchemy-HEAD/examples/association/basic_association.py   sqlalchemy(Download)
class Order(object):
    def __init__(self, customer_name):
        self.customer_name = customer_name
 
class Item(object):
class OrderItem(object):
    def __init__(self, item, price=None):
        self.item = item
        self.price = price or item.price
 

src/n/o/noc-0.7(3)/contrib/src/Pygments/tests/examplefiles/linecontinuation.py   noc(Download)
class Spam(object):
    pass
 
class \
 Spam \

src/n/o/noc-0.7(3)/contrib/src/Jinja2/examples/rwbench/rwbench.py   noc(Download)
class Article(object):
 
    def __init__(self, id):
        self.id = id
        self.href = '/article/%d' % self.id
class User(object):
 
    def __init__(self, username):
        self.href = '/user/%s' % username
        self.username = username

Previous  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next