代码搜索结果

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

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

__init__.py

""" SNMP framework for Python. The pysnmp.proto.compat sub-package implements deprecated PySNMP 2.x compatibility interface. NEVER USE IT FOR NEW PROJECTS! Copyright 1999-2002 by Ilya Et

jtag.py

#!/usr/bin/env python #Parallel JTAG programmer for the MSP430 embedded proccessor. # #(C) 2002 Chris Liechti #this is distributed under a free software license, see license.txt # #

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

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

newtest.py

""" >>> from m1 import * >>> from m2 import * Prove that we get an appropriate error from trying to return a type for which we have no registered to_python converter >>> def check_unr

defaults.py

""" >>> False = 0 # Python 2.2 needs these >>> True = 1 >>> from defaults_ext import * >>> bar(1) 'int(1); char(D); string(default); double(0.0); ' >>> bar(2, 'X') 'int(2); char(X); string(