Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] what do you mean by do until exception?

[DiscordArchive] what do you mean by do until exception?

[DiscordArchive] what do you mean by do until exception?

Pages (5): Previous 1 2 3 4 5 Next
rektbyfaith
Administrator
0
02-11-2018, 11:11 AM
#31
Archived author: Skarn • Posted: 2018-02-11T11:11:27.410000+00:00
Original source

But I am not sure
rektbyfaith
02-11-2018, 11:11 AM #31

Archived author: Skarn • Posted: 2018-02-11T11:11:27.410000+00:00
Original source

But I am not sure

rektbyfaith
Administrator
0
02-11-2018, 11:11 AM
#32
Archived author: Amaroth • Posted: 2018-02-11T11:11:29.237000+00:00
Original source

```
it = iter(sequence)
while True:
try:
value = it.next()
except StopIteration:
break
print(value)
```
rektbyfaith
02-11-2018, 11:11 AM #32

Archived author: Amaroth • Posted: 2018-02-11T11:11:29.237000+00:00
Original source

```
it = iter(sequence)
while True:
try:
value = it.next()
except StopIteration:
break
print(value)
```

rektbyfaith
Administrator
0
02-11-2018, 11:12 AM
#33
Archived author: Skarn • Posted: 2018-02-11T11:12:32.505000+00:00
Original source

ah, yes, you are right
rektbyfaith
02-11-2018, 11:12 AM #33

Archived author: Skarn • Posted: 2018-02-11T11:12:32.505000+00:00
Original source

ah, yes, you are right

rektbyfaith
Administrator
0
02-11-2018, 11:12 AM
#34
Archived author: Skarn • Posted: 2018-02-11T11:12:45.585000+00:00
Original source

that is indeed called by generator objects
rektbyfaith
02-11-2018, 11:12 AM #34

Archived author: Skarn • Posted: 2018-02-11T11:12:45.585000+00:00
Original source

that is indeed called by generator objects

rektbyfaith
Administrator
0
02-11-2018, 11:13 AM
#35
Archived author: Skarn • Posted: 2018-02-11T11:13:00.327000+00:00
Original source

don't get me wrong though, you don't have to do that shit every time you make a for loop.
rektbyfaith
02-11-2018, 11:13 AM #35

Archived author: Skarn • Posted: 2018-02-11T11:13:00.327000+00:00
Original source

don't get me wrong though, you don't have to do that shit every time you make a for loop.

rektbyfaith
Administrator
0
02-11-2018, 11:13 AM
#36
Archived author: Amaroth • Posted: 2018-02-11T11:13:01.292000+00:00
Original source

Its weird design. There is probably some reason for that though
rektbyfaith
02-11-2018, 11:13 AM #36

Archived author: Amaroth • Posted: 2018-02-11T11:13:01.292000+00:00
Original source

Its weird design. There is probably some reason for that though

rektbyfaith
Administrator
0
02-11-2018, 11:13 AM
#37
Archived author: Skarn • Posted: 2018-02-11T11:13:35.854000+00:00
Original source

Yes, python ideology. The concept is that it is better ask for forgiveness (catch an exception) than ask for permission
rektbyfaith
02-11-2018, 11:13 AM #37

Archived author: Skarn • Posted: 2018-02-11T11:13:35.854000+00:00
Original source

Yes, python ideology. The concept is that it is better ask for forgiveness (catch an exception) than ask for permission

rektbyfaith
Administrator
0
02-11-2018, 11:14 AM
#38
Archived author: Skarn • Posted: 2018-02-11T11:14:34.448000+00:00
Original source

but you can really only face those exceptions yourself, if you do async programming with generator objects
rektbyfaith
02-11-2018, 11:14 AM #38

Archived author: Skarn • Posted: 2018-02-11T11:14:34.448000+00:00
Original source

but you can really only face those exceptions yourself, if you do async programming with generator objects

rektbyfaith
Administrator
0
02-11-2018, 11:14 AM
#39
Archived author: Skarn • Posted: 2018-02-11T11:14:45.723000+00:00
Original source

usual for loop handles that by itself
rektbyfaith
02-11-2018, 11:14 AM #39

Archived author: Skarn • Posted: 2018-02-11T11:14:45.723000+00:00
Original source

usual for loop handles that by itself

rektbyfaith
Administrator
0
02-11-2018, 11:20 AM
#40
Archived author: Amaroth • Posted: 2018-02-11T11:20:38.880000+00:00
Original source

Yep, but I personally don't call an end of collection being exceptional occurence
rektbyfaith
02-11-2018, 11:20 AM #40

Archived author: Amaroth • Posted: 2018-02-11T11:20:38.880000+00:00
Original source

Yep, but I personally don't call an end of collection being exceptional occurence

Pages (5): Previous 1 2 3 4 5 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)