- 26 Feb, 2015 9 commits
-
-
Kevin Modzelewski authored
The file.py test looked at the README.md file, but the tester caches the CPython output and when I changed the README it didn't invalidate the cache. The tester knows to invalidate the cache if the test file itself changes, so instead of using README as the test target, use itself since that dependency is already tracked.
-
Kevin Modzelewski authored
I don't think this has been touched in quite a while and some parts were getting out of date.
-
Kevin Modzelewski authored
Implement delattr()
-
Kevin Modzelewski authored
add small unicode encoding test
-
Marius Wachtler authored
-
Marius Wachtler authored
-
Kevin Modzelewski authored
unicode strings are allowed to be used as attribute names, but only if they convert cleanly to ascii. unicode and str need to compare equal to each other and have the same hash value if the unicode is ascii-compatible and has the same value as the str.
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Well, fix one of them and work around another. They both come from having an extension class subclass from a builtin class, since in CPython they can expect the tp_* slots to be set, but in Pyston those are just wrappers around the Python functions and then things can get in infinite recursion.
-
- 25 Feb, 2015 20 commits
-
-
Kevin Modzelewski authored
Add compvars and rewriting support for GET_ITER nodes
-
Kevin Modzelewski authored
Implement str.translate() with delete chars
-
Kevin Modzelewski authored
This commit set adds the unicode type, as well as the ability to parse unicode literals such as u"\u0180". There's still a lot more that needs to be added; for instance, we don't currently support printing unicode values to stdout.
-
Kevin Modzelewski authored
Currently storing + passing unicode strings around as UTF-encoded bytestrings in std::string; maybe it'd be nice to have the type system show that these are actually unicode strings, or to use the CPython internal representation (UCS4?) to reduce the number of encodings/decodings.
-
Kevin Modzelewski authored
and with the fixes to get that working, all the tests pass!
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Marius Wachtler authored
If the type analysis successfully determines that the __iter__() and __hasnext__() methods we can now replace them with direct calls to the destination. Else we create a patchpoint and do a rewrite.
-
Marius Wachtler authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
This also forced us to make our exception handling more compatible in a couple places, as well as fix some bugs that weren't getting exposed. There might be some benefit to implementing the exceptions ourselves (get to use faster Pyston interfaces, make them GC-aware) but maybe we can get these benefits but still use the 2kloc exceptions.c file.
-
Kevin Modzelewski authored
These are the unmodified versions to try to make it easier to see our Pyston modifications.
-
Marius Wachtler authored
-
Kevin Modzelewski authored
Implement long.__int__()
-
Marius Wachtler authored
-
Kevin Modzelewski authored
We already have getset support, but it takes function pointers to Pyston-style functions. CAPI types can specify tp_getset which is almost the same thing, but the function pointers are to CAPI-style functions. Add the ability to do either, try to make it more explicit about which one is being chosen, and change the existing getters/setters to be more consistent with being Pyston-style functions.
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
- Apparently you can manually create instancemethod objects - set __doc__ on more things
-
Kevin Modzelewski authored
"import socket" does not quite work yet
-
Kevin Modzelewski authored
-
- 24 Feb, 2015 11 commits
-
-
Kevin Modzelewski authored
Rebase llvm to r230300
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
cmake fix gitsubmodules update
-
Marius Wachtler authored
Had to change the comdat handling otherwise the executable would crash on startup. Cause is that publicize is renaming symbols but keeps the old comdat around, the linker would then replace the implementation of the symbol with a call to 0. One may need to run 'make llvm_up' if you are using the cmake build and see a error, caused by debuginfo beeing renamed to debuginfodwarf.
-
Kevin Modzelewski authored
fix closure ordering bug for locals()
-
Travis Hance authored
-
Kevin Modzelewski authored
The repl swallows all exceptions, so we weren't counting what we thought.
-
Daniel Agar authored
as custom command OUTPUT because it will be deleted by clean!
-
Kevin Modzelewski authored
Also, add simple script to see how many of the Lib/ libraries we can import
-
Kevin Modzelewski authored
sys.version_info (just as tuple, not as "version_info" object) Change test that depends on what fds are open Fix threading bug in tester The tester now runs in self-hosted mode! Try $ make check SELF_HOST=1
-
Kevin Modzelewski authored
-