Skip to main content
Code Review

Return to Answer

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

So, even though I agree with @Dair that size would be "saffer" as _size (but hey, we’re all responsible adults around here we’re all responsible adults around here), I strongly disagree with the size property. You should implement it as a __len__ method and use it like:

So, even though I agree with @Dair that size would be "saffer" as _size (but hey, we’re all responsible adults around here), I strongly disagree with the size property. You should implement it as a __len__ method and use it like:

So, even though I agree with @Dair that size would be "saffer" as _size (but hey, we’re all responsible adults around here), I strongly disagree with the size property. You should implement it as a __len__ method and use it like:

replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/
Source Link

So, even though I agree with @Dair @Dair that size would be "saffer" as _size (but hey, we’re all responsible adults around here), I strongly disagree with the size property. You should implement it as a __len__ method and use it like:

So, even though I agree with @Dair that size would be "saffer" as _size (but hey, we’re all responsible adults around here), I strongly disagree with the size property. You should implement it as a __len__ method and use it like:

So, even though I agree with @Dair that size would be "saffer" as _size (but hey, we’re all responsible adults around here), I strongly disagree with the size property. You should implement it as a __len__ method and use it like:

Improved an example
Source Link
def __iter__(self):
 node = self.first
 forwhile _node inis range(not None: # No self._size):size involved, yay
 yield node.value
 node = node.after
def __iter__(self):
 node = self.first
 for _ in range(self._size):
 yield node.value
 node = node.after
def __iter__(self):
 node = self.first
 while node is not None: # No self.size involved, yay
 yield node.value
 node = node.after
Source Link
Loading
lang-py

AltStyle によって変換されたページ (->オリジナル) /