python3

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestCodeAplusb = `inp = input().split(' ')
a,b = int(inp[0]), int(inp[1]) 
print(a+b)`
	TestCodeSyntaxError = `inp = input(()`
	TestCodeHelloWorld  = `print("Hello world")`
	TestCodeTimeLimit   = `x = 0
while True:
	x = x+1`
	TestCodeRuntimeError = `x = [1,2,3]
print(x[4])`
	TestCodeRuntimeErrorDiv0 = `print(1/0)`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Python3

type Python3 struct{}

func (Python3) Compile

func (Python3) Compile(ctx context.Context, s sandbox.Sandbox, f sandbox.File, stderr io.Writer, extras []sandbox.File) (*sandbox.File, error)

func (Python3) DefaultFilename

func (Python3) DefaultFilename() string

func (Python3) DisplayName

func (Python3) DisplayName() string

func (Python3) ID

func (Python3) ID() string

func (Python3) Run

func (Python3) Run(ctx context.Context, s sandbox.Sandbox, binary sandbox.File, stdin io.Reader, stdout io.Writer, tl time.Duration, ml memory.Amount) (*sandbox.Status, error)

func (Python3) Test

func (p Python3) Test(t *testing.T, s sandbox.Sandbox) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL