代码搜索结果

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

toolbar.py

#!/usr/bin/env python import wx import images class ToolbarFrame(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, 'Toolbars', size=(300, 20

ribcl.py.in

#!@PYTHON@ import sys import socket from httplib import * from time import sleep argv = sys.argv try: host = argv[1].split('.')[0]+'-rm' cmd = argv[2] except IndexError: pr

test1.py

#!/usr/bin/env python # # (C) 2001 by Argonne National Laboratory. # See COPYRIGHT in top-level directory. # # Note that I repeat code for each test just in case I want to # run one separately

mpdlib.py

#!/usr/bin/env python # # (C) 2001 by Argonne National Laboratory. # See COPYRIGHT in top-level directory. # import sys, os, signal, popen2, socket, select, inspect from cPickle import

absolute_sources.py

#!/usr/bin/python # Test that sources with absolute names are handled OK. from BoostBuild import Tester t = Tester() t.write("project-root.jam", """ path-constant TOP : . ; """) t.write("

alternatives.py

#!/usr/bin/python # Test main target alternatives. from BoostBuild import Tester from string import find t = Tester() # Test that basic alternatives selection works. t.write("project-roo

source_locations.py

#!/usr/bin/python # Copyright (C) Craig Rodrigues 2005. # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.or

searched_lib.py

#!/usr/bin/python # Test usage of searched-libs: one which are found via -l # switch to the linker/compiler. from BoostBuild import Tester, get_toolset import string import os t = Tester()

unused.py

#!/usr/bin/python # Test that unused sources are at least reported. from BoostBuild import Tester from string import find t = Tester() t.set_tree("unused") t.run_build_system() # The se

startup_v1.py

#!/usr/bin/python from BoostBuild import Tester import os import re def expect_substring(actual,expected): return actual.find(expected) != -1 def match_re(actual,expected): return