Skip to content

Add the function to its own globals, so recursive functions work#4

Open
jhamrick wants to merge 1 commit intocatherinedevlin:masterfrom
jhamrick:support-recursion
Open

Add the function to its own globals, so recursive functions work#4
jhamrick wants to merge 1 commit intocatherinedevlin:masterfrom
jhamrick:support-recursion

Conversation

@jhamrick
Copy link

Currently, recursive functions don't seem to work, because at the time the doctest is run, the function hasn't actually been defined in its own namespace, so the recursive call fails. This pull request adds the function to its own global namespace, so that when it tries to call itself, the call will succeed.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant