ID EN
Built-in Functions

compile

Python 3.11 🇮🇩 Bahasa Indonesia

Kompilasi sumber menjadi kode atau objek AST. Objek kode dapat dieksekusi oleh exec() atau eval(). sumber dapat berupa string normal, string byte, atau objek AST. Lihat dokumentasi modul AST untuk informasi tentang cara bekerja dengan objek AST.

Syntax

PYTHON
compile(source, filename, mode, flags=0, dont_inherit=False, optimize=-1)

See Also

exec() eval() ast compiler options future features compile() compiler_flag _Feature