1. 05 Apr, 2014 1 commit
    • Damien George's avatar
      py: Replace stream_p with *stream_p in mp_obj_type_t. · 27e735fd
      Damien George authored
      This is to reduce ROM usage.  stream_p is used in file and socket types
      only (at the moment), so seems a good idea to make the protocol
      functions a pointer instead of the actual structure.
      It saves 308 bytes of ROM in the stmhal/ port, 928 in unix/.
  2. 29 Mar, 2014 1 commit
  3. 26 Mar, 2014 1 commit
  4. 15 Feb, 2014 2 commits
    • Damien George's avatar
      Implement proper exception type hierarchy. · c5966128
      Damien George authored
      Each built-in exception is now a type, with base type BaseException.
      C exceptions are created by passing a pointer to the exception type to
      make an instance of.  When raising an exception from the VM, an
      instance is created automatically if an exception type is raised (as
      opposed to an exception instance).
      Exception matching (RT_BINARY_OP_EXCEPTION_MATCH) is now proper.
      Handling of parse error changed to match new exceptions.
      mp_const_type renamed to mp_type_type for consistency.
    • Damien George's avatar
      Change mp_obj_type_t.name from const char * to qstr. · a71c83a1
      Damien George authored
      Ultimately all static strings should be qstr.  This entry in the type
      structure is only used for printing error messages (to tell the type of
      the bad argument), and printing objects that don't supply a .print method.
  5. 08 Feb, 2014 1 commit
    • Paul Sokolovsky's avatar
      Rename "rawsocket" module to "microsocket". · 9945f338
      Paul Sokolovsky authored
      It's no longer intended to provide just "raw" socket interface, may include
      some convenience methods for compatibility with CPython socket - but anyway
      just minimal set required to deal with socket client and servers, not wider
      network functionality.
  6. 04 Feb, 2014 1 commit
  7. 21 Jan, 2014 1 commit