branch | stable |
changeset 10487 | 7a6b5f85c3ab |
parent 10438 | e6dc44147234 |
child 10756 | cb681cc59a8d |
child 10789 | 1b45468d3deb |
10486:6b354a763617 | 10487:7a6b5f85c3ab |
---|---|
1341 return pid |
1341 return pid |
1342 finally: |
1342 finally: |
1343 if prevhandler is not None: |
1343 if prevhandler is not None: |
1344 signal.signal(signal.SIGCHLD, prevhandler) |
1344 signal.signal(signal.SIGCHLD, prevhandler) |
1345 |
1345 |
1346 def any(iterable): |
1346 try: |
1347 for i in iterable: |
1347 any, all = any, all |
1348 if i: |
1348 except NameError: |
1349 return True |
1349 def any(iterable): |
1350 return False |
1350 for i in iterable: |
1351 |
1351 if i: |
1352 def all(iterable): |
1352 return True |
1353 for i in iterable: |
1353 return False |
1354 if not i: |
1354 |
1355 return False |
1355 def all(iterable): |
1356 return True |
1356 for i in iterable: |
1357 if not i: |
|
1358 return False |
|
1359 return True |