代码搜索结果

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

encode_bitmaps.py

""" A simple script to encode all the images the XRCed needs into a Python module """ import sys, os, glob from wx.tools import img2py def main(): output = 'images.py' # get the l

l2trace.py

#! /usr/bin/env python # $Id: machinetracker.py 3106 2005-01-20 10:47:13Z mortenv $ # # Copyright 2003, 2004 Norwegian University of Science and Technology # Copyright 2007 UNINETT AS # # This file is

nonbooleanexprexception.java

package org.drools.semantics.python; /* * $Id: NonBooleanExprException.java,v 1.2 2004/09/17 00:34:39 mproctor Exp $ * * Copyright 2002 (C) The Werken Company. All Rights Reserved. * *

tdbtimetrial.py

#! /usr/bin/python2.2 def run_trial(): # import tdbutil from samba.tdbpack import pack for i in xrange(500000): pack("ddffd", (10, 2, "mbp", "martin", 0)) #s = "\n\0\

psec.py

#!/usr/bin/env python # # Get or set the security descriptor on a printer # import sys, re, string from samba import spoolss if len(sys.argv) != 3: print "Usage: psec.py getsec|setsec printernam

gtdbtool

#!/usr/bin/env python import sys from gtkdictbrowser import GtkDictBrowser import gtk from samba import tdb import string # Open handle on tdb if len(sys.argv) != 2: print "Usage: gdbtool

stf.py

#!/usr/bin/python # # Samba Testing Framework for Unit-testing # import os, string, re import osver def get_server_list_from_string(s): server_list = [] # Format is a list of server:do

log-police.py

#!/usr/bin/python # log-police.py: Ensure that log messages end with a single newline. # See usage() function for details, or just run with no arguments. import os import sys import getopt import s

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.

basic_tests.py

#!/usr/bin/env python # # basic_tests.py: testing working-copy interactions with ra_local # # Subversion is a tool for revision control. # See http://subversion.tigris.org for more information. #