Hi, I do wrong, please

--
using PyCall

type One
  o::PyObject
  One() = new( PyObject(1) )
end

Base.show(io::IO, n::One) = print(io, n)

n=One()

Error showing value of type One:
ERROR: StackOverflowError:
 in print(::IOContext{Base.Terminals.TTYTerminal}, ::One) at ./strings/io.jl
:7
 in print(::IOContext{Base.Terminals.TTYTerminal}, ::One) at ./strings/io.jl
:8 (repeats 48 times)



Reply via email to