Skip to content

Working with python3 #13

@jiravatt

Description

@jiravatt

I want to use this judge in my programming class which use python3 as a main language. So I tried to modify the compile and run script to use /usr/bin/python3 but it failed. a.out run smoothly (via terminal) but it didn't produce any output to output.txt. Here are some modification I'd tried out:

  • I've changed /usr/bin/python to /usr/bin/python3 in both compile and run scripts
  • As in python3, .pyc file is created in __pycache__ folder so I add some cp command in compile script to copy it to same level as a.out with a new name <source>.pyc (instead of <source>.cpython-xx.pyc).

So I want some advices or suggestions from dev team on how should I do to make cafe grader supports python3. Thanks in advance!

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