Message231584
Preparing a presentation about Python Magic methods I found something weird: (Python 3.4)
"""
>>> help(int.__lt__)
Help on wrapper_descriptor:
__lt__(self, value, /) <- THIS!!
Return self<value.
"""
I am amused about the "/)" suffix in the signature. It happens to all magic methods. |
|
Date |
User |
Action |
Args |
2014-11-24 00:48:14 | jcea | set | recipients:
+ jcea, georg.brandl, ncoghlan, larry, python-dev, zach.ware, serhiy.storchaka, yselivanov |
2014-11-24 00:48:14 | jcea | set | messageid: <1416790094.34.0.757029082611.issue20530@psf.upfronthosting.co.za> |
2014-11-24 00:48:14 | jcea | link | issue20530 messages |
2014-11-24 00:48:14 | jcea | create | |
|