[New-bugs-announce] [issue10199] Move Demo/turtle under Lib/

Alexander Belopolsky report at bugs.python.org
Tue Oct 26 17:48:56 CEST 2010

New submission from Alexander Belopolsky <belopolsky at users.sourceforge.net>:

On Tue, Oct 26, 2010 at 11:18 AM, Guido van Rossum <guido at python.org> wrote:
> On Tue, Oct 26, 2010 at 8:13 AM, Alexander Belopolsky
> <alexander.belopolsky at 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"

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 <report at bugs.python.org>

More information about the New-bugs-announce mailing list