[Libre-soc-bugs] [Bug 755] add grev instruction (OP_GREV)
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Thu Dec 23 06:20:22 GMT 2021
https://bugs.libre-soc.org/show_bug.cgi?id=755
--- Comment #12 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
ascii art's great, sphinx plugin can turn it into an image.
irony: you can have too many comments, they become
a distraction esp. when the function is 2 lines and comments 10-12
spelling: "it's" is not a relative pronoun. it's short for the two words, "it"
and "is". also "cuz" is fine in IRC but not documentation.
inter function can go (1 liner made from these)
https://stackoverflow.com/questions/339007/how-to-pad-zeroes-to-a-string
https://stackoverflow.com/questions/16060899/alphabet-range-in-python
string.ascii_lowercase[:-length].rjust(fixedlen, "0")
negative ranges start from the opposite end. works with
start as well e.g. list[-5:7]
"""docstrings convention
end closer on a newline, lined up
"""
also can you put the rtlil creator back in, they are really useful
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list