On 6/30/2018 7:27 AM, Abdur-Rahmaan Janhangeer wrote:
normally, naming methods in python is given by
method_name
but i see some cases where this is not followed in the std lib
ex : dict.fromkeys
should it not have been
from_keys?
No. _ is an option, not a requirement and usually not used
On Sat, 30 Jun 2018 15:27:35 +0400, Abdur-Rahmaan Janhangeer wrote:
> normally, naming methods in python is given by
>
> method_name
>
> but i see some cases where this is not followed in the std lib
>
> ex : dict.fromkeys
>
> should it not have been
>
> from_keys?
Python is about 25 years
normally, naming methods in python is given by
method_name
but i see some cases where this is not followed in the std lib
ex : dict.fromkeys
should it not have been
from_keys?
Abdur-Rahmaan Janhangeer
https://github.com/Abdur-rahmaanJ
--
https://mail.python.org/mailman/listinfo/python-list