代码搜索结果

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

mimenonmultipart.py

# Copyright (C) 2002 Python Software Foundation # Author: barry@zope.com (Barry Warsaw) """Base class for MIME type messages that are not multipart. """ from email import Errors from email import MI

test___future__.py

#! /usr/bin/env python from test_support import verbose, verify from types import TupleType, StringType, IntType import __future__ GOOD_SERIALS = ("alpha", "beta", "candidate", "final") features = _

test_userlist.py

# Check every path through every method of UserList #imported from Python 2.3.5 from UserList import UserList import unittest, test.test_support class UserListTest(unittest.TestCase): def test

test_unary.py

"""Test compiler changes for unary ops (+, -, ~) introduced in Python 2.2""" import unittest from test_support import run_unittest class UnaryOpTestCase(unittest.TestCase): def test_negative(se

regrtest.py

#! /usr/bin/env python """Regression test. This will find all modules whose name is "test_*" in the test directory, and run them. Various command line options provide additional facilities. Comman

test_cd.py

#! /usr/bin/env python """Whimpy test script for the cd module Roger E. Masse """ import cd from test_support import verbose cdattrs = ['BLOCKSIZE', 'CDROM', 'DATASIZE', 'ERROR', 'NODISC', 'PAUSED

test_ucn.py

""" Test script for the Unicode implementation. Written by Bill Tutt. Modified for Python 2.0 by Fredrik Lundh (fredrik@pythonware.com) (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" f

userlist.py

"""A more or less complete user-defined wrapper around list objects.""" #Imported from Python 2.3.5 and added _fixindex class UserList: def __init__(self, initlist=None): self.data = []

popen2.py

""" popen2.py Implement popen2 module functionality for Jython. Note that the popen* methods in this module follow the return value ordering of the Python popen2.popen* methods: fromChild, toChild

swig.m4

dnl check to see if SWIG is current enough. dnl dnl if it is, then check to see if we have the correct version of python. dnl dnl if we do, then set up the appropriate SWIG_ variables to build the