1. 18 Dec, 2015 1 commit
    • Paul Sokolovsky's avatar
      ports: Rename "machine" module to "umachine". · 2eb844e0
      Paul Sokolovsky authored
      To let unix port implement "machine" functionality on Python level, and
      keep consistent naming in other ports (baremetal ports will use magic
      module "symlinking" to still load it on "import machine").
      Fixes #1701.
  2. 17 Dec, 2015 17 commits
  3. 16 Dec, 2015 7 commits
  4. 15 Dec, 2015 1 commit
  5. 14 Dec, 2015 3 commits
    • stijn's avatar
    • Paul Sokolovsky's avatar
      unix/modos: Implement ilistdir(). · d874702f
      Paul Sokolovsky authored
      ilistdir() returns iterator which yields triples of (name, type, ino)
      where ino is inode number for entry's data, type of entry (file/dir/etc.),
      and name of file/dir. listdir() can be easily implemented in terms of this
      iterator (which is otherwise more efficient in terms of memory use and may
      save expensive call to stat() for each returned entry).
      CPython has os.scandir() which also returns an iterator, but it yields
      more complex objects of DirEntry type. scandir() can also be easily
      implemented in terms of ilistdir().
    • Paul Sokolovsky's avatar
      py/objpolyiter: Implement instance-polymorphic iterator type. · 1a1cceaf
      Paul Sokolovsky authored
      This allows to have single itertaor type for various internal iterator
      types (save rodata space by not having repeating almost-empty type
      structures). It works by looking "iternext" method stored in particular
      object instance (should be first object field after "base").
  6. 13 Dec, 2015 2 commits
  7. 12 Dec, 2015 6 commits
  8. 11 Dec, 2015 3 commits
    • Paul Sokolovsky's avatar
      tools: Upgrade upip to 0.6.3. · bb7f5b55
      Paul Sokolovsky authored
      Updated for _os -> uos builtin module rename.
    • Paul Sokolovsky's avatar
    • stijn's avatar
      msvc: Use different output directories depending on build type · 967ceba5
      stijn authored
      This allows multiple versions (e.g. Debug/Release, x86/x64) of micropython.exe
      to co-exist instead and also solves potential problems where msbuild does not
      completely rebuild the output and/or pdb files when switching between builds,
      which in turn can cause linker errors in dependent projects.
      By default exe/map/... files go in windows/build/$(Configuration)$(Platform)
      After each build micropython.exe is still copied from the above directory to
      the windows directory though, as that is consistent with the other ports and
      the test runner by default uses that location as well.
      Also rename env.props -> path.props which is a clearer name,
      and add ample documentation in the affected build files.
      (also see discussion in #1538)