MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / PyConfig

Class PyConfig

python3-sys/src/initconfig.rs:98–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96#[repr(C)]
97#[derive(Clone)]
98pub struct PyConfig {
99 pub _config_init: c_int,
100 pub isolated: c_int,
101 pub use_environment: c_int,
102 pub dev_mode: c_int,
103 pub install_signal_handlers: c_int,
104 pub use_hash_seed: c_int,
105 pub hash_seed: c_ulong,
106 pub faulthandler: c_int,
107 #[cfg(all(Py_3_9, not(Py_3_10)))]
108 pub _use_peg_parser: c_int,
109 pub tracemalloc: c_int,
110 #[cfg(Py_3_12)]
111 pub perf_profiling: c_int,
112 pub import_time: c_int,
113 #[cfg(Py_3_11)]
114 pub code_debug_ranges: c_int,
115 pub show_ref_count: c_int,
116 #[cfg(not(Py_3_9))]
117 pub show_alloc_count: c_int,
118 pub dump_refs: c_int,
119 #[cfg(Py_3_11)]
120 pub dump_refs_file: *mut wchar_t,
121 pub malloc_stats: c_int,
122 pub filesystem_encoding: *mut wchar_t,
123 pub filesystem_errors: *mut wchar_t,
124 pub pycache_prefix: *mut wchar_t,
125 pub parse_argv: c_int,
126 #[cfg(Py_3_10)]
127 pub orig_argv: PyWideStringList,
128 pub argv: PyWideStringList,
129 #[cfg(not(Py_3_10))]
130 pub program_name: *mut wchar_t,
131 pub xoptions: PyWideStringList,
132 pub warnoptions: PyWideStringList,
133 pub site_import: c_int,
134 pub bytes_warning: c_int,
135 #[cfg(Py_3_10)]
136 pub warn_default_encoding: c_int,
137 pub inspect: c_int,
138 pub interactive: c_int,
139 pub optimization_level: c_int,
140 pub parser_debug: c_int,
141 pub write_bytecode: c_int,
142 pub verbose: c_int,
143 pub quiet: c_int,
144 pub user_site_directory: c_int,
145 pub configure_c_stdio: c_int,
146 pub buffered_stdio: c_int,
147 pub stdio_encoding: *mut wchar_t,
148 pub stdio_errors: *mut wchar_t,
149 #[cfg(windows)]
150 pub legacy_windows_stdio: c_int,
151 pub check_hash_pycs_mode: *mut wchar_t,
152 #[cfg(Py_3_11)]
153 pub use_frozen_modules: c_int,
154 #[cfg(Py_3_11)]
155 pub safe_path: c_int,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected