inducer / pudb

Full-screen console debugger for Python
https://documen.tician.de/pudb/
Other
2.99k stars 229 forks source link

Fix #580, Source $PYTHONSTARTUP before entering REPL #586

Closed Freed-Wu closed 1 year ago

Freed-Wu commented 1 year ago

If users directly enter REPL from command line, $PYTHONSTARTUP will be sourced. However, XXpython_embed() will not source $PYTHONSTARTUP. Similarly, maybe we can provide a command line option -E to disable this behavior, just like python itself.

Freed-Wu commented 1 year ago

Looks like https://github.com/inducer/pudb/discussions/580#discussioncomment-4801771 is better. So I close this Pr now. Any thought can be commented to let me know :smile: