This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: unittest lowercase methods
Type: Stage: resolved
Components: Library (Lib) Versions: Python 3.4
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: cool-RR, ezio.melotti, r.david.murray, remi.lapeyre, serhiy.storchaka, simonzack
Priority: normal Keywords:

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:07adminsetgithub: 66446
2020-05-28 08:21:11serhiy.storchakasetmessages: + msg370175
2020-05-28 08:12:11remi.lapeyresetnosy: + remi.lapeyre
messages: + msg370172
2020-05-28 08:05:28cool-RRsetnosy: + cool-RR
messages: + msg370170
2014-08-22 20:07:36ezio.melottisetstatus: open -> closed

nosy: + ezio.melotti
messages: + msg225703

resolution: rejected
stage: resolved
2014-08-22 19:59:17serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg225702
2014-08-22 19:28:06r.david.murraysetnosy: + r.david.murray
messages: + msg225698
2014-08-22 14:57:28simonzackcreate