Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Inline fast special cases for "abs(PyLong)" when the argument is ↵ | Stefan Behnel | 2018-03-25 | 1 | -1/+2 |
| | | | | non-negative or small. | ||||
* | Fix exttype inheritance from builtin bytearray type. | Stefan Behnel | 2018-02-16 | 1 | -0/+2 |
| | | | | Closes #2106. | ||||
* | Issue #2042: add optimized versions of set.remove() and set.discard() | Antoine Pitrou | 2017-12-16 | 1 | -1/+4 |
| | |||||
* | Remove dead comment. | Stefan Behnel | 2017-09-12 | 1 | -1/+0 |
| | |||||
* | Return a signed value for abs(int). | Robert Bradshaw | 2017-08-24 | 1 | -6/+15 |
| | | | | | | | | | | | This means abs(MIN_INT) has the "overflow" behavior of returning MIN_INT as in C, but avoids surprising unsigned arithmetic for all other values. To preserve Python compatibility, abs(x) dissallows integer inference for x just like the other potentially overflowing arithmetic operators. This fixes Github Issue #1837 | ||||
* | Raise TypeError for non-string hasattr. | Robert Bradshaw | 2017-05-18 | 1 | -2/+3 |
| | | | | This fixes #1702. | ||||
* | Merge pull request #1648 from da-woods/cmplx_abs | scoder | 2017-05-06 | 1 | -17/+17 |
|\ | | | | | Now uses specialised functions for complex abs | ||||
| * | Reduced duplication of code in builtin integer functions | da-woods | 2017-04-09 | 1 | -21/+10 |
| | | |||||
| * | Reduced duplication in complex abs builtin calls | da-woods | 2017-04-09 | 1 | -16/+9 |
| | | |||||
| * | Now uses specialised functions for complex abs | da-woods | 2017-03-28 | 1 | -3/+21 |
| | | | | | | | | | | | | | | | | | | Also doesn't require gil for int and long abs. Notes: * I don't think the correct utility code is loaded for complex abs (but it should be loaded by the complex data types hopefully) * Would probably be worth making double and float abs not require gil | ||||
* | | include missing utility code when raising StopAsyncIteration | Stefan Behnel | 2017-05-06 | 1 | -5/+4 |
|/ | | | | Closes #1692 | ||||
* | Disable set.update() optimization due to Python incompatibility. | Robert Bradshaw | 2017-03-27 | 1 | -2/+3 |
| | | | | set.update() is actually variadic. Fixes #1645. | ||||
* | Declare Exception as a builtin type. | Robert Bradshaw | 2016-09-30 | 1 | -0/+3 |
| | | | | This allows extending from it with a cdef class. Closes #724. | ||||
* | Test fixes. | Robert Bradshaw | 2016-07-28 | 1 | -1/+1 |
| | |||||
* | Allow old_style_globals to be set via a directive. | Robert Bradshaw | 2016-07-27 | 1 | -4/+4 |
| | |||||
* | implement 'async for' loop statement (PEP 492) | Stefan Behnel | 2015-05-25 | 1 | -0/+7 |
| | |||||
* | optimise set.update() | Stefan Behnel | 2015-05-21 | 1 | -0/+2 |
| | |||||
* | reimplement ord() to make its (C long) return value and input argument type ↵ | Stefan Behnel | 2015-03-29 | 1 | -1/+20 |
| | | | | (bytes/unicode/char/unichar) available to the type analysis and avoid redundant round-trips into Python space | ||||
* | add some more builtin names | Stefan Behnel | 2014-12-17 | 1 | -0/+5 |
| | |||||
* | use explicit relative imports everywhere and enable absolute imports by default | Stefan Behnel | 2014-06-17 | 1 | -5/+7 |
| | |||||
* | Remove obsolete utility code. | Robert Bradshaw | 2014-02-22 | 1 | -12/+4 |
| | |||||
* | move set compatibility helpers into Builtins.c | Stefan Behnel | 2014-01-10 | 1 | -46/+1 |
| | |||||
* | optimise dict.has_key() | Stefan Behnel | 2013-12-31 | 1 | -0/+1 |
| | |||||
* | disable redundant exception checks for optimised builtins | Stefan Behnel | 2013-12-28 | 1 | -0/+1 |
| | |||||
* | handle Py2 compatibility case bytearray.append(pychar) | Stefan Behnel | 2013-12-27 | 1 | -2/+0 |
| | | | | | --HG-- extra : amend_source : f3b7f004f905c791e6ced2a5b27fffa21f9ceb08 | ||||
* | inline bytearray.append() | Stefan Behnel | 2013-12-24 | 1 | -1/+4 |
| | |||||
* | let SliceNode know it returns a slice instance | Stefan Behnel | 2013-12-16 | 1 | -1/+2 |
| | |||||
* | fix return type of repr(): CPython guarantees to return str | Stefan Behnel | 2013-12-07 | 1 | -1/+1 |
| | |||||
* | also optimise basestring.join() since we now infer this type in a couple of ↵ | Stefan Behnel | 2013-12-07 | 1 | -1/+4 |
| | | | | places | ||||
* | optimise str/bytes.join() and infer the result type; improve type inference ↵ | Stefan Behnel | 2013-12-07 | 1 | -5/+15 |
| | | | | for called builtins | ||||
* | refactor duplicated code | Stefan Behnel | 2013-12-07 | 1 | -11/+14 |
| | |||||
* | support 'bytearray' in the same way as 'bytes', starting with Py2.6 | Stefan Behnel | 2013-11-02 | 1 | -1/+3 |
| | |||||
* | extend semantics of 'basestring' typed variables to represent exactly ↵ | Stefan Behnel | 2013-10-06 | 1 | -1/+2 |
| | | | | bytes/str/unicode but no subtypes | ||||
* | mark bytearray() and complex() as returning an instance of their type | Stefan Behnel | 2013-08-30 | 1 | -2/+3 |
| | |||||
* | optimize __debug__ flag | Stefan Behnel | 2013-08-29 | 1 | -0/+3 |
| | |||||
* | minor cleanup, use set for efficient name lookup | Stefan Behnel | 2013-07-27 | 1 | -2/+3 |
| | |||||
* | move getattr() utility code from Builtins.c to ObjectHandling.c as it deals ↵ | Stefan Behnel | 2013-07-26 | 1 | -1/+1 |
| | | | | with object protocols and is not a required replacement | ||||
* | optimise list.extend() | Stefan Behnel | 2013-07-26 | 1 | -0/+2 |
| | |||||
* | inline normal case of getattr(o,n) | Stefan Behnel | 2013-04-11 | 1 | -3/+5 |
| | | | | | --HG-- extra : rebase_source : 9a5bbb4f08a0eb5be71afd48d9ad5566d8a39efc | ||||
* | optimise isinstance(obj, basestring) and map basestring to unicode in Py3 | Stefan Behnel | 2013-03-02 | 1 | -0/+1 |
| | |||||
* | automatically replace calls to builtin.__contains__() with the corresponding ↵ | Stefan Behnel | 2013-02-22 | 1 | -7/+14 |
| | | | | C-API function and enable optimisation of unbound builtin methods for subtypes | ||||
* | automatically convert dict.iter*() and dict.view*() methods to ↵ | Stefan Behnel | 2013-02-20 | 1 | -0/+12 |
| | | | | .keys/values/items() in Py3 for typed dicts | ||||
* | move dict.*() method implementations from Optimize.c to Builtin.c | Stefan Behnel | 2013-02-20 | 1 | -3/+3 |
| | |||||
* | fix long-standing bug that dict.items() etc. returned lists also in Py3 | Stefan Behnel | 2013-02-15 | 1 | -6/+9 |
| | |||||
* | inline PyList_Append() a bit more | Stefan Behnel | 2013-02-15 | 1 | -1/+2 |
| | |||||
* | fix build | Stefan Behnel | 2013-02-09 | 1 | -5/+6 |
| | |||||
* | externalise some utility code functions | Stefan Behnel | 2013-02-09 | 1 | -49/+4 |
| | |||||
* | externalise some utility code functions | Stefan Behnel | 2013-02-09 | 1 | -46/+5 |
| | |||||
* | disable incorrect optimisation for set.discard() | Stefan Behnel | 2013-02-04 | 1 | -2/+3 |
| | |||||
* | optimise abs(long long) | Stefan Behnel | 2013-01-21 | 1 | -0/+28 |
| |