forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stackless issue python#82: PEP-8 fixes and some IDE-warning fixes
This change does not change the code in any way. The change formats all tests and some demos according to PEP-8. Additionally I fixed some missing imports of stackles.test_*-functions, moved imports to the top of the file, removed some duplicate imports and added some magic comments to silence my IDE (Eclipse Pydev). https://bitbucket.org/stackless-dev/stackless/issues/82 (grafted from 43fcfbe017a1456c7285819eee6a2c4984e20045)
- Loading branch information
Anselm Kruis
committed
Aug 24, 2016
1 parent
f3a3d97
commit 04a33e3
Showing
40 changed files
with
975 additions
and
514 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
import sys | ||
pr = 1 | ||
|
||
|
||
def f(x): | ||
if x % 1000 == 0 and pr: print x | ||
if x % 1000 == 0 and pr: | ||
print x | ||
if x: | ||
f(x-1) | ||
if x % 1000 == 0 and pr: print x | ||
f(x - 1) | ||
if x % 1000 == 0 and pr: | ||
print x | ||
|
||
# these are deprecated | ||
##sys.enable_stackless(1) | ||
##print "slicing interval =", sys.getslicinginterval() | ||
# sys.enable_stackless(1) | ||
# print "slicing interval =", sys.getslicinginterval() | ||
|
||
sys.setrecursionlimit(sys.maxint) | ||
sys.setrecursionlimit(min(sys.maxint, 2**31 - 1)) | ||
f(100000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.