Commit graph

460 commits

Author SHA1 Message Date
Jan Christoph Terasa
56ac6c349d python/solo/step: Fix indentation on remanining files.
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6689 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-13 08:49:34 +00:00
Jan Christoph Terasa
ed14a97df4 python/solo/l3.py: Define __next__ as well as next for all iterators.
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6687 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-12 17:29:29 +00:00
Jan Christoph Terasa
6a3c7535ad python/solo: Move Python2-bytes-check from configtable.py to crc1021.py
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6686 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-12 17:26:30 +00:00
Jan Christoph Terasa
9ef4d37326 python/solo: Python3 compat:
configtable.py: 
        - Iterating over `bytes` instances directly yields integers, no need to
          call map(ord, ...)
        - Use explicit flooring integer division

    l3.py:
        - Use numbers.Integral instead of (int, long) to check if an input is
          an integral number
        - `file` objects in Python3 do not have next methods, but still
          implement an iterator which can be advanced by next() function
        - Use explicit flooring integer division
        - __nonzero__ class attribute is called __bool__ in Python3

    solomsgclass.py:
        - Use numbers.Integral instead of (int, long) to check if an input is
          an integral number
        - Explicitely define relational operators for ModulusValue objects,
          i.e. implement __lt__ and __eq__. __cmp__ is deprecated



git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6685 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-12 15:56:02 +00:00
Jan Christoph Terasa
345c69d9a5 python/solo/step: Fix indentation for several files.
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6684 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-12 15:00:45 +00:00
Jan Christoph Terasa
f0ab0b8149 solomsgclass.py: Fix instantiation of L3 incrementer.
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6682 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-11 17:07:40 +00:00
Jan Christoph Terasa
409fb93009 solomsgclass.py: Write SRAM can take a iterator and creates an unlimited sequence from it.
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6681 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-11 16:55:28 +00:00
Robert Elftmann
5361c78adb hetept/data.py: Added DPs for CNO
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6679 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-09 12:38:44 +00:00
Sebastian Boden
bfd3d0a206 moving solopath back into the python folder
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6676 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-08 10:06:36 +00:00
Sebastian Boden
8e81b26395 ... done
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6675 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-08 10:05:06 +00:00