Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Remove sentence about older versions.
  • Loading branch information
ZeroIntensity committed Jan 29, 2026
commit bc735a667211c6ef8b2946441927a65261a51438
5 changes: 2 additions & 3 deletions Doc/c-api/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,8 @@
expensive operation to this macro. Instead, store the result as a
variable and then pass it.
Comment thread
ZeroIntensity marked this conversation as resolved.

*type* is the type of the expression. In modern versions of Python, this is
unused and only kept for backwards compatibility. Historically, *type* was
used to cast *integer*.
*type* is unused and only kept for backwards compatibility. Historically,
*type* was used to cast *integer*.

.. versionchanged:: 3.1

Expand Down Expand Up @@ -336,7 +335,7 @@
Cast *value* to type *smaller* from type *larger*, validating that no
information was lost.

On release builds of Python, this is roughly equivalent to

Check warning on line 338 in Doc/c-api/intro.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

c:identifier reference target not found: value [ref.identifier]

Check warning on line 338 in Doc/c-api/intro.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

c:identifier reference target not found: smaller [ref.identifier]
:c:expr:`(smaller) value` (in C++, ``static_cast<smaller>(value)`` will be
Comment thread
ZeroIntensity marked this conversation as resolved.
Outdated
used instead).

Expand Down
Loading