Skip to content

This release's booleans don't recognize the list class #26314

Open

Description

@voidandchaos

Type: Bug

Behaviour

when using boolean the if statement doesnt recognize the list class, but when you use the type function it gives us class 'list'
XXX

Steps to reproduce:

  1. XXX
    run this code
    a=[1,2,3]
    if a is list:
    print("its a list")
    else:
    print("not a list")
    print(type(a))

Diagnostic data

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

XXX

Extension version: 2026.11.2026110601
VS Code version: Code 1.101.2 (2901c5ac6db8a986a5666c3af51ff804d05af0d4, 2025-06-24T20:27:15.391Z)
OS version: Windows_NT x64 10.0.19045
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.13.5
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): System
  • Value of the python.languageServer setting: Default
User Settings


languageServer: "Jedi"

Installed Extensions
Extension Name Extension Id Version
debugpy ms- 2026.6.0
js-debug ms- 1.100.1
js-debug-companion ms- 1.1.3
LiveServer rit 5.7.10
prettyprintcode Vik 0.2.2
python ms- 2026.10.0
sqlite-table-viewer zov 0.4.17
vscode-js-profile-table ms- 1.0.10
System Info
Item Value
CPUs Intel(R) Core(TM) i5-7300U CPU @ 2.60GHz (4 x 2712)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.84GB (4.98GB free)
Process Argv C:\Users\dark\Desktop\projects\main.py --crash-reporter-id 3a960083-aaeb-4401-8627-fbbc7a1f68d4
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
4f60g487:31327383
envsactivate1:31551504
cloudbuttont:31379625
3efgi100_wstrepl:31403338
839jf696:31457053
ec5jj548:31422691
cp_cls_t_966_ss:31526232
cp_cls_c_1081:31454833
conptydll_true:31498968
nes-set-to-on:31463705
e9c30283:31461165
chat:31457767
cp_cls_t_1082:31535311
jb_cp_cls_t_632:31543129
ha629193:31508444
jbcp_cls_pctr_t:31531130
cp_intellij_t_nes:31548657
ihg5j128:31534457
1h923230:31564177
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
mangle-name-treatment:31572634
atk_rai_validation_enable:31616613
intellij_nes_preview_t:31580086
usage_tips_endabled_0911:31587631
9b7i0944:31600022
ensemble_enabled:31617485

Activity

  1. added
    triage-needed
    on Nov 21, 2026
  2. voidandchaos commented on Nov 21, 2026

    @voidandchaos
    Author
  3. hutch3232 commented on Nov 22, 2026

    @hutch3232

    This is a bug in your code and doesn't have to do with this extension. Your code is basically saying is a equal to the class list. But you really want to know if it is an instance of list.

    a=[1,2,3]
    if isinstance(a, list):
        print("its a list")
    else:
        print("not a list")
    print(type(a))
  4. Captainindia-giga commented on Nov 25, 2026

    @Captainindia-giga

    code is very outdted and disquitted and process is not so optimistic so pipeline is brusted. we can try another level of things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions