Skip to content

attribute named “print” wongly detected as syntax error in Python 3 #82

Open

Description

@fdik

This line is wrongly detected as a syntax error:

elif options.print:

But print is an existing attribute of options, and the code works.

Activity

  1. fdik commented on Mar 29, 2021

    @fdik
    Author

    Same problem when using the print function as object:

    output = print
    
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions