Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 59b4472

Browse files
committed
Remove mentions of the Demo directory.
1 parent 856898b commit 59b4472

10 files changed

Lines changed: 16 additions & 30 deletions

File tree

Doc/extending/embedding.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ stdio file pointer and a file name (for identification in error messages only)
3535
to :c:func:`PyRun_SimpleFile`. You can also call the lower-level operations
3636
described in the previous chapters to construct and use Python objects.
3737

38-
A simple demo of embedding Python can be found in the directory
39-
:file:`Demo/embed/` of the source distribution.
40-
4138

4239
.. seealso::
4340

Doc/library/curses.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Linux and the BSD variants of Unix.
4949
Tutorial material on using curses with Python, by Andrew Kuchling and Eric
5050
Raymond.
5151

52-
The :file:`Demo/curses/` directory in the Python source distribution contains
52+
The :file:`Tools/demo/` directory in the Python source distribution contains
5353
some example programs using the curses bindings provided by this module.
5454

5555

Doc/library/imp.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,3 @@ in that version, since :func:`find_module` has been extended and
308308
# Since we may exit via an exception, close fp explicitly.
309309
if fp:
310310
fp.close()
311-
312-
.. index:: module: knee
313-
314-
A more complete example that implements hierarchical module names and includes a
315-
:func:`reload` function can be found in the module :mod:`knee`. The :mod:`knee`
316-
module can be found in :file:`Demo/imputil/` in the Python source distribution.
317-

Doc/library/tkinter.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -659,9 +659,7 @@ relief
659659

660660
scrollcommand
661661
This is almost always the :meth:`!set` method of some scrollbar widget, but can
662-
be any widget method that takes a single argument. Refer to the file
663-
:file:`Demo/tkinter/matt/canvas-with-scrollbars.py` in the Python source
664-
distribution for an example.
662+
be any widget method that takes a single argument.
665663

666664
wrap:
667665
Must be one of: ``"none"``, ``"char"``, or ``"word"``.

Doc/library/tkinter.tix.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,7 @@ Tix Widgets
8484
-----------
8585

8686
`Tix <http://tix.sourceforge.net/dist/current/man/html/TixCmd/TixIntro.htm>`_
87-
introduces over 40 widget classes to the :mod:`tkinter` repertoire. There is a
88-
demo of all the :mod:`tkinter.tix` widgets in the :file:`Demo/tix` directory of
89-
the standard distribution.
90-
91-
.. The Python sample code is still being added to Python, hence commented out
87+
introduces over 40 widget classes to the :mod:`tkinter` repertoire.
9288

9389

9490
Basic Widgets

Doc/library/turtle.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2268,7 +2268,7 @@ There can be a :file:`turtle.cfg` file in the directory where :mod:`turtle` is
22682268
stored and an additional one in the current working directory. The latter will
22692269
override the settings of the first one.
22702270

2271-
The :file:`Demo/turtle` directory contains a :file:`turtle.cfg` file. You can
2271+
The :file:`Lib/turtledemo` directory contains a :file:`turtle.cfg` file. You can
22722272
study it as an example and see its effects when running the demos (preferably
22732273
not from within the demo-viewer).
22742274

@@ -2400,8 +2400,7 @@ Changes since Python 3.0
24002400
strings and numbers respectively.
24012401

24022402
- Two example scripts :file:`tdemo_nim.py` and :file:`tdemo_round_dance.py`
2403-
have been added to the Demo directory (source distribution only). As usual
2404-
they can be viewed and executed within the demo viewer :file:`turtleDemo.py`.
2403+
have been added to the :file:`Lib/turtledemo` directory.
24052404

24062405

24072406
.. doctest::

Mac/Makefile.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,6 @@ $(INSTALLED_PYTHONAPP): install_Python
202202
installextras: $(srcdir)/Extras.ReadMe.txt $(srcdir)/Extras.install.py
203203
$(INSTALL) -d "$(DESTDIR)$(PYTHONAPPSDIR)/Extras"
204204
$(INSTALL) $(srcdir)/Extras.ReadMe.txt "$(DESTDIR)$(PYTHONAPPSDIR)/Extras/ReadMe.txt"
205-
$(RUNSHARED) $(BUILDPYTHON) $(srcdir)/Extras.install.py $(srcdir)/../Demo \
206-
"$(DESTDIR)$(PYTHONAPPSDIR)/Extras/Demo"
207-
$(RUNSHARED) $(BUILDPYTHON) $(srcdir)/Extras.install.py $(srcdir)/Demo \
208-
"$(DESTDIR)$(PYTHONAPPSDIR)/Extras/Demo.Mac"
209205

210206

211207
checkapplepython: $(srcdir)/Tools/fixapplepython23.py

Mac/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ frameworkinstall is composed of a couple of sub-targets that install the
188188
framework itself, the Mac subtree, the applications and the unix tools.
189189

190190
There is an extra target frameworkinstallextras that is not part of the
191-
normal frameworkinstall which installs the Demo and Tools directories
192-
into "/Applications/MacPython <VERSION>", this is useful for binary
191+
normal frameworkinstall which installs the Tools directory into
192+
"/Applications/MacPython <VERSION>", this is useful for binary
193193
distributions.
194194

195195
What do all these programs do?

Makefile.pre.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ CONFIG_ARGS= @CONFIG_ARGS@
154154
SRCDIRS= @SRCDIRS@
155155

156156
# Other subdirectories
157-
SUBDIRSTOO= Include Lib Misc Demo
157+
SUBDIRSTOO= Include Lib Misc
158158

159159
# Files and directories to be distributed
160160
CONFIGFILES= configure configure.in acconfig.h pyconfig.h.in Makefile.pre.in
@@ -1155,7 +1155,7 @@ frameworkinstallunixtools:
11551155
frameworkaltinstallunixtools:
11561156
cd Mac && $(MAKE) altinstallunixtools DESTDIR="$(DESTDIR)"
11571157

1158-
# This installs the Demos and Tools into the applications directory.
1158+
# This installs the Tools into the applications directory.
11591159
# It is not part of a normal frameworkinstall
11601160
frameworkinstallextras:
11611161
cd Mac && $(MAKE) installextras DESTDIR="$(DESTDIR)"

Misc/NEWS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ Build
7979
- Issue #10679: The "idle", "pydoc" and "2to3" scripts are now installed with
8080
a version-specific suffix on "make altinstall".
8181

82+
Tools/Demos
83+
-----------
84+
85+
- Issue #7962: The Demo directory is gone. Most of the old and unmaintained
86+
demos have been removed, others integrated in documentation or a new
87+
Tools/demo subdirectory.
88+
8289

8390
What's New in Python 3.2 Beta 2?
8491
================================

0 commit comments

Comments
 (0)