summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* tests/basics: Add memoryview test for big ints.Damien George2017-05-09
|
* tests/basics: Update array test for big-int with lL typecodes.Damien George2017-05-09
|
* py/binary: Handle storing big-ints to all arrays types.Damien George2017-05-09
| | | | | | | Prior to this patch only 'q' and 'Q' type arrays could store big-int values. With this patch any big int that is stored to an array is handled by the big-int implementation, regardless of the typecode of the array. This allows arrays to work with all type sizes on all architectures.
* py/modio: resource_stream: Implement "package" param handling.Paul Sokolovsky2017-05-06
|
* unix/main: Don't allow to specify too small heap size.Paul Sokolovsky2017-05-06
| | | | | | | | | This will lead to crash like: FATAL: uncaught NLR 80a5420 On x86_32, the minimum heap size is smaller, but not 2 times, so just use value which works for x86_64.
* stmhal: Convert all module and method tables to use MP_ROM macros.Damien George2017-05-06
|
* tests: Move super-as-local test from cpydiff to basic tests.Damien George2017-05-06
| | | | It's now possible to use the name "super" as a local variable.
* tests/micropython: Add test for int.from_bytes with many zero bytes.Damien George2017-05-06
|
* py/objint: In int.from_bytes, only create big-int if really needed.Damien George2017-05-06
| | | | | This patch ensures that int.from_bytes only creates a big-int if necessary, by checking the value for a small-int overflow as it's being parsed.
* lib/utils/pyexec: Update event-driven REPL to match non-event REPL.Tom Collins2017-05-05
| | | | | Don't print dupe ">>> " prompt when starting event-driven REPL. Clear incomplete line in transition from raw to friendly REPL.
* esp8266: Change default settings to mount flash at root dir.Damien George2017-05-05
|
* tests/extmod: Add some more VFS tests.Damien George2017-05-05
|
* tests/extmod: Add more tests for VFS FAT.Damien George2017-05-05
|
* extmod/vfs: Allow a VFS to be mounted at the root dir.Damien George2017-05-05
| | | | | | | This patch allows mounting of VFS objects right at the root directory, eg os.mount(vfs, '/'). It still allows VFS's to be mounted at a path within the root, eg os.mount(vfs, '/flash'), and such mount points will override any paths within a VFS that is mounted at the root.
* tools/upip: Upgrade to 1.2.Paul Sokolovsky2017-05-05
| | | | Memory optimizations and error handling improvements.
* tests/cpydiff/core_function_unpacking: Fill in workaround.Paul Sokolovsky2017-05-04
|
* tests/cpydiff/core_import_split_ns_pkgs: Test for split namespace packages.Paul Sokolovsky2017-05-03
|
* tests/cpydiff/core_import_path: Test showing difference in package.__path__.Paul Sokolovsky2017-05-03
|
* msvc: Workaround parser bug in older MSBuild versionsstijn2017-05-03
| | | | | | | | Versions prior to v14.0 have a bug in parsing item functions when used within a condition: https://github.com/Microsoft/msbuild/issues/368. Since commit [db9c2e3] this results in an error when building MicroPython with for example VS2013. Fix this by creating an intermediate property.
* mpy-cross: Fix compiler detection for including windows/fmode.cstijn2017-05-03
| | | | | | | | | | | fmode.c should only be included for builds targetting 'pure' windows, i.e. msvc or mingw builds but not when using msys or cygwin's gcc (see #2298). Just checking if the OS is windows and UNAME doesn't have msys stil leaves the gate open for builds with cygwin's gcc since UNAME there is e.g. CYGWIN_NT-6.1-WOW. Fix this by checking for 'mingw' explicitly in the compiler version; both gcc and clang have the -dumpmachine flag so the check should be ok for all platforms.
* tests/io/resource_stream: Add test for uio.resource_stream().Paul Sokolovsky2017-05-03
|
* py/modio: Implement uio.resource_stream(package, resource_path).Paul Sokolovsky2017-05-03
| | | | | | | | | | | | | | The with semantics of this function is close to pkg_resources.resource_stream() function from setuptools, which is the canonical way to access non-source files belonging to a package (resources), regardless of what medium the package uses (e.g. individual source files vs zip archive). In the case of MicroPython, this function allows to access resources which are frozen into the executable, besides accessing resources in the file system. This is initial stage of the implementation, which actually doesn't implement "package" part of the semantics, just accesses frozen resources from "root", or filesystem resource - from current dir.
* zephyr/main: Remove superfluous include.Paul Sokolovsky2017-05-02
|
* zephyr/mpconfigport.h: Enable line number information for scripts.Paul Sokolovsky2017-05-02
|
* tests/cpydiff/core_import_prereg: Fill in cause and workaround.Paul Sokolovsky2017-05-02
|
* tests/cpydiff/core_function_userattr: Clarify, fill in cause and workaround.Paul Sokolovsky2017-05-02
|
* tests/cpydiff/core_arguments: Fill in cause/workaround.Paul Sokolovsky2017-05-02
|
* zephyr/Makefile: Add debugserver Zephyr target.Paul Sokolovsky2017-05-02
|
* unix/main: Ignore SIGPIPE signal, instead make EPIPE arrive.Paul Sokolovsky2017-05-01
| | | | | | | | | | | | | Do not raise SIGPIPE, instead return EPIPE. Otherwise, e.g. writing to peer-closed socket will lead to sudden termination of MicroPython process. SIGPIPE is particularly nasty, because unix shell doesn't print anything for it, so the above looks like completely sudden and silent termination for unknown reason. Ignoring SIGPIPE is also what CPython does. Note that this may lead to problems using MicroPython scripts as pipe filters, but again, that's what CPython does. So, scripts which want to follow unix shell pipe semantics (where SIGPIPE means "pipe was requested to terminate, it's not an error"), should catch EPIPE themselves.
* extmod/modlwip: ioctl POLL: Fix handling of peer closed socket.Paul Sokolovsky2017-05-01
| | | | | | | | | | Peer-closed socket is both readable and writable: read will return EOF, write - error. Without this poll will hang on such socket. Note that we don't return POLLHUP, based on argumentation in http://www.greenend.org.uk/rjk/tech/poll.html that it should apply to deeper disconnects, for example for networking, that would be link layer disconnect (e.g. WiFi went down).
* windows/README: Add a note about stack usage for msvcstijn2017-05-01
| | | | | Add information as discussed in #2927 to the readme to make the easier to discover.
* windows/README: Fix some typos and grammarstijn2017-05-01
|
* tools/upip: Upgrade to 1.1.6, supports commented lines in requirements.txt.Paul Sokolovsky2017-05-01
|
* tools/mpy-tool: Make work if run from another directory.Paul Sokolovsky2017-05-01
| | | | By making sure we don't add relative paths to sys.path.
* msvc: Rebuild all qstrs when mpconfig headers are modifiedstijn2017-04-30
| | | | | | | | Make qstr generation depend on modifications in mpconfigport.h, mpconfig.h and makeqstrdata.py and if any of those change scan all source files for qstrs again since they might have changed (for example typcially when enabling new features in mpconfig.h). This fixes #2982 for msvc builds.
* msvc: Do not define DEBUG for debug buildsstijn2017-04-30
| | | | | It is not used anywhere and causes a warning about redefinition because it is used in modutimeq.c
* py: Cleanup use of global DEBUG preprocessor definitionstijn2017-04-30
| | | | | | | | | The standard preprocessor definition to differentiate debug and non-debug builds is NDEBUG, not DEBUG, so don't rely on the latter: - just delete the use of it in objint_longlong.c as it has been stale code for years anyway (since commit [c4029e5]): SUFFIX isn't used anywhere. - replace DEBUG with MICROPY_DEBUG_NLR in nlr.h: it is rarely used anymore so can be off by default
* windows/README: Convert to Markdown.Paul Sokolovsky2017-04-30
|
* extmod/modlwip: getaddrinfo: Allow to accept all 6 standard params.Paul Sokolovsky2017-04-29
| | | | But warn if anything else but host/port is passed.
* extmod/moduselect: Implement ipoll() method for alloc-free polling.Paul Sokolovsky2017-04-29
| | | | Similar to the implementation added to unix port module previously.
* extmod/moduselect: Refactor towards introduction of poll.ipoll().Paul Sokolovsky2017-04-29
| | | | This follows previous refactor made to unix/moduselect.
* extmod/moduselect: Convert to MP_ROM_QSTR and friends.Paul Sokolovsky2017-04-29
|
* qemu-arm, stmhal: Remove dummy memory.h since it's no longer needed.Damien George2017-04-28
| | | | | extmod/crypto-algorithms/sha256.c was recently fixed so that it didn't include this header.
* examples/hwapi: Add config for Zephyr port of 96Boards Carbon.Paul Sokolovsky2017-04-27
|
* extmod/crypto-algorithms/sha256: Remove non-standard memory.h header.Paul Sokolovsky2017-04-27
|
* zephyr/modusocket: Add dummy makefile() implementation.Paul Sokolovsky2017-04-27
|
* zephyr/modusocket: sock_read: Check socket status only at the start of packet.Paul Sokolovsky2017-04-26
| | | | | Otherwise, if we already have a packet in progress, finish it first, before check "peer closed" status.
* zephyr/modusocket: Add read/readline/readinto stream methods.Paul Sokolovsky2017-04-26
|
* zephyr/modusocket: Refactor recv() into stream read() method.Paul Sokolovsky2017-04-26
|
* unix: Remove obsolete MICROPY_FATFS macro.Damien George2017-04-26
| | | | | It doesn't do anything. The VFS feature is controlled by MICROPY_VFS and the FatFS driver, by MICROPY_VFS_FAT (which are set in mpconfigport.h).