Did I find the right examples for you? yes no

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

src/b/a/badger-lib-HEAD/packages/pyparsing/docs/examples/TAP.py   badger-lib(Download)
class TAPTest(object):
    def __init__(self,results):
        self.num = results.testNumber
        self.passed = (results.passed=="ok")
        self.skipped = self.todo = False
class TAPSummary(object):
    def __init__(self,results):
        self.passedTests = []
        self.failedTests = []
        self.skippedTests = []

src/b/a/badger-lib-HEAD/packages/Pygments/tests/examplefiles/linecontinuation.py   badger-lib(Download)
class Spam(object):
    pass
 
class \
 Spam \

src/p/y/PyAMF-HEAD/doc/tutorials/examples/actionscript/echo/python/echo/__init__.py   PyAMF(Download)
class RemoteClass(object):
    """
    This Python class is mapped to the clientside ActionScript class.
    """
    pass
 
 
class ExternalizableClass(object):

src/p/y/pyspec-HEAD/sample/tutorial/step9/behavior_stack.py   pyspec(Download)
class Behavior_Stack_New(object):
    @context
    def new_stack(self):
        self.stack = stack.Stack()
 
class Behavior_Stack_WithValue(object):
    @context
    def stack_with_one_value(self):
        self.stack = stack.Stack()
        self.stack.push(10)
class Behavior_Stack_WithSomeValues(object):
    @context
    def stack_with_some_values(self):
      self.stack = stack.Stack()
      self.stack.push(10)
class Behavior_Stack_Empty(object):
    @context
    def empty_stack(self):
        self.empty_stack = stack.Stack()
 

src/p/y/PyAMF-0.6.1/doc/tutorials/examples/actionscript/simple/python/server.py   PyAMF(Download)
class User(object):
    """
    Models information associated with a simple user object.
    """
    # we need a default constructor (e.g. a paren-paren constructor)
class UserService(object):
    """
    Provide user related services.
    """
    def __init__(self, users):
class EchoService(object):
    """
    Provide a simple server for testing.
    """
    def echo(self, data):

src/s/h/shedskin-HEAD/examples/loop.py   shedskin(Download)
class Simple_loop(object):
    """
    Basic representation of loops, a loop has an entry point,
    one or more exit edges, a set of basic blocks, and potentially
    an outer loop - a "parent" loop.
class Loop_structure_graph(object):
    """
    Maintain loop structure for a given cfg.
 
    Two values are maintained for this loop graph, depth, and nesting level.
class Union_find_node(object): # add __slots__ *******************************************
    """
    Union/Find algorithm after Tarjan, R.E., 1983, Data Structures
    and Network Algorithms.
    """
class Basic_block_class(object):
    TOP = 0         # uninitialized
    NONHEADER = 1   # a regular BB
    REDUCIBLE = 2   # reducible loop
    SELF = 3        # single BB loop
class Havlak_loop_finder(object):
    """
    Loop Recognition
 
    based on:

src/p/o/polinax-HEAD/libs/external_libs/Genshi-0.5.1/examples/tutorial/geddit/model.py   polinax(Download)
class Link(object):
 
    def __init__(self, username, url, title):
        self.username = username
        self.url = url
class Comment(object):
 
    def __init__(self, username, content):
        self.username = username
        self.content = content

src/p/y/PyAMF-0.6.1/doc/tutorials/examples/gateways/appengine/demo/echo/__init__.py   PyAMF(Download)
class RemoteClass(object):
    """
    This Python class is mapped to the clientside ActionScript class.
    """
    pass
 
class ExternalizableClass(object):

src/b/a/badger-lib-HEAD/packages/pyparsing/docs/examples/adventureEngine.py   badger-lib(Download)
class Room(object):
    def __init__(self, desc):
        self.desc = desc
        self.inv = []
        self.gameOver = False
class Item(object):
    items = {}
    def __init__(self, desc):
        self.desc = desc
        self.isDeadly = False
class Command(object):
    "Base class for commands"
    def __init__(self, verb, verbProg):
        self.verb = verb
        self.verbProg = verbProg
class Parser(object):
    def __init__(self):
        self.bnf = self.makeBNF()
 
    def makeCommandParseAction( self, cls ):
class Player(object):
    def __init__(self, name):
        self.name = name
        self.gameOver = False
        self.inv = []

src/d/e/dez-0.4.9.0/dez/samples/echo_server.py   dez(Download)
class EchoChunked(object):
    def __init__(self, conn):
        self.conn = conn
        self.conn.set_rmode_close_chunked(self._recv)
 
    def _recv(self, data):
        print 'received:',data
        self.conn.write(data)
 
class EchoConnection(object):
class LocalEchoHTTPClient(object):
    def __init__(self, conn):
        self.conn = conn
        self.conn.write("GET / HTTP/1.0\r\nHost: www.google.com\r\n\r\n")
        self.conn.set_rmode_delimiter('\r\n', self.line_received)
class EchoHTTP(object):
    def __init__(self, conn):
        self.conn = conn
        self.conn.set_rmode_delimiter('\r\n\r\n', self.line_received)
 
    def line_received(self, data):
        self.conn.write("HTTP/1.0 200 OK\r\nContent-Length: 0\r\n\r\n", self.conn.close)
 
class LengthConnection(object):

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