Skip to content

Conversation

Viicos
Copy link

@Viicos Viicos commented Nov 14, 2024

Fixes #12888.

Seems like having readline (or rlcompleter, which imports readline) imported at the root of the pdb module (as it is on 3.13) introduces the issue, but I'm not sure why. Perhaps the libedit backend tries to read something from stdin on startup? (Because running pytest -s works).

@The-Compiler
Copy link
Member

Previous history:

It would probably reintroduce the pyreadline breakage, but that seems fine to me, as that's just a broken and ancient setup at this point.

@Viicos
Copy link
Author

Viicos commented Nov 14, 2024

It would probably reintroduce the pyreadline breakage, but that seems fine to me, as that's just a broken and ancient setup at this point.

Yeah I was thinking the same. We shouldn't expect pyreadline to be installed on any user environment :).

Should we investigate on why we get this failure with the editline backend and update the docstring?

@The-Compiler
Copy link
Member

It might be worth having a minimal reproducer so this could be reported to CPython or libedit - other than that, if the workaround works, I think it's fine to use it as-is and close the issue with it. Seems harmless enough to me.

@nicoddemus
Copy link
Member

I'm also fine with the workaround as is if a test is not feasible.

Other than that we would need a changelog entry.

@nicoddemus
Copy link
Member

Closing as this has not seen activity in awhile.

Feel free to reopen if you want to work on this again.

@nicoddemus nicoddemus closed this Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants