Issue 22250: unittest lowercase methods (original) (raw)

Created on 2014-08-22 14:57 by simonzack, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (7)
msg225673 - (view) Author: Simon Zack (simonzack) Date: 2014-08-22 14:57
The python unittest module currently uses camel case. This feels rather inconsistent with the rest of the python library, which is in lower case and follows PEP8. Would it be a good idea to add lower-case aliases, and possibly deprecate the camel case methods in the future?
msg225698 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2014-08-22 19:28
We tried going down this path with the Threading module in the python3 transiontion, and it was a mess. I don't think we are going to do it for any other module.
msg225702 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2014-08-22 19:59
assertlessequal looks non-readable and assert_less_equal is two characters longer.
msg225703 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2014-08-22 20:07
This has been already proposed and rejected in the past. It's not something that is going to happen (at least until Python 4 or 5).
msg370170 - (view) Author: Ram Rachum (cool-RR) * Date: 2020-05-28 08:05
I see it's been 6 years since the last comment here. I think it's important to revisit these kind of decisions once in a while. Maybe now the time is ripe for a change? We could do it backward compatibility with a long deprecation schedule. Ezio: You said this was proposed and rejected. Can you link to the discussion? I couldn't find it.
msg370172 - (view) Author: Rémi Lapeyre (remi.lapeyre) * Date: 2020-05-28 08:12
See for example https://mail.python.org/archives/list/python-ideas@python.org/thread/4HE2GFL27LGBSHGWOBDOOBPEULC52U4D/#RC3QWQUX6VP56K2WXSMRZ5IGNAUBXKRI
msg370175 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2020-05-28 08:21
https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds
History
Date User Action Args
2022-04-11 14:58:07 admin set github: 66446
2020-05-28 08:21:11 serhiy.storchaka set messages: +
2020-05-28 08:12:11 remi.lapeyre set nosy: + remi.lapeyremessages: +
2020-05-28 08:05:28 cool-RR set nosy: + cool-RRmessages: +
2014-08-22 20:07:36 ezio.melotti set status: open -> closednosy: + ezio.melottimessages: + resolution: rejectedstage: resolved
2014-08-22 19:59:17 serhiy.storchaka set nosy: + serhiy.storchakamessages: +
2014-08-22 19:28:06 r.david.murray set nosy: + r.david.murraymessages: +
2014-08-22 14:57:28 simonzack create