Closed
Description
Testing #23484
Python v2024.7.11491011 (pre-release)
- Have settings:
{
"interactiveWindow.executeWithShiftEnter": false,
"python.REPL.sendToNativeREPL": true
}
- Have file
z_lib .py
import zlib
string = b'witch which has which witches wrist watch'
assert len(string) == 41
zlib_compressed_string = zlib.compress(string)
assert len(zlib_compressed_string) == 37
zlib_decompressed_string = zlib.decompress(zlib_compressed_string)
assert zlib_decompressed_string == b'witch which has which witches wrist watch'
assert zlib.crc32(string) == 226805979
- Select
import zlib
and pressShift + Enter
. The expression is evaluated in the REPL ✔️ - Select
string = b'witch which has which witches wrist watch'
and pressShift + Enter
. The expression is evaluated in the REPL, but it's a new view