Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

global SyntaxError different in Python REPL vs Bpython #1011

Open
Labels
@djaychela

Description

@djaychela

Consider the following code (which rightly generates a SyntaxError):

>>>counter=0>>>defincrement():...counter+=1...globalcounter

In the Python REPL, this generates the following error:

SyntaxError: name 'counter' is assigned to before global declaration

However, in Bpython, the following error occurs:

SyntaxError: incomplete input

The Bpython error appears to be incorrect to me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp