Python Forum
i want to use type= as a function/method keyword argument
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i want to use type= as a function/method keyword argument
#9
(Nov-04-2022, 02:23 AM)deanhystad Wrote: A single leading underscore is the convention (PEP8) for marking an attribute as internal use only.
it's not really an attribute; it's merely a variable used within one file. there is no attribute for it to coflict with. i made it leading underscore because it was global and could be exported when importing the module. the underscore prevents that.
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
RE: i want to use type= as a function/method keyword argument - by Skaperen - Nov-06-2022, 04:11 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is changing processes by using match with type function impossible? cametan 1 157 May-30-2024, 02:16 PM
Last Post: cametan
  Django "Unexpected Keyword Argument 'min_value'" AstralWeeks 0 345 Mar-27-2024, 04:56 AM
Last Post: AstralWeeks
  mutable argument in function definition akbarza 1 568 Dec-15-2023, 02:00 PM
Last Post: deanhystad
  Find a specific keyword after another keyword and change the output sgtmcc 5 966 Oct-05-2023, 07:41 PM
Last Post: deanhystad
  determine parameter type in definition function akbarza 1 666 Aug-24-2023, 01:46 PM
Last Post: deanhystad
Information How to take url in telegram bot user input and put it as an argument in a function? askfriends 0 1,216 Dec-25-2022, 03:00 PM
Last Post: askfriends
  match type with value in csv parsing function vinci 2 1,393 Jan-21-2022, 12:19 PM
Last Post: Larz60+
Question How to pass a method as argument in an another method? anilanvesh 6 2,869 Sep-30-2021, 10:18 PM
Last Post: deanhystad
  Regex - Pass Flags as a function argument? muzikman 6 3,781 Sep-06-2021, 03:43 PM
Last Post: muzikman
  TypeError: __init__() got an unexpected keyword argument 'value' Anldra12 7 23,000 May-11-2021, 06:35 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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