QUICK REFERENCE

Supported conversions

Use this table to check whether your Python code fits PyCForge {{APPLICATION_VERSION}} before converting a larger program.

What you can convert

Python featureSupported useDetails
Scalar variablesAnnotated or inferred locals, declarations before assignment, chained assignment, flat unpacking, scalar augmented assignment.Local variables
Module variablesScalar constants calculated from literals and earlier constants; read from functions.Module variables
StringsLength, content comparisons, prefix/suffix tests, search, and membership; extra operations on constant text.String operations
Branches and loopsif, while, fixed-container loops, positional range, break, continue, loop else.Control flow
Containers and recordsFixed local lists, tuples, dictionaries and numeric/Boolean sets; simple immutable records.Containers and records
Function calls and importsDirect annotated calls, explicit required arguments, function imports from files included in the conversion.Functions and modules
Text filesBounded whole-file UTF-8 reads and writes using the exact documented with open forms.Reading and writing files

Features to plan around

General Python classes and objects, mutable global state, dynamic containers, arbitrary installed packages, exceptions, recursion, asynchronous code, and runtime string construction are outside the supported set. Split a larger application into suitable functions and keep unsupported work outside those converted functions.

Using an older installation or saved configuration

The variable and string examples in this guide require version 1.1 or later with its default conversion settings. Check Help → About, or run:

python -c "import pycforge; print(pycforge.__version__)"

If your Python API code explicitly selects older conversion settings, upgrading the package does not change that selection. Start with ConversionRequest.from_source(source) to use the current defaults. Keep your Python source and package version alongside generated C when you need to reproduce a conversion.