Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/pydoc_data/module_docs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Autogenerated by Sphinx on Tue Apr 7 16:13:12 2026
# Autogenerated by Sphinx on Sun May 10 13:21:26 2026
# as part of the release process.

module_docs = {
Expand Down
23 changes: 17 additions & 6 deletions Lib/pydoc_data/topics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Autogenerated by Sphinx on Tue Apr 7 16:13:12 2026
# Autogenerated by Sphinx on Sun May 10 13:21:26 2026
# as part of the release process.

topics = {
Expand Down Expand Up @@ -6594,8 +6594,9 @@ def whats_on_the_telly(penguin=None):

1. find a module, loading and initializing it if necessary

2. define a name or names in the local namespace for the scope where
the "import" statement occurs.
2. define a name or names in the current namespace for the scope where
the "import" statement occurs, just as an assignment statement
would (including "global" and "nonlocal" semantics).

When the statement contains multiple clauses (separated by commas) the
two steps are carried out separately for each clause, just as though
Expand Down Expand Up @@ -6640,7 +6641,7 @@ def whats_on_the_telly(penguin=None):

3. if the attribute is not found, "ImportError" is raised.

4. otherwise, a reference to that value is stored in the local
4. otherwise, a reference to that value is stored in the current
namespace, using the name in the "as" clause if it is present,
otherwise using the attribute name

Expand Down Expand Up @@ -10739,8 +10740,18 @@ class is used in a class pattern with positional arguments, each
str.swapcase()

Return a copy of the string with uppercase characters converted to
lowercase and vice versa. Note that it is not necessarily true that
"s.swapcase().swapcase() == s".
lowercase and vice versa. For example:

>>> 'Hello World'.swapcase()
'hELLO wORLD'

Note that it is not necessarily true that "s.swapcase().swapcase()
== s". For example:

>>> 'straße'.swapcase().swapcase()
'strasse'

See also "str.lower()" and "str.upper()".

str.title()

Expand Down
Loading