[New-bugs-announce] [issue36923] Implemented __str__ for zip and map objects
Augustin PROLONGEAU
report at bugs.python.org
Wed May 15 05:02:38 EDT 2019
New submission from Augustin PROLONGEAU <augustin.pro at gmail.com>:
I think this would help development a lot.
Below an example of how i would see the function written for zip:
def __str__(self):
return str((*self,))
# And for __repr__ function
def __repr__(self):
return f'zip{str(self)}'
----------
messages: 342556
nosy: AugPro
priority: normal
severity: normal
status: open
title: Implemented __str__ for zip and map objects
type: enhancement
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36923>
_______________________________________
More information about the New-bugs-announce
mailing list