Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Update custom stringifier example with a method to use sub-second timeout #21

Merged
merged 2 commits into from Aug 9, 2011

Conversation

Projects
None yet
2 participants
Collaborator

asmeurer commented Aug 9, 2011

The trick is to use signal.setitimer instead of signal.alarm (see http://docs.python.org/library/signal.html#signal.setitimer), which unfortunately only exists in Python 2.6+.

inducer added a commit that referenced this pull request Aug 9, 2011

Merge pull request #21 from asmeurer/stringifier-update
Update custom stringifier example with a method to use sub-second timeout

@inducer inducer merged commit d73bbc2 into inducer:master Aug 9, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment