sampleproject icon indicating copy to clipboard operation
sampleproject copied to clipboard

Add a `sampleproject/__main__.py` example

Open DiddiLeija opened this issue 4 years ago • 3 comments

__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 avatar Aug 14 '21 12:08 DiddiLeija

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.

DiddiLeija avatar Aug 21 '21 13:08 DiddiLeija

I would merge a PR that adds this.

di avatar Oct 30 '21 15:10 di

There is some initial work here as well: https://github.com/pypa/sampleproject/pull/67

di avatar Oct 30 '21 16:10 di