Re: naming methods in python (std lib)

2018-06-30 Thread Terry Reedy
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

Re: naming methods in python (std lib)

2018-06-30 Thread Steven D'Aprano
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

naming methods in python (std lib)

2018-06-30 Thread Abdur-Rahmaan Janhangeer
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