Skip to content

Update singly_linked_list.py (#1593) #1

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

Merged
merged 1 commit into from
Nov 26, 2019

Conversation

HelloError92
Copy link
Owner

  • Update singly_linked_list.py

printing current.data rather than node address in repr for a more readable print statement

  • eval(repr(c)) == c

The output of __repr__() should look like a valid Python expression that could be used to recreate an object with the same value.

https://docs.python.org/3.4/reference/datamodel.html#object.__repr__

  • += --> +

* Update singly_linked_list.py

printing current.data rather than node address in __repr__ for a more readable print statement

* eval(repr(c)) == c

The output of `__repr__()` _should look like a valid Python expression that could be used to recreate an object with the same value_.

https://docs.python.org/3.4/reference/datamodel.html#object.__repr__

* += --> +
@HelloError92 HelloError92 merged commit c6951e0 into HelloError92:master Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants