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
# Install specified Python version. | |
# Install only if: | |
# Our current matrix entry uses this Python version AND | |
# Python version is not already available. | |
# from https://raw.githubusercontent.com/matthew-brett/multibuild/11a389d78892cf90addac8f69433d5e22bfa422a/install_python.ps1 | |
$py_exe = "${env:PYTHONPATH}\Python.exe" | |
if ( [System.IO.File]::Exists($py_exe) ) { | |
echo "$py_exe exists" | |
exit 0 |
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
# Decision trees in python using recursion and eval. | |
TREE_SIMPLE = { | |
"expression": 'state["x"] > 1', | |
True: {"result": "b"}, | |
False: {"result": "a"}, | |
} | |
def decide(state, node): | |
return ( |
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
""" | |
Manual test for pygame #2100 | |
Press F to quit and restart the screen | |
""" | |
import pygame | |
#pygame.init() # <- problem doesn't happen at all with this |
OlderNewer