Compile 'data' into a code object. The 'data' argument can be anything that compile() can handle. The'path' argument should be where the data was retrieved (when applicable).
(data, path='<string>', fullname=None)
| 140 | |
| 141 | @staticmethod |
| 142 | def source_to_code(data, path='<string>', fullname=None): |
| 143 | """Compile 'data' into a code object. |
| 144 | |
| 145 | The 'data' argument can be anything that compile() can handle. The'path' |
| 146 | argument should be where the data was retrieved (when applicable).""" |
| 147 | return compile(data, path, 'exec', dont_inherit=True, module=fullname) |
| 148 | |
| 149 | exec_module = _bootstrap_external._LoaderBasics.exec_module |
| 150 |