Skip to content

b1295

  • b1295
  • 3945c66
  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
  • Compare
    Choose a tag to compare
  • b1295
  • 3945c66
  • Compare
    Choose a tag to compare
  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@jakelishman jakelishman tagged this 20 Aug 17:28
Complex literals cannot be serialised directly to JSON, but Python's AST
reports them as constant numeric values.  Ruby's `to_json` method
serialies complex numbers to their string representations, so we do
similar here.  An alternative would be to serialise to a two-element
list of the real and imaginary parts.
Assets 2
Loading