Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | py: bytes(): Make sure we add values as bytes, not as chars. | Paul Sokolovsky | 2015-01-28 |
| | |||
* | py: Remove duplicated mp_obj_str_make_new function from objstrunicode.c. | Damien George | 2015-01-28 |
| | |||
* | py: Be more precise about unicode type and disabled unicode behaviour. | Damien George | 2015-01-28 |
| | |||
* | stmhal: Remove unnecessary #include "systick.h" from pyexec.c. | Damien George | 2015-01-28 |
| | | | | Makes pyexec.c more re-usable for other ports. | ||
* | moduzlib: Align out buffer to block size; shrink when decompression done. | Paul Sokolovsky | 2015-01-28 |
| | |||
* | moduzlib: Implement raw DEFLATE decoding support. | Paul Sokolovsky | 2015-01-28 |
| | |||
* | py: Add support for floats in mp_binary_{get,set}_val() | David Steinberg | 2015-01-27 |
| | | | | - This then provides support for floats in the struct package | ||
* | py: Specify unary/binary op name in TypeError error message. | Damien George | 2015-01-27 |
| | | | | | | | Eg, "() + 1" now tells you that __add__ is not supported for tuple and int types (before it just said the generic "binary operator"). We reuse the table of names for slot lookup because it would be a waste of code space to store the pretty name for each operator. | ||
* | py: Fix comparison of minus-zero long int. | Damien George | 2015-01-27 |
| | |||
* | moduzlib: Update to uzlib v1.2. | Paul Sokolovsky | 2015-01-26 |
| | | | | Actually manage size of the output buffer. | ||
* | qemu-arm: Disable try_finally1.py test (it fails randomly on Travis). | Damien George | 2015-01-25 |
| | |||
* | py: Check for NDEBUG using #ifdef rather than #if. | Damien George | 2015-01-25 |
| | | | | | Defining NDEBUG (to any value, even 0) disables debugging. Otherwise, if it's not defined, debugging is enabled. | ||
* | lib/mp-readline: Use simple VT100 commands to speed up line redraw. | Damien George | 2015-01-25 |
| | |||
* | Merge branch 'master' of github.com:micropython/micropython | Damien George | 2015-01-25 |
|\ | |||
| * | esp8266: Handle exceptions in callback. | Paul Sokolovsky | 2015-01-25 |
| | | |||
| * | esp8266: Add "esp" module with esp8266-specific "cooperative" networking. | Paul Sokolovsky | 2015-01-25 |
| | | | | | | | | | | So far implements .scan(lambda x: print(x)) function to scan for WiFi access points. | ||
* | | docs: Bump version to 1.3.9.v1.3.9 | Damien George | 2015-01-25 |
|/ | |||
* | stmhal: Disable MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE. | Damien George | 2015-01-24 |
| | | | | | | | It uses RAM and on pyboard we are generally tight on RAM, so disable this optimisation for general builds. If users need the speed then they can build their own version. Maybe in the future we can have different versions of pyboard firmware built with different tradeoffs. | ||
* | modffi: 's' (string) return type: handle NULL properly (return None). | Paul Sokolovsky | 2015-01-25 |
| | |||
* | py: Don't use anonymous unions, name them instead. | Damien George | 2015-01-24 |
| | | | | This makes the code (more) compatible with the C99 standard. | ||
* | py: Be more machine-portable with size of bit fields. | Damien George | 2015-01-24 |
| | |||
* | tests: Update float2int tests for new range classifications | David Steinberg | 2015-01-24 |
| | | | | | - Tests vary based on build configuration (32/64-bit and internal int type). - Added tests for exceptions raised on overflow of int type. | ||
* | py: Use float-to-int classifications for mp_obj_new_int_from_float() functions | David Steinberg | 2015-01-24 |
| | |||
* | py: Add float-to-int classification function | David Steinberg | 2015-01-24 |
| | |||
* | py: Fix issue in mpz_set_from_float() when mp_int_t is larger than float | David Steinberg | 2015-01-24 |
| | |||
* | py: Move mp_float_t related defines to misc.h | David Steinberg | 2015-01-24 |
| | |||
* | py: Fix segfault in namedtuple when name is a non-interned string | stijn | 2015-01-24 |
| | | | | | | | | - namedtuple was wrongly using MP_OBJ_QSTR_VALUE instead of mp_obj_str_get_qstr, so when passed a non-interned string it would segfault; fix this by using mp_obj_str_get_qstr - store the namedtuple field names as qstrs so it is not needed to use mp_obj_str_get_qstr everytime the field name has to be accessed. This also slighty increases performance when fetching attributes | ||
* | stmhal: Bug fix for usocket's accept and setsockopt methods. | Damien George | 2015-01-24 |
| | | | | | | | | | | accept might raise an exception, in which case the new socket is not fully created. It has a finaliser so will run close() method when GC'd. Before this patch close would try to close an invalid socket. Now fixed. setsockopt took address of stack value which became out of scope. Now fixed. | ||
* | binary: Rework array accessors. They work with native, not stdint types. | Paul Sokolovsky | 2015-01-24 |
| | |||
* | stream: readall(): Make sure there's a trailing NUL char. | Paul Sokolovsky | 2015-01-24 |
| | |||
* | tests: Fix typo in file_long_read3.py. | Paul Sokolovsky | 2015-01-23 |
| | |||
* | modujson: .loads(): Handle more whitespace characters. | Paul Sokolovsky | 2015-01-23 |
| | |||
* | tests: Add extra test for reading multiple of internal chunk size. | Paul Sokolovsky | 2015-01-23 |
| | |||
* | stream: Fix readall() implementation in respect to NUL terminator bytes. | Paul Sokolovsky | 2015-01-23 |
| | | | | After vstr refactor. Fixes #1084. | ||
* | tests: Add testcase for reading amounts bigger than buffer/chunk size. | Paul Sokolovsky | 2015-01-23 |
| | |||
* | objstr: Remove code duplication and unbreak Windows build. | Paul Sokolovsky | 2015-01-23 |
| | | | | | | | | There was really weird warning (promoted to error) when building Windows port. Exact cause is still unknown, but it uncovered another issue: 8-bit and unicode str_make_new implementations should be mutually exclusive, and not built at the same time. What we had is that bytes_decode() pulled 8-bit str_make_new() even for unicode build. | ||
* | objstr*: Use separate names for locals_dict of 8-bit and unicode str's. | Paul Sokolovsky | 2015-01-23 |
| | | | | To somewhat unbreak -DSTATIC="" compile. | ||
* | py: Allow asmx64 to compile with -Wsign-compare. | Damien George | 2015-01-22 |
| | | | | See issue #699. | ||
* | lib/libm: Add frexp and modf functions; use in stmhal; add tests. | Damien George | 2015-01-22 |
| | | | | Addresses issue #1081. | ||
* | stmhal: Make CC3K object static, so it's only registered once as NIC. | Damien George | 2015-01-22 |
| | |||
* | stmhal: Put mod_network_nic_list in global root-pointer state. | Damien George | 2015-01-22 |
| | | | | It needs to be scanned by GC. Thanks to Daniel Campora. | ||
* | py: Add comments for vstr_init and mp_obj_new_str. | Damien George | 2015-01-21 |
| | |||
* | py: Remove mp_obj_str_builder and use vstr instead. | Damien George | 2015-01-21 |
| | | | | | | | | | | | | With this patch str/bytes construction is streamlined. Always use a vstr to build a str/bytes object. If the size is known beforehand then use vstr_init_len to allocate only required memory. Otherwise use vstr_init and the vstr will grow as needed. Then use mp_obj_new_str_from_vstr to create a str/bytes object using the vstr memory. Saves code ROM: 68 bytes on stmhal, 108 bytes on bare-arm, and 336 bytes on unix x64. | ||
* | py: Add mp_obj_new_str_from_vstr, and use it where relevant. | Damien George | 2015-01-21 |
| | | | | | | | | This patch allows to reuse vstr memory when creating str/bytes object. This improves memory usage. Also saves code ROM: 128 bytes on stmhal, 92 bytes on bare-arm, and 88 bytes on unix x64. | ||
* | modffi: Support return values of mp_obj_t type. | Paul Sokolovsky | 2015-01-22 |
| | |||
* | builtinimport: Make sure that qstr is used properly to load frozen modules. | Paul Sokolovsky | 2015-01-21 |
| | |||
* | py: Implement proper re-raising in native codegen's finally handler. | Damien George | 2015-01-21 |
| | | | | | This allows an exception to propagate correctly through a finally handler. | ||
* | py: Implement __reversed__ slot. | Damien George | 2015-01-21 |
| | | | | Addresses issue #1073. | ||
* | stmhal: Add support for FEZ Cerb40 II board from ghielectronics.com. | Dave Hylands | 2015-01-21 |
| | |||
* | docs: Fix frequency info for DAC.triangle. | Damien George | 2015-01-20 |
| |