Skip to content

python 3.0+ Ellipsis #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Sep 13, 2018 · 2 comments
Closed

python 3.0+ Ellipsis #96

ghost opened this issue Sep 13, 2018 · 2 comments
Milestone

Comments

@ghost
Copy link

ghost commented Sep 13, 2018

python2:

>>> Ellipsis
Ellipsis

python3:

>>> ...
Ellipsis
>>> Ellipsis
Ellipsis

... and pass

>>> def test():
               ...  # or pass
>>> a = [1, 2, 3, 4, 5]
>>> a.append(a)
>>> print(a)
[1, 2, 3, 4, 5, [...]]
@satwikkansal
Copy link
Owner

Hey, thanks for sharing.
There's an example that somewhat covers this, but this would be nice to add in to the explanation section of it. Will be doing it in the next update.

@satwikkansal satwikkansal added this to the 3.0 milestone Dec 4, 2018
satwikkansal added a commit that referenced this issue Jun 8, 2019
@satwikkansal
Copy link
Owner

@ghost Added, thanks for the suggestion :) You can check the above commit and let me know if something's incorrect or missing.

satwikkansal added a commit that referenced this issue Oct 28, 2019
muscliary pushed a commit to muscliary/wtfpython that referenced this issue Sep 12, 2023
muscliary pushed a commit to muscliary/wtfpython that referenced this issue Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant