Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Naming convention advice
#5
Thanks for the tips. I already looked over the code with flake and pep8 utilities. I don't need advices about the code itself, but I am rather wondering about the labeling of private methods. To make it more clear, my question is does it make sense to mark all methods as private when there are no public methods? It seems like it would not give much useful informations. Or maybe there is a convention for this particular case? Unfortunatly after reading through PEP8 I did not found a definitive answer.

As for the CamelCase, as I wrote earlier I know that the snake_case is usually recommended, but as I work with Qt framework, consistency is preferred. As written in PEP8:

Quote:New modules and packages (including third party frameworks) should be written to these standards, but where an existing library has a different style, internal consistency is preferred.
Reply


Messages In This Thread
Naming convention advice - by Alfalfa - Jul-20-2018, 11:52 PM
RE: Naming convention advice - by Larz60+ - Jul-21-2018, 12:58 AM
RE: Naming convention advice - by Alfalfa - Jul-21-2018, 02:26 AM
RE: Naming convention advice - by Larz60+ - Jul-21-2018, 03:58 AM
RE: Naming convention advice - by Alfalfa - Jul-21-2018, 11:37 AM
RE: Naming convention advice - by Larz60+ - Jul-21-2018, 11:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  naming entities(city abbreviations) tirumalaramakrishna 1 1,357 May-06-2022, 11:22 AM
Last Post: jefsummers
  Python Style and Naming Variables rsherry8 3 2,349 Jun-07-2021, 09:30 PM
Last Post: deanhystad
  Naming the file as time and date. BettyTurnips 3 3,220 Jan-15-2021, 07:52 AM
Last Post: BettyTurnips
  naming conventions mvolkmann 4 2,297 Sep-28-2020, 05:51 PM
Last Post: Gribouillis
  Question about naming variables in class methods sShadowSerpent 1 2,122 Mar-25-2020, 04:51 PM
Last Post: ndc85430
  Dyanmically Naming Files ovidius 3 2,666 Jan-29-2020, 02:44 PM
Last Post: buran
  naming images adding to number within multiple functions Bmart6969 0 2,012 Oct-09-2019, 10:11 PM
Last Post: Bmart6969
  Sub: Python-3: Better Avoid Naming A Variable As list ? adt 9 4,310 Aug-29-2019, 08:15 AM
Last Post: adt
  Python Naming Error: List not defined Intelligent_Agent0 1 14,432 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