New submission from Alexander Belopolsky <belopol...@users.sourceforge.net>:
On Tue, Oct 26, 2010 at 11:18 AM, Guido van Rossum <gu...@python.org> wrote: > On Tue, Oct 26, 2010 at 8:13 AM, Alexander Belopolsky > <alexander.belopol...@gmail.com> wrote: >> The one demo that I want to find a better place for is Demo/turtle. > > Sure, go for it. It is a special case because the turtle module is > also in the stdlib and these are intended for a particular novice > audience. Anything we can do to make things easier for those people to > get start with is probably worth it. Ideally they could just double > click some file and the demo would fire up, with a command-line > alternative (for the geeks among them) e.g. "python -m turtledemo" . > > -- > --Guido van Rossum (python.org/~guido) > -- "Move Demo scripts under Lib" http://mail.python.org/pipermail/python-ideas/2010-October/008397.html Before I prepare a patch, I would like to get an agreement on the location of the demo package. In the order of my preference: 1. turtle.demo Pro: obvious relationship to turtle. Cons: require converting turtle.py to a package. 2. turtledemo Pro: BDFL's suggestion; "Flat is better than nested". Cons: relationship to turtle module is less obvious than in #1; stdlib namespace pollution. (Turtle invasion! :-) 3. demo.turtle - probably not a good idea if not as a part of a general Demo reorganization. Note that while I listed conversion of turtle.py to a package as a cons, it may not be a bad idea on its own. For example, toolkit abstraction naturally belongs to submodules and procedural interface belongs to package level while OOP classes may be separated into submodules. While I am not proposing any such changes as a part of this ticket, it may not be a bad idea to take the first step and rename turtle.py to turtle/__init__.py. ---------- assignee: belopolsky components: Demos and Tools messages: 119612 nosy: belopolsky priority: normal severity: normal status: open title: Move Demo/turtle under Lib/ type: feature request versions: Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10199> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com