代码搜索结果
找到约 10,000 项符合
Python 的代码
zappycfiles.py
#!/usr/local/bin/python
"""Recursively zap all .pyc and .pyo files"""
import os
import sys
# set doit true to actually delete files
# set doit false to just print what would be deleted
doit =
process.py
#!/usr/bin/env python
# Copyright (c) 2002-2003 ActiveState
# See LICENSE.txt for license details.
""" Contents of LICENSE.txt:
Permission is hereby granted, free of charge, to any person obtainin
masscreate2.py
import testenv; testenv.simple_setup()
import gc
import random, string
from sqlalchemy.orm import attributes
# with this test, run top. make sure the Python process doenst grow in size arbitrarily
sconscript
# -*-python-*-
import os
Import('env')
if env['HAVE_LIBZ']:
GZ_LIBS=['libz']
else:
GZ_LIBS=[]
rcssgz = env.SharedLibrary('rcssgz',
['gzfstream.cpp',
'gzstream.cpp'],
query.py
#! /usr/bin/env python
# Copyright (c) 2000 Roman Milner
# See the file COPYING for more information
from SQLRelay import PySQLRClient
import sys, string
import time
def main():
if len(sys.arg
changeid.py
#!/usr/bin/python
#
# Display the changeid for a list of printers given on the command line
#
# Sample usage:
#
# changeid.py '\\win2kdc1\magpie'
#
import sys
from samba import spoolss
if len(sy
comfychair.py
#! /usr/bin/env python
# Copyright (C) 2002, 2003 by Martin Pool
# Copyright (C) 2003 by Tim Potter
#
# This program is free software; you can redistribute it and/or
check-license.py
#!/usr/bin/env python
#
# check if a file has the proper license in it
#
# USAGE: check-license.py [-C] file1 file2 ... fileN
#
# A 'file' may in fact be a directory, in which case it is recursively
#
mlpatch.py
#!/usr/bin/python
# mlpatch.py: Run with no arguments for usage
import sys, os
import sgmllib
from htmlentitydefs import entitydefs
import fileinput
from urllib2 import urlopen
CHUNKSIZE = 8 * 1024
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
dn