+ 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 ?

1st May 2017, 3:53 PM
Glozi30
Glozi30 - avatar
1 Odpowiedź
+ 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.
1st May 2017, 3:55 PM
Glozi30
Glozi30 - avatar