Message288802
Proposed patches deprecate the "x" keyword parameter in int(), bool() and float() and the "sequence" keyword parameter in list() and tuple(). Name "x" is meaningless, and name "sequence" is misleading (any iterable is accepted, not just sequence). The documentation uses name "iterable" for list() and tuple().
It is never documented that any of these parameters are accepted by keywords. There was only a test for int(), but it was added just for increasing coverity, not to test intended behavior. Does this mean that the support of keyword arguments can be removed without deprecation?
The general idea got preliminary approval from Guido (https://mail.python.org/pipermail/python-ideas/2017-March/044959.html). |
|
Date |
User |
Action |
Args |
2017-03-02 14:54:04 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, vstinner |
2017-03-02 14:54:04 | serhiy.storchaka | set | messageid: <1488466444.68.0.907226246044.issue29695@psf.upfronthosting.co.za> |
2017-03-02 14:54:04 | serhiy.storchaka | link | issue29695 messages |
2017-03-02 14:54:04 | serhiy.storchaka | create | |
|