+ 8
How do you use Ellipsis in python?
Ellipsis is what we can call a strange thing in python. If dont now what's Ellipsis take a look at this code : https://code.sololearn.com/cgdDwwN2K9KG/?ref=app After some research on internet, I've found that Ellipsis has not specific use in Python so you can do what you want do do with it. for example i saw that some people use Ellipsis as a specific return value in Python. My question is how do you use this object in Python ? What do you do with it ?
1 Réponse
+ 7
NB: I've also seen that some people use the Ellipsis notation ... instead of the pass keyword. like this :
def func():
...
to say they are going to fill the body of the function later.