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 is located inside a fake numpy, and could allow "import numpy" | |
to work invisibly on both Python and PyPy. | |
Not quite sure how to get files to find it. | |
In any case, NumPyPy is only a partial implementation of NumPy, | |
so it's probably not ready for unintended/untested/automatic use. | |
""" | |
import sys | |
# Delete current directory from module search path |
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
float_t = r"[+-]?(\d*\.\d+|\d+\.?)(e{1,2}[+-]?\d+)?" |
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
import re | |
units = { | |
'day': 'd', | |
'hour': 'h', | |
'minute': 'm', | |
'second': 's', | |
} | |
# Matches only valid data (I hope) |
NewerOlder