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

Add a sampleproject/__main__.py example #141

Open
DiddiLeija opened this issue Aug 14, 2021 · 3 comments
Open

Add a sampleproject/__main__.py example #141

DiddiLeija opened this issue Aug 14, 2021 · 3 comments

Comments

@DiddiLeija
Copy link
Member

__main__.py is frequently used by packages and modules (like the standard turtledemo) to enable things like:

python -m some_module

I would like to propose a __main__.py example inside src/sampleproject, as a reference for new developers. I know that any change must be documented, but I don't think it would be really hard to do.

Also, if you like this idea, tell me, and I can open a pull request.

@DiddiLeija
Copy link
Member Author

I know this is not user-facing, but maybe it could be a useful reference. Or maybe, we can even propose an "advanced example" to include that kind of things on it.

@di
Copy link
Sponsor Member

di commented Oct 30, 2021

I would merge a PR that adds this.

@di di added the enhancement label Oct 30, 2021
@di
Copy link
Sponsor Member

di commented Oct 30, 2021

There is some initial work here as well: #67

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

No branches or pull requests

2 participants