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
# The following almost immediately raises an assertion error under nogil | |
# Under cpython it completes all 1000 iterations no problem | |
from threading import Thread | |
import time | |
positions = [] | |
def race(n): |
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
[flake8] | |
select = | |
# pycodestyle | |
E, W | |
# pyflakes | |
# F | |
ignore = | |
E501 # line length | |
E502 # redundant backslashes | |
E111, E114, E115, E116, E117, E121, E122, E124, E125, E126, E127, E128, E129, E131 # indents |
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
nop +0 | |
nop +79 | |
jmp +41 | |
acc +6307 | |
acc +9565 | |
acc +14967 | |
jmp +9530 | |
nop +12397 | |
jmp +6843 | |
jmp +7400 |