Minor update to PEP 515.

This commit is contained in:
Georg Brandl 2016-02-11 09:11:20 +01:00
parent 88fccc3d5c
commit 412e1ffb35
1 changed files with 14 additions and 14 deletions

View File

@ -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
==========