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

Syntax error on '{z} if z is not None else pass' #129515

Closed
Labels
@none-of-my-names-is-available

Description

Bug report

Bug description:

Myquestionisinthetitle.Inthetutorial,Iread:Use'pass'inplaces,wherecodeisrequiredsyntactically,butnoneisneeded.Inordertosaveindentations,Iusedtheconditionalassignementinsomesegmentofcode.ButIonlywanttoincludezinthesetx,ifitisnotNone,becauselater,theNonedisturbs.Somythesisis:Thecodeinthetitleissyntacticallycorrect,butstill,Igetasyntaxerror.Thankyouforyourkindconsideration

CPython versions tested on:

3.10

Operating systems tested on:

Windows

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp