Skip to content

Commit 7f7c42d

Browse files
committed
Merge pull request #12 from Mathics3/release-9.0
Release 9.0
2 parents 32e97c6 + 4176ad1 commit 7f7c42d

File tree

9 files changed

+688
-23
lines changed

9 files changed

+688
-23
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/.hypothesis
33
/.python-version
44
/ChangeLog
5+
/ChangeLog-spell-corrected
56
/Mathics3_debugger.egg-info
67
/Mathics3_graph.egg-info
78
/Mathics3_trepan.egg-info

CHANGES.rst

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,32 @@
11
CHANGES
2+
=======
3+
08/30/2025
4+
5+
Support Python 3.13. Remove support for Python 3.8 and Python 3.9.
6+
Revise for new location API and 9.0.0 release.
7+
8+
* added debugger commands:
9+
- ``abort``
10+
- ``info program``
11+
- ``set return``
12+
- ``quit``
13+
* Improve ``Element`` printing
14+
- Handle Slot[x] -> #x
15+
- add unary precedence
16+
* Add ``DebugEvaluation[]`` Builtin Function
17+
* ``TraceEvaluation[]`` improvements:
18+
- Returning ``x <- tuple(y)`` becomes ``Replacing x -> y``
19+
- Show locations on ``TraceEvaluation[]``
20+
* Show Mathics3 source location sometimes when $TrackLocaitons is set.
21+
* respect ``TREPAN_PYGMENTS_STYLE`` for setting pygments style
22+
23+
224
=======
325
01/27/2025
426

527
1.0.1
628

7-
Revise for API change in the 8.0.0 release.
29+
Revise for API changes in the 8.0.0 release.
830

931
-------
1032

ChangeLog-spell-corrected.diff

