Skip to content

IDLE does not raise SyntaxWarning in 3.11 for BPO 43833 #99567

Closed
@SectorCorruptor

Description

@SectorCorruptor

This bug report has been added as Serihy asked me to:

Please open a new issue for IDLE. Perhaps there is already an open issue for SyntaxWarning in IDLE.

The main problem is that as Pablo said:

Unless I am missing something it should be 3.11 non-silent warning and 3.12 syntax error

However, on a Windows 11 device, the IDLE version of Python 3.11 still does not raise a non-silent warning.
When I tried this out:

>>> [0x1for i in range(10)]
[31]

it does not raise the warning. This was run in interactive mode.
Was the bugfix implemented only for shell mode? Or is there something in the interpreter that does not raise the SyntaxWarning?

Environment

  • CPython versions tested on: 3.11.0
  • Operating system and architecture: Dell Inspiron 15, Windows 11, IDLE interactive

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-IDLEtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions