Skip to content

Commit a3957e1

Browse files
committed
update to python 3.10.7
1 parent c8249f3 commit a3957e1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+437
-317
lines changed

PythonLib/full/bdb.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -805,15 +805,18 @@ def checkfuncname(b, frame):
805805
return True
806806

807807

808-
# Determines if there is an effective (active) breakpoint at this
809-
# line of code. Returns breakpoint number or 0 if none
810808
def effective(file, line, frame):
811-
"""Determine which breakpoint for this file:line is to be acted upon.
809+
"""Return (active breakpoint, delete temporary flag) or (None, None) as
810+
breakpoint to act upon.
812811
813-
Called only if we know there is a breakpoint at this location. Return
814-
the breakpoint that was triggered and a boolean that indicates if it is
815-
ok to delete a temporary breakpoint. Return (None, None) if there is no
816-
matching breakpoint.
812+
The "active breakpoint" is the first entry in bplist[line, file] (which
813+
must exist) that is enabled, for which checkfuncname is True, and that
814+
has neither a False condition nor a positive ignore count. The flag,
815+
meaning that a temporary breakpoint should be deleted, is False only
816+
when the condiion cannot be evaluated (in which case, ignore count is
817+
ignored).
818+
819+
If no such entry exists, then (None, None) is returned.
817820
"""
818821
possibles = Breakpoint.bplist[file, line]
819822
for b in possibles:

PythonLib/full/crypt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def _add_method(name, *args, rounds=None):
9494
result = crypt('', salt)
9595
except OSError as e:
9696
# Not all libc libraries support all encryption methods.
97-
if e.errno == errno.EINVAL:
97+
if e.errno in {errno.EINVAL, errno.EPERM, errno.ENOSYS}:
9898
return False
9999
raise
100100
if result and len(result) == method.total_size:

PythonLib/full/ensurepip/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
__all__ = ["version", "bootstrap"]
1313
_PACKAGE_NAMES = ('setuptools', 'pip')
1414
_SETUPTOOLS_VERSION = "63.2.0"
15-
_PIP_VERSION = "22.2.1"
15+
_PIP_VERSION = "22.2.2"
1616
_PROJECTS = [
1717
("setuptools", _SETUPTOOLS_VERSION, "py3"),
1818
("pip", _PIP_VERSION, "py3"),

PythonLib/full/ensurepip/_bundled/pip-22.2.1-py3-none-any.whl renamed to PythonLib/full/ensurepip/_bundled/pip-22.2.2-py3-none-any.whl

1.95 MB
Binary file not shown.

PythonLib/full/idlelib/CREDITS.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ Guido van Rossum, as well as being the creator of the Python language, is the
22
original creator of IDLE. Other contributors prior to Version 0.8 include
33
Mark Hammond, Jeremy Hylton, Tim Peters, and Moshe Zadka.
44

5-
IDLE's recent development was carried out in the SF IDLEfork project. The
5+
Until Python 2.3, IDLE's development was carried out in the SF IDLEfork project. The
66
objective was to develop a version of IDLE which had an execution environment
77
which could be initialized prior to each run of user code.
8+
IDLefork was merged into the Python code base in 2003.
89

910
The IDLEfork project was initiated by David Scherer, with some help from Peter
1011
Schneider-Kamp and Nicholas Riley. David wrote the first version of the RPC
@@ -28,6 +29,15 @@ Jim Jewett, Martin v. Löwis, Jason Orendorff, Guilherme Polo, Josh Robb,
2829
Nigel Rowe, Bruce Sherwood, Jeff Shute, and Weeble have submitted useful
2930
patches. Thanks, guys!
3031

32+
Major contributors since 2005:
33+
34+
- 2005: Tal Einat
35+
- 2010: Terry Jan Reedy (current maintainer)
36+
- 2013: Roger Serwys
37+
- 2014: Saimadhav Heblikar
38+
- 2015: Mark Roseman
39+
- 2017: Louie Lu, Cheryl Sabella, and Serhiy Storchaka
40+
3141
For additional details refer to NEWS.txt and Changelog.
3242

3343
Please contact the IDLE maintainer ([email protected]) to have yourself included

PythonLib/full/idlelib/NEWS.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ Released 2023-04-03?
44
=========================
55

66

7+
gh-65802: Document handling of extensions in Save As dialogs.
8+
9+
gh-95191: Include prompts when saving Shell (interactive input/output).
10+
711
gh-95511: Fix the Shell context menu copy-with-prompts bug of copying
812
an extra line when one selects whole lines.
913

PythonLib/full/idlelib/README.txt

Lines changed: 90 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ and omissions and lag behind changes in idlelib.
1616

1717

1818
IDLELIB FILES
19+
=============
20+
1921
Implementation files not in IDLE MENU are marked (nim).
20-
Deprecated files and objects are listed separately as the end.
2122

2223
Startup
2324
-------
@@ -33,22 +34,22 @@ autocomplete.py # Complete attribute names or filenames.
3334
autocomplete_w.py # Display completions.
3435
autoexpand.py # Expand word with previous word in file.
3536
browser.py # Create module browser window.
37+
calltip.py # Create calltip text.
3638
calltip_w.py # Display calltip.
37-
calltips.py # Create calltip text.
3839
codecontext.py # Show compound statement headers otherwise not visible.
39-
colorizer.py # Colorize text (nim)
40+
colorizer.py # Colorize text (nim).
4041
config.py # Load, fetch, and save configuration (nim).
4142
configdialog.py # Display user configuration dialogs.
42-
config_help.py # Specify help source in configdialog.
4343
config_key.py # Change keybindings.
44-
dynoption.py # Define mutable OptionMenu widget (nim).
45-
debugobj.py # Define class used in stackviewer.
46-
debugobj_r.py # Communicate objects between processes with rpc (nim).
4744
debugger.py # Debug code run from shell or editor; show window.
4845
debugger_r.py # Debug code run in remote process.
46+
debugobj.py # Define class used in stackviewer.
47+
debugobj_r.py # Communicate objects between processes with rpc (nim).
4948
delegator.py # Define base class for delegators (nim).
49+
dynoption.py # Define mutable OptionMenu widget (nim)
5050
editor.py # Define most of editor and utility functions.
5151
filelist.py # Open files and manage list of open windows (nim).
52+
format.py # Define format menu options.
5253
grep.py # Find all occurrences of pattern in multiple files.
5354
help.py # Display IDLE's html doc.
5455
help_about.py # Display About IDLE dialog.
@@ -59,7 +60,6 @@ macosx.py # Help IDLE run on Macs (nim).
5960
mainmenu.py # Define most of IDLE menu.
6061
multicall.py # Wrap tk widget to allow multiple calls per event (nim).
6162
outwin.py # Create window for grep output.
62-
paragraph.py # Re-wrap multiline strings and comments.
6363
parenmatch.py # Match fenceposts: (), [], and {}.
6464
pathbrowser.py # Create path browser window.
6565
percolator.py # Manage delegator stack (nim).
@@ -69,22 +69,25 @@ query.py # Query user for information
6969
redirector.py # Intercept widget subcommands (for percolator) (nim).
7070
replace.py # Search and replace pattern in text.
7171
rpc.py # Communicate between idle and user processes (nim).
72-
rstrip.py # Strip trailing whitespace.
7372
run.py # Manage user code execution subprocess.
7473
runscript.py # Check and run user code.
7574
scrolledlist.py # Define scrolledlist widget for IDLE (nim).
7675
search.py # Search for pattern in text.
7776
searchbase.py # Define base for search, replace, and grep dialogs.
7877
searchengine.py # Define engine for all 3 search dialogs.
78+
sidebar.py # Define line number and shell prompt sidebars.
79+
squeezer.py # Squeeze long shell output (nim).
7980
stackviewer.py # View stack after exception.
8081
statusbar.py # Define status bar for windows (nim).
8182
tabbedpages.py # Define tabbed pages widget (nim).
8283
textview.py # Define read-only text widget (nim).
84+
tooltip.py # Define popups for calltips, squeezer (nim).
8385
tree.py # Define tree widget, used in browsers (nim).
8486
undo.py # Manage undo stack.
85-
util.py # Define objects imported elsewhere with no dependencies (nim)
87+
util.py # Define common objects imported elsewhere (nim).
8688
windows.py # Manage window list and define listed top level.
8789
zoomheight.py # Zoom window to full height of screen.
90+
zzdummy.py # Example extension.
8891

8992
Configuration
9093
-------------
@@ -98,6 +101,7 @@ Text
98101
CREDITS.txt # not maintained, displayed by About IDLE
99102
HISTORY.txt # NEWS up to July 2001
100103
NEWS.txt # commits, displayed by About IDLE
104+
NEWS2.txt # commits to Python2
101105
README.txt # this file, displayed by About IDLE
102106
TODO.txt # needs review
103107
extend.txt # about writing extensions
@@ -108,13 +112,10 @@ Subdirectories
108112
Icons # small image files
109113
idle_test # files for human test and automated unit tests
110114

111-
Unused and Deprecated files and objects (nim)
112-
---------------------------------------------
113-
tooltip.py # unused
114-
115-
116115

117116
IDLE MENUS
117+
==========
118+
118119
Top level items and most submenu items are defined in mainmenu.
119120
Extensions add submenu items when active. The names given are
120121
found, quoted, in one of these modules, paired with a '<<pseudoevent>>'.
@@ -160,63 +161,68 @@ Edit
160161
Show call tip # Calltips extension and CalltipWindow (& Hyperparser)
161162
Show surrounding parens # parenmatch (& Hyperparser)
162163

164+
Format (Editor only) [fFR = format.FormatRegion]
165+
Format Paragraph # format.FormatParagraph.format_paragraph_event
166+
Indent Region # fFR.indent_region_event
167+
Dedent Region # fFR.dedent_region_event
168+
Comment Out Reg. # fFR.comment_region_event
169+
Uncomment Region # fFR.uncomment_region_event
170+
Tabify Region # fFR.tabify_region_event
171+
Untabify Region # fFR.untabify_region_event
172+
Toggle Tabs # format.Indents.toggle_tabs_event
173+
New Indent Width # format.Indents.change_indentwidth_event
174+
Strip tailing whitespace # format.rstrip
175+
Zin # zzdummy
176+
Zout # zzdummy
177+
178+
Run (Editor only)
179+
Run Module # runscript.ScriptBinding.run_module_event
180+
Run... Customized # runscript.ScriptBinding.run_custom_event
181+
Check Module # runscript.ScriptBinding.check_module_event
182+
Python Shell # pyshell.Pyshell, pyshell.ModifiedInterpreter
183+
163184
Shell # pyshell
164185
View Last Restart # pyshell.PyShell.view_restart_mark
165186
Restart Shell # pyshell.PyShell.restart_shell
187+
Previous History # history.History.history_prev
188+
Next History # history.History.history_next
166189
Interrupt Execution # pyshell.PyShell.cancel_callback
167190

168191
Debug (Shell only)
169-
Go to File/Line
192+
Go to File/Line # outwin.OutputWindow.goto_file_line
170193
debugger # debugger, debugger_r, PyShell.toggle_debugger
171194
Stack Viewer # stackviewer, PyShell.open_stack_viewer
172195
Auto-open Stack Viewer # stackviewer
173196

174-
Format (Editor only)
175-
Indent Region # eEW.indent_region_event
176-
Dedent Region # eEW.dedent_region_event
177-
Comment Out Reg. # eEW.comment_region_event
178-
Uncomment Region # eEW.uncomment_region_event
179-
Tabify Region # eEW.tabify_region_event
180-
Untabify Region # eEW.untabify_region_event
181-
Toggle Tabs # eEW.toggle_tabs_event
182-
New Indent Width # eEW.change_indentwidth_event
183-
Format Paragraph # paragraph extension
184-
---
185-
Strip tailing whitespace # rstrip extension
186-
187-
Run (Editor only)
188-
Python Shell # pyshell
189-
---
190-
Check Module # runscript
191-
Run Module # runscript
192-
193197
Options
194-
Configure IDLE # eEW.config_dialog, configdialog
195-
(tabs in the dialog)
196-
Font tab # config-main.def
197-
Highlight tab # query, config-highlight.def
198-
Keys tab # query, config_key, config_keys.def
199-
General tab # config_help, config-main.def
200-
Extensions tab # config-extensions.def, corresponding .py
198+
Configure IDLE # eEW.config_dialog, config, configdialog (cd)
199+
(Parts of the dialog)
200+
Buttons # cd.ConfigDialog
201+
Font tab # cd.FontPage, config-main.def
202+
Highlight tab # cd.HighPage, query, config-highlight.def
203+
Keys tab # cd.KeysPage, query, config_key, config_keys.def
204+
Windows tab # cd.WinPage, config_main.def
205+
Shell/Ed tab # cd.ShedPage, config-main.def
206+
Extensions tab # config-extensions.def, corresponding .py files
201207
---
202-
Code Context (ed)# codecontext extension
208+
... Code Context # codecontext
209+
... Line Numbers # sidebar
210+
Zoomheight # zoomheight
203211

204212
Window
205-
Zoomheight # zoomheight extension
206-
---
207213
<open windows> # windows
208214

209215
Help
210216
About IDLE # eEW.about_dialog, help_about.AboutDialog
211217
---
212-
IDLE Help # eEW.help_dialog, helpshow_idlehelp
213-
Python Doc # eEW.python_docs
218+
IDLE Help # eEW.help_dialog, help.show_idlehelp
219+
Python Docs # eEW.python_docs
214220
Turtle Demo # eEW.open_turtle_demo
215221
---
216222
<other help sources>
217223

218224
<Context Menu> (right click)
219-
Defined in editor, PyShelpyshellut
225+
Defined in editor, PyShell.pyshell
220226
Cut
221227
Copy
222228
Paste
@@ -232,11 +238,14 @@ Help
232238
Center Insert # eEW.center_insert_event
233239

234240

235-
CODE STYLE -- Generally PEP 8.
241+
OTHER TOPICS
242+
============
243+
244+
Generally use PEP 8.
236245

237-
import
238-
------
239-
Put import at the top, unless there is a good reason otherwise.
246+
import statements
247+
-----------------
248+
Put imports at the top, unless there is a good reason otherwise.
240249
PEP 8 says to group stdlib, 3rd-party dependencies, and package imports.
241250
For idlelib, the groups are general stdlib, tkinter, and idlelib.
242251
Sort modules within each group, except that tkinter.ttk follows tkinter.
@@ -250,3 +259,32 @@ htest function def or "if __name__ == '__main__'" clause.
250259
Within module imports like "from idlelib.mod import class" may cause
251260
circular imports to deadlock. Even without this, circular imports may
252261
require at least one of the imports to be delayed until a function call.
262+
263+
What's New entries
264+
------------------
265+
266+
Repository directory Doc/whatsnew/ has a file 3.n.rst for each 3.n
267+
Python version. For the first entry in each file, add subsection
268+
'IDLE and idlelib', in alphabetical position, to the 'Improved Modules'
269+
section. For the rest of cpython, entries to 3.(n+1).rst begin with
270+
the release of 3.n.0b1. For IDLE, entries for features backported from
271+
'main' to '3.n' during its beta period do not got in 3.(n+1).rst. The
272+
latter usually gets its first entry during the 3.n.0 candidate period
273+
or after the 3.n.0 release.
274+
275+
When, as per PEP 434, feature changes are backported, entries are placed
276+
in the 3.n.rst file *in the main branch* for each Python version n that
277+
gets the backport. (Note: the format of entries have varied between
278+
versions.) Add a line "New in 3.n maintenance releases." before the
279+
first back-ported feature after 3.n.0 is released. Since each older
280+
version file gets a different number of backports, it is easiest to
281+
make a separate PR for each file and label it with the backports
282+
needed.
283+
284+
Github repository and issues
285+
----------------------------
286+
287+
The CPython repository is https://github.com/python/cpython. The
288+
IDLE Issues listing is https://github.com/orgs/python/projects/31.
289+
The main classification is by Topic, based on the IDLE menu. View the
290+
topics list by clicking the [<]] button in the upper right.

PythonLib/full/idlelib/browser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def transform_children(child_dict, modname=None):
5252
# If obj.name != key, it has already been suffixed.
5353
supers = []
5454
for sup in obj.super:
55-
if type(sup) is type(''):
55+
if isinstance(sup, str):
5656
sname = sup
5757
else:
5858
sname = sup.name

PythonLib/full/idlelib/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ def IsCoreBinding(self, virtualEvent):
578578
"""
579579
return ('<<'+virtualEvent+'>>') in self.GetCoreKeys()
580580

581-
# TODO make keyBindins a file or class attribute used for test above
581+
# TODO make keyBindings a file or class attribute used for test above
582582
# and copied in function below.
583583

584584
former_extension_events = { # Those with user-configurable keys.

PythonLib/full/idlelib/configdialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def create_widgets(self):
121121
self.winpage = WinPage(note)
122122
self.shedpage = ShedPage(note)
123123

124-
note.add(self.fontpage, text='Fonts/Tabs')
124+
note.add(self.fontpage, text=' Fonts ')
125125
note.add(self.highpage, text='Highlights')
126126
note.add(self.keyspage, text=' Keys ')
127127
note.add(self.winpage, text=' Windows ')

0 commit comments

Comments
 (0)