Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
naming conventions
#3
I guess the argument for 'removeprefix' was consistency with 'expandtabs' or 'splitlines' or 'startswith'. It is a special case for the 'str' class due to method names that date back to python's early history. Note that pep 8 was only created in july 2001, ten years after Python's first release.
Reply


Messages In This Thread
naming conventions - by mvolkmann - Sep-28-2020, 02:56 PM
RE: naming conventions - by snippsat - Sep-28-2020, 03:39 PM
RE: naming conventions - by Gribouillis - Sep-28-2020, 04:11 PM
RE: naming conventions - by mvolkmann - Sep-28-2020, 04:41 PM
RE: naming conventions - by Gribouillis - Sep-28-2020, 05:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  naming entities(city abbreviations) tirumalaramakrishna 1 1,278 May-06-2022, 11:22 AM
Last Post: jefsummers
  Python Style and Naming Variables rsherry8 3 2,259 Jun-07-2021, 09:30 PM
Last Post: deanhystad
  Naming the file as time and date. BettyTurnips 3 3,069 Jan-15-2021, 07:52 AM
Last Post: BettyTurnips
  Question about naming variables in class methods sShadowSerpent 1 2,045 Mar-25-2020, 04:51 PM
Last Post: ndc85430
  Dyanmically Naming Files ovidius 3 2,582 Jan-29-2020, 02:44 PM
Last Post: buran
  naming images adding to number within multiple functions Bmart6969 0 1,950 Oct-09-2019, 10:11 PM
Last Post: Bmart6969
  Sub: Python-3: Better Avoid Naming A Variable As list ? adt 9 4,109 Aug-29-2019, 08:15 AM
Last Post: adt
  Naming convention advice Alfalfa 5 3,384 Jul-21-2018, 11:47 AM
Last Post: Larz60+
  Python Naming Error: List not defined Intelligent_Agent0 1 14,351 Mar-13-2018, 08:34 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020