Python Forum
Search a List of Dictionaries by Key-Value Pair; Return Dictionary/ies Containing KV
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Search a List of Dictionaries by Key-Value Pair; Return Dictionary/ies Containing KV
#18
I'd say that the point of the quote is that the consistency and complaince with the style guide is not always the most important, the title emphasizes that.

(May-28-2019, 02:03 PM)buran Wrote: It's up to them to decide if they want to follow or not. In long term (if they stick with the language) they will find PEP8 is de-facto considered community standard (i.e. if they follow it's more likely to be consistent when contribute to new and existing projects, than not)
I completely agree, I think that is why your first post mentioning this matter was very useful, the 2nd post on the other side was kinda putting pressure on people (ignoring the points they made) trying to make them foolishly follow the suggested style.

PEP8 Wrote:Some other good reasons to ignore a particular guideline:
When applying the guideline would make the code less readable
Readability is subjective, at least 1 of the guys mentioned that it would be less readable to him if he didn't use "== True". Seeing that it would be wise to inform the guy about potential negatives of this approach (e.g. writing code that is less readable to other people), rather than telling him "do like we do".
Reply


Messages In This Thread
RE: Search a List of Dictionaries by Key-Value Pair; Return Dictionary/ies Containing KV - by michalmonday - May-28-2019, 02:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Sort a list of dictionaries by the only dictionary key Calab 2 652 Apr-29-2024, 04:38 PM
Last Post: Calab
  How do I calculate a ratio from 2 numbers and return an equivalent list of about 1000 Pleiades 8 15,817 Jan-05-2024, 08:30 PM
Last Post: sgrey
  Dictionary in a list bashage 2 608 Dec-27-2023, 04:04 PM
Last Post: deanhystad
  filtering a list of dictionary as per given criteria jss 5 757 Dec-23-2023, 08:47 AM
Last Post: Gribouillis
  Search Excel File with a list of values huzzug 4 1,309 Nov-03-2023, 05:35 PM
Last Post: huzzug
  Access list of dictionaries britesc 4 1,121 Jul-26-2023, 05:00 AM
Last Post: Pedroski55
  How to add list to dictionary? Kull_Khan 3 1,056 Apr-04-2023, 08:35 AM
Last Post: ClaytonMorrison
  search a list or tuple for a specific type ot class Skaperen 8 1,994 Jul-22-2022, 10:29 PM
Last Post: Skaperen
  check if element is in a list in a dictionary value ambrozote 4 2,045 May-11-2022, 06:05 PM
Last Post: deanhystad
  Dictionary from a list failed, help needed leoahum 7 2,054 Apr-28-2022, 06:59 AM
Last Post: buran

Forum Jump:

User Panel Messages

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