Skip to content

Commit ad7d448

Browse files
committed
+ imaginary literals and marshal
1 parent d7d6f0e commit ad7d448

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

peps/pep-0812.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,10 @@ commetee don't discuss mathematical arguments for the imaginary types at all
225225
Specification
226226
=============
227227

228-
All imaginary values could be represented as ``x*1j``, where ``x`` is some
229-
:external+py3.14:class:`float` number. So, strictly speaking, we need only
230-
one such object, the imaginary unit ``1j``, with a property
228+
The :external+py3.14:ref:`imaginary literals <imaginary>` create instances of
229+
imaginary type, all values of this type could be represented as ``x*1j``, where
230+
``x`` is some :external+py3.14:class:`float` number. So, strictly speaking, we
231+
need only one such object, the imaginary unit ``1j``, with a property
231232

232233
.. code::
233234
@@ -356,7 +357,10 @@ Imaginary and complex numbers will have disinct string representations:
356357
repr(x*1j) = (repr(x) + "j").replace(".0j", "j")
357358
358359
Parsing strings with the integer "negative zero" in real part (i.e. ``"-0+1j"``
359-
or ``"(-0+1j)"``) will be deprecated.
360+
or ``"(-0+1j)"``) will be deprecated in the :external+py3.14:class:`complex`
361+
constructor.
362+
363+
The :mod:`marshal` will be adjusted to support new type.
360364

361365

362366
New C-API

0 commit comments

Comments
 (0)