mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 15:00:18 +00:00
move self.a, self.b to separate lines
This commit is contained in:
parent
6a47f51f98
commit
964677f782
Regular → Executable
+2
-1
@@ -164,7 +164,8 @@ body{counter-reset:h1 6}
|
||||
self.max = max
|
||||
|
||||
<a> def __iter__(self): <span class=u>③</span></a>
|
||||
self.a, self.b = 0, 1
|
||||
self.a = 0
|
||||
self.b = 1
|
||||
return self
|
||||
|
||||
<a> def __next__(self): <span class=u>④</span></a>
|
||||
|
||||
Reference in New Issue
Block a user