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/h/shedskin-HEAD/examples/amaze.py   shedskin(Download)
class MazeReader(object):
 
    def __init__(self):
        self.maze_rows = []
        pass
class MazeFactory(object):
    def makeMaze(self, source=STDIN):
        reader = MazeReader()
        return Maze(reader.readMaze(source))
 
class MazeError(Exception):
    pass
 
class Maze(object):
class MazeSolver(object):
    def __init__(self, maze):
        self.maze = maze
        self._start = (0,0)
        self._end = (0,0)
class MazeGame(object):
    def __init__(self):
        self._start = (0,0)
        self._end = (0,0)
 

src/p/y/PyAMF-0.6.1/doc/tutorials/examples/jython/swing/gui.py   PyAMF(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/c/s/csb-1.1.1/csb/statistics/samplers/__init__.py   csb(Download)
class AbstractSampler(object):
    """
    Abstract interface for sampling algorithms.
    """
 
class AbstractState(object):
    """
    Represents a point in phase-space.
    """
 

src/g/a/gaesdk-python-HEAD/lib/webob_1_1_1/docs/comment-example-code/example.py   gaesdk-python(Download)
class Commenter(object):
 
    def __init__(self, app, storage_dir):
        self.app = app
        self.storage_dir = storage_dir

src/g/a/gaesdk-python-HEAD/lib/webob_0_9/docs/comment-example-code/example.py   gaesdk-python(Download)
class Commenter(object):
 
    def __init__(self, app, storage_dir):
        self.app = app
        self.storage_dir = storage_dir

src/s/h/shedskin-HEAD/examples/c64/loaders/entries.py   shedskin(Download)
class Entry(object):
    def __init__(self, B_used, file_type, start_addr, end_addr, reserved_a, tape_pos, reserved_b, file_name):
        self.file_type = file_type
        self.start_addr = start_addr
        self.end_addr = end_addr # unreliable.
class Loader(object):
    def __init__(self):
        pass
#    def parse(self, stream, file_name):
#        pass

src/g/d/gdata-2.0.17/samples/apps/marketplace_sample/gdata/gauth.py   gdata(Download)
class ClientLoginToken(object):
 
  def __init__(self, token_string):
    self.token_string = token_string
 
class AuthSubToken(object):
 
  def __init__(self, token_string, scopes=None):
    self.token_string = token_string
    self.scopes = scopes or []
class OAuthHmacToken(object):
  SIGNATURE_METHOD = HMAC_SHA1
 
  def __init__(self, consumer_key, consumer_secret, token, token_secret,
               auth_state, next=None, verifier=None):
class OAuth2Token(object):
  """Token object for OAuth 2.0 as described on
  <http://code.google.com/apis/accounts/docs/OAuth2.html>.
 
  Token can be applied to a gdata.client.GDClient object using the authorize()

src/g/d/gdata-2.0.17/samples/apps/marketplace_sample/atom/http_core.py   gdata(Download)
class HttpRequest(object):
  """Contains all of the parameters for an HTTP 1.1 request.
 
  The HTTP headers are represented by a dictionary, and it is the
  responsibility of the user to ensure that duplicate field names are combined
class Uri(object):
  """A URI as used in HTTP 1.1"""
  scheme = None
  host = None
  port = None
class HttpResponse(object):
  status = None
  reason = None
  _body = None
 
class HttpClient(object):
  """Performs HTTP requests using httplib."""
  debug = None
 
  def request(self, http_request):

src/s/h/shedskin-HEAD/examples/c64/cia.py   shedskin(Download)
class Timer(object):
    def __init__(self):
        self.B_active = False
        self.B_indicate_underflow = False
        self.B_underflow_generate_short_signal = 0
class SerialLine(object): # TODO defaults.
    def __init__(self):
        self.B_clock_IN = False
        self.B_data_IN = False
    def get_control_mask(self):
class RS232Line(object):
    def get_control_mask(self):
        return 0 # FIXME
class CIA2(memory.Memory):
    def __init__(self):

src/n/e/Nevow-0.10.0/examples/most_basic/most_basic.py   Nevow(Download)
class Root(object):
    implements(inevow.IResource)
 
    def locateChild(self, ctx, segments):
        # This locateChild is 'stupid' since it can only work if the tree of
class Foo(object):
    implements(inevow.IResource)
 
    def locateChild(self, ctx, segments):
        # segments is the remaining segments returned by the root locateChild
class Baz(object):
    implements(inevow.IResource)
    def locateChild(self, ctx, segments):
        return None, ()
    def renderHTTP(self, ctx):

Previous  10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18  Next