Lines changed: 229 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,229 @@
1+
--- ChangeLog 2025-08-30 11:20:57.309641535 -0400
2+
+++ ChangeLog-spell-corrected 2025-08-30 11:19:33.784682545 -0400
3+
@@ -20,7 +20,7 @@
4+
5+
2025-08-26 rocky <[email protected]>
6+
7+
- * pymathics/trepan/lib/format.py, pymathics/trepan/tracing.py:
8+
+ * pymathics/trepan/lib/format.py, pymathics/trepan/tracing.py:
9+
Improve TraceEvaluation and format Handle Slot[n] -> #n Remove extraneous: Replace: x -> x Newlines between trace output
10+
11+
2025-08-24 rocky <[email protected]>
12+
@@ -67,7 +67,7 @@
13+
14+
2025-07-01 rocky <[email protected]>
15+
16+
- * pymathics/trepan/__main__.py, pymathics/trepan/lib/location.py:
17+
+ * pymathics/trepan/__main__.py, pymathics/trepan/lib/location.py:
18+
Fix bug in use of filename in location .. and also set $TrackLocations
19+
20+
2025-06-29 rocky <[email protected]>
21+
@@ -75,14 +75,14 @@
22+
* pymathics/trepan/processor/cmdproc.py,
23+
pymathics/trepan/processor/command/info_subcmd/program.py,
24+
pymathics/trepan/processor/command/info_subcmd/return.py: tweak info
25+
- program and info return info program: show Mathics3 expression if that exists info reutrn:
26+
+ program and info return info program: show Mathics3 expression if that exists info return:
27+
note that a None return value on a no-return keeps execution the
28+
same
29+
30+
2025-06-29 rocky <[email protected]>
31+
32+
* pymathics/trepan/lib/format.py, pymathics/trepan/lib/location.py,
33+
- pymathics/trepan/processor/cmdproc.py, pymathics/trepan/tracing.py:
34+
+ pymathics/trepan/processor/cmdproc.py, pymathics/trepan/tracing.py:
35+
More work on location display Move location formatting to its own module. pymathics.lib.format is
36+
too large so split this up. location.py when we don't need file/line tracking colorize files and
37+
line and add column numbers.
38+
@@ -91,7 +91,7 @@
39+
40+
* pymathics/trepan/lib/format.py,
41+
pymathics/trepan/processor/cmdproc.py,
42+
- pymathics/trepan/processor/location.py, pymathics/trepan/tracing.py:
43+
+ pymathics/trepan/processor/location.py, pymathics/trepan/tracing.py:
44+
Show locations on TraceEvaluation[]
45+
46+
2025-06-29 rocky <[email protected]>
47+
@@ -133,7 +133,7 @@
48+
2025-06-23 rocky <[email protected]>
49+
50+
* pymathics/trepan/__main__.py,
51+
- pymathics/trepan/debug_evaluation.py, pymathics/trepan/tracing.py:
52+
+ pymathics/trepan/debug_evaluation.py, pymathics/trepan/tracing.py:
53+
Fix some spelling typos
54+
55+
2025-06-23 rocky <[email protected]>
56+
@@ -149,7 +149,7 @@
57+
58+
2025-06-15 rocky <[email protected]>
59+
60+
- * pymathics/trepan/lib/format.py, pymathics/trepan/tracing.py:
61+
+ * pymathics/trepan/lib/format.py, pymathics/trepan/tracing.py:
62+
Improve formatting for operators ... and correct DebugEvaluation[]
63+
64+
2025-06-14 rocky <[email protected]>
65+
@@ -160,7 +160,7 @@
66+
2025-06-08 rocky <[email protected]>
67+
68+
* pymathics/trepan/processor/command/quit.py: Adapt quit command for
69+
- DebugEvaluate and Debugger. Remove confirmation, since this is not somehting as drastic as quit
70+
+ DebugEvaluate and Debugger. Remove confirmation, since this is not something as drastic as quit
71+
in a debugger.
72+
73+
2025-06-08 rocky <[email protected]>
74+
@@ -182,7 +182,7 @@
75+
2025-06-07 rocky <[email protected]>
76+
77+
* pymathics/trepan/lib/core.py, pymathics/trepan/lib/repl.py,
78+
- pymathics/trepan/processor/cmdproc.py, pymathics/trepan/tracing.py:
79+
+ pymathics/trepan/processor/cmdproc.py, pymathics/trepan/tracing.py:
80+
Start DebugEvaluation... Needs a change in mathics.core.eval
81+
82+
2025-06-06 rocky <[email protected]>
83+
@@ -239,7 +239,7 @@
84+
85+
2025-01-17 rocky <[email protected]>
86+
87+
- * pymathics/trepan/__main__.py, pymathics/trepan/stacktrace.py:
88+
+ * pymathics/trepan/__main__.py, pymathics/trepan/stacktrace.py:
89+
Track mathics-core eval docstring change
90+
91+
2025-01-13 rocky <[email protected]>
92+
@@ -286,7 +286,7 @@
93+
94+
2024-12-15 rocky <[email protected]>
95+
96+
- * pymathics/trepan/tracing.py: Upgrade automatially TraceEvaluation
97+
+ * pymathics/trepan/tracing.py: Upgrade automatically TraceEvaluation
98+
99+
2024-12-15 rocky <[email protected]>
100+
101+
@@ -322,7 +322,7 @@
102+
103+
2024-12-02 rocky <[email protected]>
104+
105+
- * pymathics/trepan/lib/repl.py, pymathics/trepan/lib/sighandler.py:
106+
+ * pymathics/trepan/lib/repl.py, pymathics/trepan/lib/sighandler.py:
107+
Print a nice Mathics stack for print handler
108+
109+
2024-12-02 rocky <[email protected]>
110+
@@ -448,7 +448,7 @@
111+
112+
2024-11-17 rocky <[email protected]>
113+
114+
- * pymathics/debugger/__main__.py, pymathics/debugger/lib/core.py:
115+
+ * pymathics/debugger/__main__.py, pymathics/debugger/lib/core.py:
116+
Add in mmatera's observation.. about the use of $Context and $ContextPath in the code and its
117+
reduced need for "short=True"
118+
119+
@@ -506,7 +506,7 @@
120+
121+
2024-10-14 rocky <[email protected]>
122+
123+
- * pymathics/debugger/lib/format.py: Improve printexpression --- Handle printin Expressions[] that haven't been converted to a
124+
+ * pymathics/debugger/lib/format.py: Improve printexpression --- Handle printing Expressions[] that haven't been converted to a
125+
specialize Python Object internal form.
126+
127+
2024-10-13 rocky <[email protected]>
128+
@@ -529,7 +529,7 @@
129+
2024-10-02 rocky <[email protected]>
130+
131+
* pymathics/debugger/__main__.py, pymathics/debugger/lib/core.py,
132+
- pymathics/debugger/lib/stack.py, pymathics/debugger/tracing.py:
133+
+ pymathics/debugger/lib/stack.py, pymathics/debugger/tracing.py:
134+
Support stop on specific functions in events... In Sympy and mpmath, we support stopping on the Sympy, or mpmath
135+
function name. In Get we support stopping on getting a particular file name.
136+
137+
@@ -551,7 +551,7 @@
138+
pymathics/debugger/processor/command/info_subcmd/frame.py,
139+
pymathics/debugger/processor/command/set_subcmd/event.py,
140+
pymathics/debugger/processor/command/show_subcmd/event.py: More info
141+
- in bt... also improve "info frame" and setting/reportign set/show event for
142+
+ in bt... also improve "info frame" and setting/reporting set/show event for
143+
Get
144+
145+
2024-09-27 R. Bernstein <[email protected]>
146+
@@ -585,7 +585,7 @@
147+
148+
2024-09-22 rocky <[email protected]>
149+
150+
- * pymathics/debugger/processor/command/{mathics.py => mathics3.py}:
151+
+ * pymathics/debugger/processor/command/{mathics.py => mathics3.py}:
152+
mathics -> mathics3
153+
154+
2024-09-21 rocky <[email protected]>
155+
@@ -595,7 +595,7 @@
156+
pymathics/debugger/processor/command/eval.py,
157+
pymathics/debugger/processor/command/mathics.py,
158+
pymathics/debugger/processor/command/printelement.py,
159+
- pymathics/debugger/processor/frame.py: Misc small improvements... * Revise soem functions to make it more amenable to adding a
160+
+ pymathics/debugger/processor/frame.py: Misc small improvements... * Revise some functions to make it more amenable to adding a
161+
"return" command * Proper error return on debugger eval command * add find_builtin() to fund an eval() frame
162+
163+
2024-09-21 rocky <[email protected]>
164+
@@ -652,7 +652,7 @@
165+
pymathics/debugger/lib/stack.py,
166+
pymathics/debugger/processor/command/printelement.py,
167+
pymathics/debugger/processor/command/set_subcmd/event.py,
168+
- pymathics/debugger/processor/command/show_subcmd/event.py:
169+
+ pymathics/debugger/processor/command/show_subcmd/event.py:
170+
do_replace -> apply_rule (for now) ... stack.py: format apply and eval calls using Mathics3 formatting
171+
172+
2024-09-07 rocky <[email protected]>
173+
@@ -668,7 +668,7 @@
174+
2024-09-07 rocky <[email protected]>
175+
176+
* pymathics/debugger/processor/command/set_subcmd/event.py,
177+
- pymathics/debugger/processor/command/show_subcmd/event.py:
178+
+ pymathics/debugger/processor/command/show_subcmd/event.py:
179+
Fix/Improve "set/show event"
180+
181+
2024-09-06 rocky <[email protected]>
182+
@@ -709,7 +709,7 @@
183+
pymathics/debugger/processor/command/frame.py,
184+
pymathics/debugger/processor/command/up.py,
185+
pymathics/debugger/processor/frame.py: Some frame/up/down -b
186+
- improvments... More need to happen though
187+
+ improvements... More need to happen though
188+
189+
2024-09-03 rocky <[email protected]>
190+
191+
@@ -734,7 +734,7 @@
192+
193+
2024-09-01 rocky <[email protected]>
194+
195+
- * pymathics/debugger/processor/command/info_subcmd/program.py:
196+
+ * pymathics/debugger/processor/command/info_subcmd/program.py:
197+
color->style in formatting... trepan3k API changes here
198+
199+
2024-09-01 rocky <[email protected]>
200+
@@ -750,7 +750,7 @@
201+
202+
2024-08-26 rocky <[email protected]>
203+
204+
- * setup.py: Bump minimun trepan3k version allowed... its aPI has changed slightly
205+
+x * setup.py: Bump minimum trepan3k version allowed... its API has changed slightly
206+
207+
2024-08-26 R. Bernstein <[email protected]>
208+
209+
@@ -769,7 +769,7 @@
210+
211+
2024-08-25 rocky <[email protected]>
212+
213+
- * pymathics/debugger/processor/command/info_subcmd/program.py:
214+
+ * pymathics/debugger/processor/command/info_subcmd/program.py:
215+
"mathics" option in callstack is now "builtin"
216+
217+
2024-08-25 rocky <[email protected]>
218+
@@ -904,10 +904,9 @@
219+
pymathics/debugger/processor/command/show_subcmd/listsize.py,
220+
pymathics/debugger/processor/command/show_subcmd/style.py,
221+
pymathics/debugger/processor/command/show_subcmd/styles.py,
222+
- pymathics/debugger/processor/subcmd.py, pymathics/debugger/repl.py:
223+
+ pymathics/debugger/processor/subcmd.py, pymathics/debugger/repl.py:
224+
First working REPL
225+
226+
2024-08-19 rocky <[email protected]>
227+
228+
* Starting Mathics3 debugger project
229+
-

Makefile

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1+
# A GNU Makefile to run various tasks - compatibility for us old-timers.
2+
3+
# Note: This makefile include remake-style target comments.
4+
# These comments before the targets start with #:
5+
# remake --tasks to shows the targets and the comments
6+
7+
GIT2CL ?= admin-tools/git2cl
18
PYTHON ?= python3
2-
PHONY=check clean dist distclean test rmChangeLog flake8
9+
RM ?= rm
10+
11+
.PHONY: \
12+
check clean dist distclean test rmChangeLog flake8
13+
314
#: Clean up temporary files
415
clean:
516
find . | grep -E '\.pyc' | xargs rm -rvf;
@@ -10,5 +21,8 @@ clean:
1021
#: Create a ChangeLog from git via git log and git2cl
1122
ChangeLog: rmChangeLog
1223
git log --pretty --numstat --summary | $(GIT2CL) >$@
24+
patch ChangeLog < ChangeLog-spell-corrected.diff
1325

14-
.PHONY: $(PHONY)
26+
#: Remove ChangeLog
27+
rmChangeLog:
28+
$(RM) ChangeLog || true

0 commit comments

Comments
 (0)