Commits

Show all
Author Commit Message Labels Comments Date
cgerum
merge default
Branches
numpy-ufunc-trig
cgerum
numpy: Added inf and -inf to test of arctan ufunc
Branches
numpy-ufunc-trig
cgerum
numpy: Added ufuncs for arcsin, arccos, arctan
Branches
numpy-ufunc-trig
Alex Gaynor
Preallocate the result for str.__repr__ more appropriately, use len(self) + 2, which will be correct in the common case of "no special characgters". Alex
Alex Gaynor
Rollback the use of functools here, I want to be sure I didn't break stuff.
Alex Gaynor
Make this function do what was intended.
Armin Rigo
Clarify.
Alex Gaynor
merged upstream.
Alex Gaynor
use functools.wrap here, should maintain some more of the functions attributes this way.
Armin Rigo
merge heads: support @elidable functions that raise
Armin Rigo
Put @elidable on calls to identityhash() only.
Armin Rigo
Backed out changeset a3001c18a307: oups, that was wrong. @elidable turns the function call into a residual call.
Armin Rigo
Add a number of @elidable, now that they can raise.
Armin Rigo
A reasonable fix: "ll_int_str() -> string" is pure, but if left in the trace, we should check that it doesn't raise MemoryError.
Armin Rigo
Support elidable functions that can raise.
Armin Rigo
Add a test (it was already passing, thanks to optimizeopt).
Armin Rigo
Remove a guard_no_exception() at the start of the loop too.
Armin Rigo
The recent rewrite of crash_in_jit() lost the original traceback in non-translated versions.
Armin Rigo
Test and comment for elidable functions that can raise.
Antonio Cuni
don't raise a warning if the restype is not set, and add a test to check that we hit the fastpath even in that case
Antonio Cuni
if the automatic conversion from str to c_wchar_p does not work, fallback to the slow path
Antonio Cuni
add one passing assert
Antonio Cuni
free the temp buffers created by the _ffi function. Also, thanks to the new automatic string conversion in _ffi, passing a python string is now supported by the fast path
Antonio Cuni
we cannot immediately free the temp buffers that we allocate to convert strings, because the caller needs to have a chance to play with them in case they have been returned; instead, the temp buffers are owned by the function itself, and needs to be explicitly freed
Armin Rigo
Missing import.
Alex Gaynor
Move the memcpy function to rffi.py.
Alex Gaynor
Use the new context manager allocators, much nicer. Also update a comment.
Alex Gaynor
merged upstream
Alex Gaynor
Introduce StringBuilder.append_charpsize, which takes a char* and a size and adds that to the builder, then use this in a few plcaes.
Justin Peel
Small speed-up for stream output buffers
  1. Prev
  2. Next