Python - Slash (/) as a Function Parameter???

Veröffentlicht am: 15 Mai 2021
auf dem Kanal: codevev
586
14

#Python #Shorts

Did you see that weird slash (/) in the list of parameters a function accepts in Python?
You may not have yet since it's only for Python 3.8 and above right now. But its purpose is to not allow any named arguments. So you can't pass in arguments by name, you have to put them in the right positions for each argument on the left of a slash (/). Anything after a slash (/) can be named though!
Any ideas what this can be used for?
-------------------------------------------------------------------------------------
Links:
Blog: https://evgenyurubkov.com
Twitter:   / evgenyurubkov  
Instagram:   / evgenyurubkov  
Youtube:    / @codevev  


Auf dieser Seite können Sie das Online-Video Python - Slash (/) as a Function Parameter??? mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer codevev 15 Mai 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 586 Mal angesehen und es wurde von 14 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!