You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
In a debug session with Python 3.7+, insertion order of the keys in a dictionary are respected
Actual behaviour
In a debug session with Python 3.7+, the keys of a dictionary get re-ordered (what seems like alphabetically).
It's important to note that executing the same code in an external terminal with the same conda environment, or even in an interactive python session in the internal terminal, leads to the expected behavior. This issue is specific to the debug console!
Steps to reproduce:
Add a breakpoint in some python 3 source
Start a debugging session using a python 3.7+ environment
When the script pauses at the breakpoint, open the debug console
Initialize and populate a python dict, making sure the keys are not in alphabetical order
Type the name of the dict to display its value
Observe that the keys order is not anymore the insertion order, rather they are sorted alphabetically
Logs
Irrelevant I think?
The text was updated successfully, but these errors were encountered:
It seems to be the same as microsoft/vscode-python#3236
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version vscode-python#3977): jediExpected behaviour
In a debug session with Python 3.7+, insertion order of the keys in a dictionary are respected
Actual behaviour
In a debug session with Python 3.7+, the keys of a dictionary get re-ordered (what seems like alphabetically).
It's important to note that executing the same code in an external terminal with the same conda environment, or even in an interactive python session in the internal terminal, leads to the expected behavior. This issue is specific to the debug console!
Steps to reproduce:
dict
, making sure the keys are not in alphabetical orderLogs
Irrelevant I think?
The text was updated successfully, but these errors were encountered: