cython の API リファレンス
cython (cython/cython) の公開 API 140 件 —— クラス 98、関数 25、メソッド 17。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: cython/cython
| 種別 | 件数 |
|---|---|
| クラス | 98 |
| 関数 | 25 |
| メソッド | 17 |
API 一覧
class
Cython.CodeWriter.CodeWriterA complete Cython code writer.
class
Cython.CodeWriter.DeclarationWriterA Cython code writer that is limited to declarations nodes.
class
Cython.CodeWriter.PxdWriterA Cython code writer for everything supported in pxd files.
class
Cython.CodeWriter.StatementWriterA Cython code writer for most language statement features.
class
Cython.Compiler.Code.CCodeWriterUtility class to output C code.
method
Cython.Compiler.Code.CCodeWriter.put_acquire_gil(variable=None, unknown_gil_state=True)Acquire the GIL.
method
Cython.Compiler.Code.CCodeWriter.put_ensure_gil(declare_gilstate=True, variable=None)Acquire the GIL.
method
Cython.Compiler.Code.GlobalState.use_utility_code(utility_code, used_by=None)Adds code to the C file.
class
Cython.Compiler.Code.NumConstGlobal info about a Python number constant held by GlobalState.
class
Cython.Compiler.Code.PyObjectConstGlobal info about a generic constant held by GlobalState.
class
Cython.Compiler.Code.PyStringConstGlobal info about a Python string constant held by GlobalState.
class
Cython.Compiler.Code.PyxCodeWriterCan be used for writing out some Cython code.
class
Cython.Compiler.Code.SharedFunctionDeclContains parsed declaration of shared utility function
class
Cython.Compiler.Code.StringConstGlobal info about a C string constant held by GlobalState.
class
Cython.Compiler.Code.UtilityCodeStores utility code to add during code generation.
class
Cython.Compiler.Code.UtilityCodeBaseSupport for loading utility code from a file.
class
Cython.Compiler.FlowControl.ControlBlockControl flow graph node.
method
Cython.Compiler.FlowControl.ControlBlock.detach()Detach block from parents and children.
class
Cython.Compiler.FlowControl.ControlFlowControl-flow graph.
method
Cython.Compiler.FlowControl.ControlFlow.newblock(parent=None) -> ControlBlockCreate floating block linked to `parent` if given.
class
Cython.Compiler.FlowControl.ExceptionDescrException handling helper.
class
Cython.Compiler.FlowControl.ExitBlockNon-empty exit point block.
class
Cython.Compiler.FlowControl.GVGraphviz DOT renderer.
class
Cython.Compiler.FlowControl.GVContextGraphviz subgraph object.
method
Cython.Compiler.FlowControl.GVContext.render(fp, name, annotate_defs=False)Render graphviz dot graph
class
Cython.Compiler.FlowControl.MessageCollectionCollect error/warnings messages first then sort
class
Cython.Compiler.FlowControl.StaticAssignmentInitialised at declaration time, e.g.
class
Cython.Compiler.FlowControl.UninitializedDefinitely not initialised yet.
class
Cython.Compiler.FlowControl.UnknownComing from outer closure, might be initialised or not.
class
Cython.Compiler.FusedNode.FusedCFuncDefNodeThis node replaces a function with fused arguments.
method
Cython.Compiler.FusedNode.FusedCFuncDefNode.analyse_expressions(env)Analyse the expressions.
class
Cython.Compiler.Main.CompilationResultSetResults from compiling multiple Pyrex source files.
class
Cython.Compiler.MatchCaseNodes.MatchCaseBaseNodeCommon base for a MatchCaseNode and a substituted node
class
Cython.Compiler.Optimize.DropRefcountingTransformDrop ref-counting in safe places.
class
Cython.Compiler.ParseTreeTransforms.CnameDirectivesTransformOnly part of the CythonUtilityCode pipeline.
class
Cython.Compiler.ParseTreeTransforms.DebugTransformWrite debug information for this Cython module.
class
Cython.Compiler.ParseTreeTransforms.ParallelRangeTransformTransform cython.parallel stuff.
method
Cython.Compiler.ParseTreeTransforms.ParallelRangeTransform.visit(node)Visit a node that may be None
class
Cython.Compiler.ParseTreeTransforms.ReplaceFusedTypeChecksThis is not a transform in the pipeline.
func
Cython.Compiler.Parsing.p_exception_value_clause(s:PyrexScanner, is_extern:cython.bint) -> tupleParse exception value clause.
func
Cython.Compiler.Parsing.p_fused_definition(s:PyrexScanner, pos, ctx)c(type)def fused my_fused_type: ...
func
Cython.Compiler.Parsing.p_positional_and_keyword_args(s:PyrexScanner, end_sy_set, templates=None) -> tuple[list, list]Parses positional and keyword arguments.
class
Cython.Compiler.PyrexTypes.CIntLikeMixin for shared behaviour of C integers and enums.
class
Cython.Compiler.PyrexTypes.CQualifierTypeA C qualifier type - currently const, restrict and volatile
class
Cython.Compiler.PyrexTypes.EnumMixinCommon implementation details for C and C++ enums.
class
Cython.Compiler.PyrexTypes.FusedTypeRepresents a Fused Type.
class
Cython.Compiler.Scanning.FileSourceDescriptorRepresents a code source.
class
Cython.Compiler.Scanning.SourceDescriptorA SourceDescriptor should be considered immutable.
class
Cython.Compiler.StringEncoding.BytesLiteralBuilderAssemble a byte string or char value.
class
Cython.Compiler.StringEncoding.UnicodeLiteralBuilderAssemble a unicode string.
func
Cython.Compiler.TreePath.handle_descendants(next, token)//...
func
Cython.Compiler.TreePath.handle_dot(next, token)/./
func
Cython.Compiler.TreePath.handle_func_not(next, token)not(...)
func
Cython.Compiler.TreePath.handle_name(next, token)/NodeName/ or func(...)
func
Cython.Compiler.TreePath.handle_star(next, token)/*/
class
Cython.Compiler.TypeInference.PyObjectTypeInfererIf it's not declared, it's a PyObject.
class
Cython.Compiler.TypeInference.SimpleAssignmentTypeInfererVery basic type inference.
class
Cython.Compiler.UtilNodes.TempsBlockNodeCreates a block which allocates temporary variables.
class
Cython.Compiler.UtilityCode.CythonUtilityCodeUtility code written in the Cython language itself.
class
Cython.Compiler.Visitor.CythonTransformCertain common conventions and utilities for Cython transforms.
class
Cython.Compiler.Visitor.EnvTransformThis transformation keeps a stack of the environments.
class
Cython.Compiler.Visitor.NodeFinderFind out if a node appears in a subtree.
class
Cython.Compiler.Visitor.NodeRefCleanupMixinClean up references to nodes that were replaced.
class
Cython.Compiler.Visitor.PrintTreePrints a representation of the tree to standard output.
func
Cython.Compiler.Visitor.replace_node(ptr, value)Replaces a node.
class
Cython.Coverage.CythonModuleTracerFind the Python/Cython source file for a Cython module.
method
Cython.Coverage.CythonModuleTracer.dynamic_source_filename(filename, frame)Determine source file path.
func
Cython.Debugger.Cygdb.main()Start the Cython debugger.
class
Cython.Debugger.libcython.ColorizeSourceCodeTell cygdb whether to colorize source code.
class
Cython.Debugger.libcython.CyBacktracePrint the Cython stack
class
Cython.Debugger.libcython.CyCNameGet the C name of a Cython variable in the current context.
class
Cython.Debugger.libcython.CyCValueGet the value of a Cython variable.
class
Cython.Debugger.libcython.CyContContinue a Cython program.
class
Cython.Debugger.libcython.CyCyInvoke a Cython command.
class
Cython.Debugger.libcython.CyDownGo down a Cython, Python or relevant C frame.
class
Cython.Debugger.libcython.CyExecExecute Python code in the nearest Python or Cython frame.
class
Cython.Debugger.libcython.CyFinishExecute until the function returns.
class
Cython.Debugger.libcython.CyGDBErrorBase class for Cython-command related errors
class
Cython.Debugger.libcython.CyGlobalsList the globals from the current Cython module.
class
Cython.Debugger.libcython.CyLineGet the current Cython line.
class
Cython.Debugger.libcython.CyListList Cython source code.
class
Cython.Debugger.libcython.CyLocalsList the locals from the current Cython frame.
class
Cython.Debugger.libcython.CyNextStep-over Cython, Python or C code.
class
Cython.Debugger.libcython.CyRunRun a Cython program.
class
Cython.Debugger.libcython.CySelectSelect a frame.
class
Cython.Debugger.libcython.CyStepStep through Cython, Python or C code.
class
Cython.Debugger.libcython.CyUpGo up a Cython, Python or relevant C frame.
class
Cython.Debugger.libcython.CythonCommandBase class for Cython commands
class
Cython.Debugger.libcython.CythonParameterBase class for cython parameters
class
Cython.Debugger.libpython.ExecutionControlCommandBaseSuperclass for language specific execution control.
method
Cython.Debugger.libpython.ExecutionControlCommandBase.finish(*args)Implements the finish command.
class
Cython.Debugger.libpython.FrameWrapper for gdb.Frame, adding various methods
method
Cython.Debugger.libpython.Frame.is_waiting_for_gil()Is this frame waiting on the GIL?
method
Cython.Debugger.libpython.LanguageInfo.exc_info(frame)See this class' docstring.
class
Cython.Debugger.libpython.PyBoolObjectPtrClass wrapping a gdb.Value that's a PyBoolObject* i.e.
class
Cython.Debugger.libpython.PyBreakSet a Python breakpoint.
class
Cython.Debugger.libpython.PyClassObjectPtrClass wrapping a gdb.Value that's a PyClassObject* i.e.
class
Cython.Debugger.libpython.PyCodeObjectPtrClass wrapping a gdb.Value that's a PyCodeObject* i.e.
class
Cython.Debugger.libpython.PyDictObjectPtrClass wrapping a gdb.Value that's a PyDictObject* i.e.
class
Cython.Debugger.libpython.PyFinishExecute until function returns to a caller.
class
Cython.Debugger.libpython.PyGlobalsList all the globals in the currently select Python frame
class
Cython.Debugger.libpython.PyLocalsLook up the given python variable name, and print it
class
Cython.Debugger.libpython.PyNextStep-over Python code.
class
Cython.Debugger.libpython.PyObjectPtrPrinterPrints a (PyObject*)
class
Cython.Debugger.libpython.PyPrintLook up the given python variable name, and print it
class
Cython.Debugger.libpython.PyRunRun the program.
class
Cython.Debugger.libpython.PyStepStep through Python code.
func
Cython.Debugger.libpython.dont_suppress_errors(function)*sigh*, readline
func
Cython.Debugger.libpython.get_selected_inferior()Return the selected inferior in gdb.
func
Cython.Debugger.libpython.is_evalframeex(frame)Is this a PyEval_EvalFrameEx frame?
func
Cython.Debugger.libpython.stackdepth(frame)Tells the stackdepth of a gdb frame.
method
Cython.Distutils.old_build_ext.Optimization.restore_state()restore the original state
func
Cython.LZSS.find_longest_match(pos:cython.Py_ssize_t) -> tuple[cython.Py_ssize_t, cython.Py_ssize_t]Find longest match in sliding window.
func
Cython.LZSS.lzss_compress(data:bytes) -> bytesLZSS-like compressor.
class
Cython.Plex.Actions.CallInternal Plex action which causes a function to be called.
func
Cython.Plex.DFA.epsilon_closure(state:Node) -> setReturn the set of states reachable from the given state by epsilon moves.
class
Cython.Plex.Machines.MachineA collection of Nodes representing an NFA or DFA.
method
Cython.Plex.Machines.Machine.new_state()Add a new state to the machine and return it.
class
Cython.Plex.Machines.NodeA state of an NFA or DFA.
class
Cython.Plex.Regexps.RERE is the base class for regular expression constructors.
class
Cython.Plex.Regexps.Rep1Rep1(re) is an RE which matches one or more repetitions of |re|.
class
Cython.Plex.Transitions.TransitionMapA TransitionMap maps an input event to a set of states.
method
Cython.Plex.Transitions.TransitionMap.add(event, new_state)Add transition to |new_state| on |event|.
method
Cython.Plex.Transitions.TransitionMap.check()Check data structure integrity.
method
Cython.Plex.Transitions.TransitionMap.get_special(event) -> setGet state set for special event, adding a new entry if necessary.
class
Cython.Shadow.CythonDotParallelThe cython.parallel module.
func
Cython.Shadow.index_type(base_type:_T, item:tuple | slice | int) -> _ArrayType[_T]Support array type creation by slicing, e.g.
class
Cython.Shadow.pymutexA low-cost mutex lock type.
class
Cython.Shadow.pythread_type_lockA mutex lock type using PyThread_type_lock.
class
Cython.StringIOTree.StringIOTreeSee module docs.
class
Cython.Tempita._tempita.TemplateErrorException raised while parsing a template
func
Cython.Tempita._tempita.find_position(string:str, index, last_index, last_pos) -> tupleGiven a string and index, return (line, column)
class
Cython.TestUtils.TransformTestUtility base class for transform unit tests.
func
Cython.load_ipython_extension(ip:Any) -> NoneLoad the extension in IPython.
class
Doc.s5.ep2008.worker.HardWorkerAlmost Sisyphus
func
Tools.dump_github_issues.dump_issues(repo)Main entry point.
func
pyximport.pyximport.uninstall(py_importer, pyx_importer)Uninstall an import hook.
func
runtests.filter_stderr(stderr_bytes)Filter annoying warnings from output.
func
runtests.get_cc_version(language)finds gcc version using Popen
func
runtests.get_openmp_compiler_flags(language)As of gcc 4.2, it supports OpenMP 2.5.
この情報について
掲載しているシグネチャは cython/cython の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。