These are chat archives for dropbox/pyston
@tjhance I thought of a potential project -- it'd be nice if we could have some ability to guard in the middle of a patchpoint (ie after mutations)
ex for the callattr-of-descriptor case, but also for binops and calling constructors
why does this apply to binops and constructors?
binbuiltin function) not implemented. I am tring to implement it.
intBin, could I convert decimal to binary manually? Or does there has a better way?
_PyInt_Formatexisted in Python 2.7.3. Didn't check other version.
_PyInt_Formatto Pyston with some modification. It will be similar as
_PyLong_Format. Is that fine?
test/integration/virtualenv/) and install the library inside it with
pip. If the source code needs patches I checkout the github source directly.
from_cpythondirectory. Next you have to integrate it into the build system
file(GLOB_RECURSE STDMODULE_SRCS Modules
// Pyston change
import astis failing for you, you can try editing src/runtime/builtin_modules/ast.cpp
__version__it's enough to get the import to work :P
// Uncommenting this makes `import ast` work, which may or may not be desired. // For now it seems like making the import fail is better than having the module not work properly. // ast_module->giveAttr("__version__", boxInt(82160));
from _ast import __version__