Did you mean

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

On Tuesday, October 4, 2016 at 4:21:57 PM UTC+2, alx wrote:
>
> 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