25.03.20 21:54, Ethan Furman пише:
Serhiy had the idea of having Enum._convert also modify the __str__ and
__repr__ of newly created enumerations to display the module name instead
of the enumeration name (https://bugs.python.org/msg325007):
--> socket.AF_UNIX
==>
--> print(socket.AF_UNIX)
On Sat, Mar 28, 2020 at 01:20:11PM +0200, Serhiy Storchaka wrote:
> 2. In many case it is more convenient to have a repr in the form
> Color.RED or even just RED instead of .
+1
--
Steven
___
Python-Dev mailing list -- python-dev@python.org
To unsu
What do you think of adding a Version History section which lists most
important changes since your proposed the first version of the PEP? I
recall:
* Version 3: don't accept tuple
* Version 2: Rename cutprefix/cutsuffix to removeprefix/removesuffix,
accept tuple
* Version 1: initial version
For
On 3/26/2020 9:10 PM, Ethan Furman wrote:
First off, thank you for being so patient -- trying to champion a PEP
can be exhausting.
On 03/26/2020 05:22 PM, Dennis Sweeney wrote:
So now if I understand the dilemma up to this point we have:
Benefits of writing ``return self`` in the PEP:
a -
Sure -- I can add in a short list of those major changes.
Best,
Dennis
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message