• Zack M. Davis's avatar
    non-hideous dictionary displays · 15ddc4d4
    Zack M. Davis yazdı
    The trailing comma-space that was previously output, while perfectly
    legal in every way, is not what most human Python programmers would
    write in most situations. We use the same slick idiom as the
    `comma_list` method (iterating over the enumeration, but writing the
    comma-space before the elements if the index is truthy, which zero is
    not) to not put anything extra after the final key-value pair.
    15ddc4d4
test_codegen.py 2.79 KB