Skip to content

Commit ff05dae

Browse files
authored
Update pydoc_data to 3.14.5 (RustPython#7863)
1 parent 1da29ff commit ff05dae

2 files changed

Lines changed: 18 additions & 7 deletions

File tree

Lib/pydoc_data/module_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Autogenerated by Sphinx on Tue Apr 7 16:13:12 2026
1+
# Autogenerated by Sphinx on Sun May 10 13:21:26 2026
22
# as part of the release process.
33

44
module_docs = {

Lib/pydoc_data/topics.py

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Autogenerated by Sphinx on Tue Apr 7 16:13:12 2026
1+
# Autogenerated by Sphinx on Sun May 10 13:21:26 2026
22
# as part of the release process.
33

44
topics = {
@@ -6594,8 +6594,9 @@ def whats_on_the_telly(penguin=None):
65946594

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

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

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

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

6643-
4. otherwise, a reference to that value is stored in the local
6644+
4. otherwise, a reference to that value is stored in the current
66446645
namespace, using the name in the "as" clause if it is present,
66456646
otherwise using the attribute name
66466647

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

1074110742
Return a copy of the string with uppercase characters converted to
10742-
lowercase and vice versa. Note that it is not necessarily true that
10743-
"s.swapcase().swapcase() == s".
10743+
lowercase and vice versa. For example:
10744+
10745+
>>> 'Hello World'.swapcase()
10746+
'hELLO wORLD'
10747+
10748+
Note that it is not necessarily true that "s.swapcase().swapcase()
10749+
== s". For example:
10750+
10751+
>>> 'straße'.swapcase().swapcase()
10752+
'strasse'
10753+
10754+
See also "str.lower()" and "str.upper()".
1074410755

1074510756
str.title()
1074610757

0 commit comments

Comments
 (0)