Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executing code #181

Closed
r2ad opened this issue Nov 8, 2018 · 3 comments

Comments

Projects
None yet
4 participants
@r2ad
Copy link

commented Nov 8, 2018

Curious as to why pdoc also executes the code. For example, create a simple hello.py and run pdoc on it. The Hello World is executed. I was not expecting this behaviour when running pdoc on files in a directory and it could result in code running when it is not desired.

Of course, it works as expected (great) on modules. :)

@kernc

This comment has been minimized.

Copy link
Contributor

commented Nov 8, 2018

It imports the modules instead of merely parsing them.

@BurntSushi

This comment has been minimized.

Copy link
Contributor

commented Nov 8, 2018

See also: #82 and #8

@mhils

This comment has been minimized.

Copy link
Member

commented Nov 8, 2018

Thanks for chiming in you two! :)

@mhils mhils closed this Nov 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.