代码搜索结果
找到约 10,000 项符合
Python 的代码
core_varnames.py
#!/usr/bin/python
# This tests the core rule for enumerating the variable names in a module
import BoostBuild
t = BoostBuild.Tester(pass_toolset=0)
t.write("file.jam", """
module foo
{
use_requirements.py
#!/usr/bin/python
from BoostBuild import Tester
t = Tester()
# Test that use requirements on main target work
t.write("project-root.jam", "import gcc ;")
t.write(
"Jamfile",
"""
core_typecheck.py
#!/usr/bin/python
# This tests the typechecking facilities.
import BoostBuild
t = BoostBuild.Tester(pass_toolset=0)
t.write("file.jam", """
module .typecheck
{
rule [path] ( x )
indirect_traits_test.cpp
//#include
#include
#include
//#define print(expr) printf("%s ==> %s\n", #expr, expr)
// not all the compilers can handle an incom
lexpython.cxx
// Scintilla source code edit control
/** @file LexPython.cxx
** Lexer for Python.
**/
// Copyright 1998-2002 by Neil Hodgson
// The License.txt file describes the conditi
parse.py
#!/usr/bin/env python
import re
import string
import sys
class Rule:
def __init__(self):
self.patterns = []
self.replacements = []
self.head = ''
self.foot = '
s57tables.py
#!/usr/bin/env python
#******************************************************************************
# $Id: s57tables.py 2780 2001-12-17 22:33:06Z warmerda $
#
# Project: S-57 OGR Translator
# P
pxa_reg_calcs.py
#!/usr/bin/python
# (C) Copyright 2004
# BEC Systems
# Cliff Brake
# This program is free software; you can redistribute it and/or
# modify it under
parse.py
#!/usr/bin/env python
import re
import string
import sys
class Rule:
def __init__(self):
self.patterns = []
self.replacements = []
self.head = ''
self.foot = '
inspect.py
#
# Very simple version of inspect, just enough is supported for
# doctest to work.
#
import org.python.core as _core
def isclass(cls):
return isinstance(cls, _core.PyClass)
def isfunction(func