Python Forum
a suggestion for a feature change
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a suggestion for a feature change
#6
dict has .pop(index) and .pop(index,default)

list only has .pop(index) my suggestion is to add .pop(index,default)

but is it worth having?  i have run into cases where i almost coded it because i often use dict.pop(index,default). otoh, working around the lack of it was not as hard as it would be if dict didn't have. so i don't know.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
a suggestion for a feature change - by Skaperen - Jul-30-2017, 08:26 AM
RE: a suggestion for a feature change - by Larz60+ - Jul-30-2017, 03:19 PM
RE: a suggestion for a feature change - by DeaD_EyE - Jul-30-2017, 04:19 PM
RE: a suggestion for a feature change - by Skaperen - Jul-31-2017, 02:56 AM
RE: a suggestion for a feature change - by nilamo - Aug-02-2017, 09:06 PM
RE: a suggestion for a feature change - by Skaperen - Aug-03-2017, 07:09 AM
RE: a suggestion for a feature change - by DeaD_EyE - Aug-03-2017, 08:19 AM
RE: a suggestion for a feature change - by Skaperen - Aug-04-2017, 03:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  IDE suggestion JackMack118 5 3,321 Nov-21-2019, 11:35 PM
Last Post: JackMack118
  Need Suggestion for a Good Python IDE Aprogrammer 6 4,095 Aug-14-2018, 02:22 PM
Last Post: Aprogrammer

Forum Jump:

User Panel Messages

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