代码搜索结果

找到约 10,000 项符合 Python 的代码

test_exceptions.py

# Python test set -- part 5, built-in exceptions from test_support import * from types import ClassType print '5. Built-in exceptions' # XXX This is not really enough, each *operation* should be tes

test_bsddb.py

#! /usr/bin/env python """Test script for the bsddb C module Roger E. Masse """ import os import bsddb import tempfile from test_support import verbose def test(openmethod, what): if verbose

test_exceptions.py

# Python test set -- part 5, built-in exceptions from test_support import * from types import ClassType print '5. Built-in exceptions' # XXX This is not really enough, each *operation* should be tes

test_exc.py

# Python test set -- part 5, built-in exceptions from test_support import * from types import ClassType print '5. Built-in exceptions' # XXX This is not really enough, each *operation* should be tes

test_bsd.py

#! /usr/bin/env python """Test script for the bsddb C module Roger E. Masse """ import os import bsddb import tempfile from test_support import verbose def test(openmethod, what): if verbose

mbox.py

#! /usr/bin/env python # Scan MH folder, display results in window import os import sys import regex import getopt import string import mhlib from Tkinter import * from dialog import dialog mailb

wish.py

# This is about all it requires to write a wish shell in Python! import _tkinter import os tk = _tkinter.create(os.environ['DISPLAY'], 'wish', 'Tk', 1) tk.call('update') cmd = '' while 1: if cmd:

vstat.py

#! /usr/bin/env python # Print the value of all video parameters import sys import sv, SV def main(): v = sv.OpenVideo() for name in dir(SV): const = getattr(SV, name) if type(const) is type(

oldvcopy.py

#! /usr/bin/env python # Copy a video file, interactively, frame-by-frame. import sys import getopt from gl import * from DEVICE import * import VFile import VGrabber import string import imageop d

logfilter

#!/usr/bin/python # # This file is part of the aMule project. # # Copyright (c) 2003-2008 aMule Project ( admin@amule.org / http://www.amule.org ) # # This program is free software; you can redistribu