Skip to content

execfile mentioned in lesson 1.2.5 has been long deprecated in python3 #783

@krishnakumarg1984

Description

@krishnakumarg1984

In lesson 1.2.5, one of the notes says:

Other interpreters also offer the possibility to execute scripts (e.g., execfile in the plain Python interpreter, etc.).

However, execfile has long been deprecated in python 3. I think the relavent syntax in python3 is exec(open("./filename").read())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions