aboutsummaryrefslogtreecommitdiff
path: root/py
AgeCommit message (Collapse)Author
2014-03-23Merge pull request #365 from xbe/tgammaDamien George
py/builtinmath.c: use tgamma() instead of gamma().
2014-03-23py/builtinmath.c: use tgamma() instead of gamma().xbe
gamma() is now deprecated.
2014-03-22Fix OS X detection.xbe
Switch to checking for the __APPLE__ and __MACH__ macros.
2014-03-23Merge pull request #364 from pfalcon/mpz-unbreak-int-longDamien George
objint_mpz: Quick&dirty implementation of bitwise operations.
2014-03-23py: Improve dir(): extract names from type->methods table.Damien George
2014-03-23objint_mpz: Quick&dirty implementation of bitwise operations.Paul Sokolovsky
Made solely to unbreak int-long.py test which in turn uncovered thinko with implementation of inplace ops. On mpz level, bitwise ops implemented only for same-sign numbers, and are not efficient (unconditional calling of mpn_cmp() is apparently superfluous).
2014-03-22Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-03-22py: Remove some unnecessary exception objects.Damien George
2014-03-22objgenerator: Add comments for latest mp_obj_gen_instance_t refactors.Paul Sokolovsky
2014-03-22py: Add 'object' object.Damien George
2014-03-22py: Add function to convert long int to float.Damien George
2014-03-22py: Fix types in new math functions.Damien George
2014-03-22py: Fix int -> machine_uint_t.Damien George
2014-03-22Merge pull request #360 from rjdowdall/masterDamien George
Fixed some math functions and added more exceptions.
2014-03-22Fixed floor division on mp ints and small ints. Added a floordivide test case.Rachel Dowdall
2014-03-22Merge pull request #359 from rjdowdall/masterDamien George
Fixed some math functions and added more exceptions.
2014-03-22Fixed floor division on mp ints and small ints. Added a floordivide test case.Rachel Dowdall
2014-03-22Fixed modulo operator on ints and mp ints to agree with python. Added ↵Rachel Dowdall
intdivmod.c and tests/basics/modulo.py.
2014-03-22objgenerator: Implement .throw() method to throw exceptions into generator.Paul Sokolovsky
2014-03-22objgenerator: Implement throwing exceptions out of generator.Paul Sokolovsky
2014-03-22objgenerator: Keep exception stack within generator object, like value stack.Paul Sokolovsky
This is required to properly handle exceptions across yields.
2014-03-22Added exception hierarchy except for OSError and UnicodeError (requires ↵Rachel Dowdall
arguments). Comment out the errors that aren't needed if memory becomes an issue.
2014-03-22Fixed broken math functions that return bool and added some more.Rachel Dowdall
2014-03-22Merge remote-tracking branch 'upstream/master'Rachel Dowdall
2014-03-22showbc: Dump YIELD_FROM.Paul Sokolovsky
2014-03-22py: Make 'bytes' be a proper type, support standard constructor args.Paul Sokolovsky
2014-03-22py: Make 'str' be a proper type, support standard constructor args.Paul Sokolovsky
2014-03-22objstr: Switch from in-object string data to ptr to separate memory area.Paul Sokolovsky
This is pre-requisite for having efficient implementation of str<->bytes conversion, and having that efficient is required with unfortunare str vs bytes dichotomy in Python3.
2014-03-21Disable some math functions until they work correctly.Damien George
2014-03-21py: Put back proper ValueError for badly parsed integers.Damien George
2014-03-21py: Make str.[r]partition more efficient.Damien George
2014-03-21Merge pull request #351 from xbe/str-partitionDamien George
Implement str.partition and add tests for it.
2014-03-21py: Improve mp_parse_num_integer; make it self contained.Damien George
2014-03-21py: Allow 'complex()' to take a string as first argument.Damien George
2014-03-21py: Implement parsing of infinity and nan for floats.Damien George
2014-03-21str.(r)partition: factor out duplicate code.xbe
Switch str.rpartition to search from left to right. Factor the duplicate code into one helper function.
2014-03-21Implement str.rpartition and add tests for it.xbe
2014-03-21Implement str.partition and add tests for it.xbe
2014-03-20Added ZeroDivisionError to float division.Rachel Dowdall
2014-03-20Added various simple functions to math module.Rachel Dowdall
2014-03-20Added various simple functions to math module.Rachel Dowdall
2014-03-20py: Fix int-longlong binary operations.Damien George
2014-03-20py: Allow hashing of functions and tuples.Damien George
2014-03-20py: Add math.e constant.Damien George
2014-03-20py: Add mpz modulo operation.Damien George
2014-03-19py: Add comment about bugs in objint_longlong.c.Damien George
2014-03-19py: Fix bug in mpz int, where small int is on lhs, mpz on rhs.Damien George
2014-03-17objstr.c: Replace size_t with machine_uint_t.xbe
2014-03-17py: Clean up includes.xbe
Remove unnecessary includes. Add includes that improve portability.
2014-03-16Implement support for __str__ and __repr__ special methods in classes.Paul Sokolovsky