if day_of_month_in_format and not year_in_format:
import warnings
warnings.warn("""\
-Parsing dates involving a day of month without a year specified is ambiguious
+Parsing dates involving a day of month without a year specified is ambiguous
and fails to parse leap day. The default behavior will change in Python 3.15
to either always raise an exception or to use a different default year (TBD).
To avoid trouble, add a specific year to the input & format.
- hexdigest(): Like digest() except the digest is returned as a string
of double length, containing only hexadecimal digits.
- copy(): Return a copy (clone) of the hash object. This can be used to
- efficiently compute the digests of datas that share a common
+ efficiently compute the digests of data that share a common
initial substring.
For example, to obtain the digest of the byte string 'Nobody inspects the
(Same would be true for any non-Aqua macOS with 8.5, but now none?)
Can be deleted when we require 8.6 or it is known always used.
-Future: Derivitives of Python logo should be submitted for approval.
+Future: Derivatives of Python logo should be submitted for approval.
PSF Trademark Working Group / Committee psf-trademarks@python.org
https://www.python.org/community/logos/ # Original files
https://www.python.org/psf/trademarks-faq/
"""
# TODO: = dict(sorted([(v-event, keys), ...]))?
keyBindings={
- # vitual-event: list of key events.
+ # virtual-event: list of key events.
'<<copy>>': ['<Control-c>', '<Control-C>'],
'<<cut>>': ['<Control-x>', '<Control-X>'],
'<<paste>>': ['<Control-v>', '<Control-V>'],
def ApplyKeybindings(self):
"""Apply the virtual, configurable keybindings.
- Alse update hotkeys to current keyset.
+ Also update hotkeys to current keyset.
"""
# Called from configdialog.activate_config_changes.
self.mainmenu.default_keydefs = keydefs = idleConf.GetCurrentKeySet()
Extensions are not required to define menu entries for all the events they
implement. (They are also not required to create keybindings, but in that
-case there must be empty bindings in cofig-extensions.def)
+case there must be empty bindings in config-extensions.def)
Here is a partial example from zzdummy.py:
@contextlib.contextmanager
def _temp_path(dir: tempfile.TemporaryDirectory):
"""
- Wrap tempfile.TemporyDirectory to return a pathlib object.
+ Wrap tempfile.TemporaryDirectory to return a pathlib object.
"""
with dir as result:
yield pathlib.Path(result)
# N.b. Here be dragons: the ordering of these is different than
# the header fields, and it's really easy to get it wrong since
- # naturally-occuring zips that use all 3 are >4GB
+ # naturally-occurring zips that use all 3 are >4GB
if file_size == MAX_UINT32:
file_size = values.pop(0)
if data_size == MAX_UINT32: