New GitHub issue #122470 from picnixz:<br>

<hr>

<pre>
# Feature or enhancement

### Proposal:

When you compile from source and open the REPL, the first line is

```
Python <version> (<HEAD>, <date>) [<compiler>] on <platform>
```

I would be happy if I knew whether I used `--with-pydebug`, `--enable-optimizations` or `--with-lto` without needing to import or check manually the Makefile. I don't want something too long but I'd like to suggest something like

```
Python <version> (<debug|release|optimized[<FLAGS>]>) (<HEAD>, <date>) [<compiler>] on <platform>
```

with optimization flags being 'pgo', 'lto' or 'bolt' (not sure if there are more optimizations that are available). Actually, I don't even where to check if it was configured using LTO or not...

### Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

### Links to previous discussion of this feature:

I couldn't find something related (hard to use the keyword "REPL" without getting thousands of results...) but I didn't search for a long time.
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/122470">View on GitHub</a>
<p>Labels: type-feature, topic-repl</p>
<p>Assignee: </p>