代码搜索结果
找到约 10,000 项符合
Python 的代码
parser.py
# Copyright (C) 2001,2002 Python Software Foundation
# Author: barry@zope.com (Barry Warsaw)
"""A parser of RFC 2822 and MIME email messages.
"""
import re
from cStringIO import StringIO
from types
utils.py
# Copyright (C) 2001,2002 Python Software Foundation
# Author: barry@zope.com (Barry Warsaw)
"""Miscellaneous utilities.
"""
import time
import socket
import re
import random
import os
import warnin
test_userstring.py
#!/usr/bin/env python
import sys
from test_support import verbose
import string_tests
# UserString is a wrapper around the native builtin string type.
# UserString instances should behave similar to b
test_charmapcodec.py
""" Python character mapping codec test
This uses the test codec in testcodec.py and thus also tests the
encodings package lookup scheme.
Written by Marc-Andre Lemburg (mal@lemburg.com).
(c) Copyri
test_mutants.py
from test_support import verbose, TESTFN
import random
import os
# From SF bug #422121: Insecurities in dict comparison.
# Safety of code doing comparisons has been an historical Python weak spot.
test_uu.py
"""
Tests for uu module.
Nick Mathewson
"""
from test_support import verify, TestFailed, verbose, TESTFN
import sys, os
import uu
from StringIO import StringIO
teststr = "The smooth-scaled python cr
smtplib.py
#! /usr/bin/env python
'''SMTP/ESMTP client class.
This should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP
Authentication) and RFC 2487 (Secure SMTP over TLS).
Notes:
Please remember,
getversion.py
#!/usr/bin/env python
#
# getversion.py - Parse version numbers from C header files.
#
import re
__all__ = ['Parser', 'Result']
class Result:
pass
class Parser:
def __init__(self)
commit-block-joke.py
#!/usr/bin/env python
import sys, os, string
SVNLOOK='/usr/local/bin/svnlook'
MESSAGE="""
Dear {AUTHOR}:
We're sorry, but we just couldn't allow you to have the
revision {REVISION} commit.
btmaketorrentgui.py
#!/usr/bin/env python
# Written by Bram Cohen
# modified for multitracker by John Hoffman
# see LICENSE.txt for license information
import sys
import wx
import os
from os.path import join, isdir,