Minor update to PEP 515.
This commit is contained in:
parent
88fccc3d5c
commit
412e1ffb35
28
pep-0515.txt
28
pep-0515.txt
|
@ -64,20 +64,6 @@ For floating-point and complex literals::
|
|||
imagnumber: (floatnumber | intpart) ("j" | "J")
|
||||
|
||||
|
||||
Further Considerations
|
||||
======================
|
||||
|
||||
This PEP currently only proposes changing the literal syntax. The following
|
||||
extensions are open for discussion:
|
||||
|
||||
* Allowing underscores in string arguments to the ``Decimal`` constructor. It
|
||||
could be argued that these are akin to literals, since there is no Decimal
|
||||
literal available (yet).
|
||||
|
||||
* Allowing underscores in string arguments to ``int()``, ``float()`` and
|
||||
``complex()``.
|
||||
|
||||
|
||||
Alternative Syntax
|
||||
==================
|
||||
|
||||
|
@ -147,6 +133,20 @@ A preliminary patch that implements the specification given above has been
|
|||
posted to the issue tracker. [11]_
|
||||
|
||||
|
||||
Open Questions
|
||||
==============
|
||||
|
||||
This PEP currently only proposes changing the literal syntax. The following
|
||||
extensions are open for discussion:
|
||||
|
||||
* Allowing underscores in string arguments to the ``Decimal`` constructor. It
|
||||
could be argued that these are akin to literals, since there is no Decimal
|
||||
literal available (yet).
|
||||
|
||||
* Allowing underscores in string arguments to ``int()`` with base argument 0,
|
||||
``float()`` and ``complex()``.
|
||||
|
||||
|
||||
References
|
||||
==========
|
||||
|
||||
|
|
Loading…
Reference in New Issue