代码搜索结果

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

traceback.py

"""Extract, format and print information about Python stack traces.""" import linecache import sys import types __all__ = ['extract_stack', 'extract_tb', 'format_exception', 'format_excep

difflib.py

#! /usr/bin/env python from __future__ import generators """ Module difflib -- helpers for computing deltas between objects. Function get_close_matches(word, possibilities, n=3, cutoff=0.6): Us

test_al.py

#! /usr/bin/env python """Whimpy test script for the al module Roger E. Masse """ import al from test_support import verbose alattrs = ['__doc__', '__name__', 'getdefault', 'getminmax', 'getname',

test_imageop.py

#! /usr/bin/env python """Test script for the imageop module. This has the side effect of partially testing the imgfile module as well. Roger E. Masse """ from test_support import verbose, un

test_dumbdbm.py

#! /usr/bin/env python """Test script for the dumbdbm module Original by Roger E. Masse """ import os import test_support import unittest import dumbdbm import tempfile _fname = tempfile.mktemp()

test_email_codecs.py

# Copyright (C) 2002 Python Software Foundation # email package unit tests for (optional) Asian codecs import unittest # The specific tests now live in Lib/email/test from email.test.test_email_codec

test_javashell.py

import unittest import test_support from org.python.core import PyFile import re import os import javashell from javashell import LazyDict # testCmds is a list of (command, expectedOutput) # each c

regex_tests.py

# Regex test suite and benchmark suite v1.5a2 # Due to the use of r"aw" strings, this file will # only work with Python 1.5 or higher. # The 3 possible outcomes for each pattern [SUCCEED, FAIL, SYNTA

test_gl.py

#! /usr/bin/env python """Very simple test script for the SGI gl library extension module taken mostly from the documentation. Roger E. Masse """ from test_support import verbose, TestSkipped

test_sets.py

#!/usr/bin/env python from __future__ import generators import unittest, operator, copy, pickle from sets import Set, ImmutableSet from test import test_support empty_set = Set() #================