代码搜索结果

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

ftplib.py

"""An FTP client class and some helper functions. Based on RFC 959: File Transfer Protocol (FTP), by J. Postel and J. Reynolds Example: >>> from ftplib import FTP >>> ftp = FTP('ftp.python.org') #

nntplib.py

"""An NNTP client class based on RFC 977: Network News Transfer Protocol. Example: >>> from nntplib import NNTP >>> s = NNTP('news') >>> resp, count, first, last, name = s.group('comp.lang.python')

base64.py

#! /usr/bin/env python """Conversions to/from base64 transport encoding as per RFC-1521.""" # Modified 04-Oct-95 by Jack to use binascii module import binascii __all__ = ["encode","decode","encode

koi8_u.py

""" Python Character Mapping Codec for KOI8U. This character scheme is compliant to RFC2319 Written by Marc-Andre Lemburg (mal@lemburg.com). Modified by Maxim Dzumanenko . (

encoders.py

# Copyright (C) 2001,2002 Python Software Foundation # Author: barry@zope.com (Barry Warsaw) """Module containing encoding functions for Image.Image and Text.Text. """ import base64 # Helpers tr

generator.py

# Copyright (C) 2001,2002 Python Software Foundation # Author: barry@zope.com (Barry Warsaw) """Classes to generate plain text from a message object tree. """ import re import sys import time import

test_sre.py

# SRE test harness for the Python regression suite # this is based on test_re.py, but uses a test function instead # of all those asserts import sys sys.path=['.']+sys.path from test_support import

test_crypt.py

#! /usr/bin/env python """Simple test script for cryptmodule.c Roger E. Masse """ from test_support import verify, verbose import crypt c = crypt.crypt('mypassword', 'ab') if verbose: print '

dbexts.py

# $Id: dbexts.py,v 1.1 2005/10/28 23:47:46 kuzman Exp $ """ This script provides platform independence by wrapping Python Database API 2.0 compatible drivers to allow seamless database usage across i

dumpprops.py

#!/usr/bin/env python2 # # USAGE: dumprops.py [-r REV] repos-path [file] # # dump out the properties on a given path (recursively if given a dir) # import sys import os import getopt import