Skip to content

mention sys.setExecutionLimit in turtle section #375

@presnick

Description

@presnick

Especially for schools with chromebooks, they may even need to increase execution limits on some non-turtle code later in the book.

Currently, this is offered in the Monte Carlo simulation project page, but not anywhere in the main text:


Note

Extending the Time Limit

When doing a long running simulation like the pi calculation you may run up against the time limit we have set for your program. 25 seconds. to increase the time you can do the following in your program:

import sys
sys.setExecutionLimit(60000)
That ups the time limit to 60 seconds. The value you pass is in milliseconds.

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