Skip to content

Conversation

skirpichev
Copy link
Contributor

@skirpichev skirpichev commented Mar 17, 2025

…ed by ';'

Was:
```pycon
>>> 1;2
2
```

Now:
```pycon
>>> 1;2
1
2
```
@ambv
Copy link
Contributor

ambv commented Mar 20, 2025

I think the original behavior was deliberate as it was also reported by users that pasting larger code pieces caused them to spew a lot of module-level output that was unwanted and confusing.

@skirpichev
Copy link
Contributor Author

@ambv, I realize there might be reasons for this behavior, as one test was broken.

Yet, as explained in the issue, old repl behave differently. If we are going to replace this - the doctest module should be fixed instead. And we should expect some breakages from this. I'm not sure how this common, the mpmath uses such doctests a lot, e.g.:
https://github.com/mpmath/mpmath/blob/8c6f6603ad0f99074bd0743a9a5e1454da57bc88/mpmath/function_docs.py#L3546-L3548

@skirpichev skirpichev closed this Sep 9, 2025
@skirpichev skirpichev deleted the multi-sts/131217 branch September 9, 2025 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants