-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Use new REPL for the "code" module #119512
Copy link
Copy link
Open
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-featureA feature request or enhancementA feature request or enhancement
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-featureA feature request or enhancementA feature request or enhancement
Feature or enhancement
Proposal:
When installing Django in a Python 3.13 virtual environment and using Django's
shellcommand, the old REPL is used.It would be great if the
codemodule supported the new REPL. From @ambv's reply in #119433 (comment) it looks like this will be considered in Python 3.14.I would also like to know what projects should do in the meantime. For example, I found a way to modify Django's
shellcommand in one's own project to use the new REPL, by using this within atry-exceptblock:Is this an acceptable workaround before Python 3.14 is released? Or should this function not be relied on, seeing as it's in an undocumented module?
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
#119433 (review)
Linked PRs