Skip to content

Commit 64fe343

Browse files
authored
gh-97681: Remove Tools/demo/ directory (#97682)
Remove the Tools/demo/ directory which contained old demo scripts. A copy can be found in the old-demos project: https://github.com/gvanrossum/old-demos Remove the following old demo scripts: * beer.py * eiffel.py * hanoi.py * life.py * markov.py * mcast.py * queens.py * redemo.py * rpython.py * rpythond.py * sortvisu.py * spreadsheet.py * vector.py Changes: * Remove a reference to the redemo.py script in the regex howto documentation. * Remove a reference to the removed Tools/demo/ directory in the curses documentation. * Update PC/layout/ to remove the reference to Tools/demo/ directory.
1 parent e6f9ec5 commit 64fe343

20 files changed

+14
-2730
lines changed

Doc/howto/regex.rst

+1-5
Original file line numberDiff line numberDiff line change
@@ -378,11 +378,7 @@ containing information about the match: where it starts and ends, the substring
378378
it matched, and more.
379379

380380
You can learn about this by interactively experimenting with the :mod:`re`
381-
module. If you have :mod:`tkinter` available, you may also want to look at
382-
:source:`Tools/demo/redemo.py`, a demonstration program included with the
383-
Python distribution. It allows you to enter REs and strings, and displays
384-
whether the RE matches or fails. :file:`redemo.py` can be quite useful when
385-
trying to debug a complicated RE.
381+
module.
386382

387383
This HOWTO uses the standard Python interpreter for its examples. First, run the
388384
Python interpreter, import the :mod:`re` module, and compile a RE::

Doc/library/curses.rst

-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ Linux and the BSD variants of Unix.
4242
Tutorial material on using curses with Python, by Andrew Kuchling and Eric
4343
Raymond.
4444

45-
The :source:`Tools/demo/` directory in the Python source distribution contains
46-
some example programs using the curses bindings provided by this module.
47-
4845

4946
.. _curses-functions:
5047

Doc/whatsnew/3.12.rst

+9
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,15 @@ CPython bytecode changes
170170
(Contributed by Ken Jin in :gh:`93429`.)
171171

172172

173+
Demos and Tools
174+
===============
175+
176+
* Remove the ``Tools/demo/`` directory which contained old demo scripts. A copy
177+
can be found in the `old-demos project
178+
<https://github.com/gvanrossum/old-demos>`_.
179+
(Contributed by Victor Stinner in :gh:`97681`.)
180+
181+
173182
Deprecated
174183
==========
175184

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Remove the ``Tools/demo/`` directory which contained old demo scripts. A copy
2+
can be found in the `old-demos project
3+
<https://github.com/gvanrossum/old-demos>`_. Patch by Victor Stinner.

PC/layout/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
DATA_DIRS = FileNameSet("data")
6060

61-
TOOLS_DIRS = FileNameSet("scripts", "i18n", "demo", "parser")
61+
TOOLS_DIRS = FileNameSet("scripts", "i18n", "parser")
6262
TOOLS_FILES = FileSuffixSet(".py", ".pyw", ".txt")
6363

6464

Tools/README

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ buildbot Batchfiles for running on Windows buildbot workers.
55

66
ccbench A Python threads-based concurrency benchmark. (*)
77

8-
demo Several Python programming demos.
9-
108
freeze Create a stand-alone executable from a Python program.
119

1210
gdb Python code to be run inside gdb, to make it easier to

Tools/demo/README

-16
This file was deleted.

Tools/demo/beer.py

-25
This file was deleted.

Tools/demo/eiffel.py

-146
This file was deleted.

0 commit comments

Comments
 (0)