Re: [sage-devel] Re: PY_NEW(Integer) and Integer.__new__(Integer)

2018-04-09 Thread Erik Bray
On Mon, Apr 9, 2018 at 10:27 AM, Jean-Pierre Flori wrote: > I thought PY_NEW was to be avoided (except for classes overriding tp_new). > See https://trac.sagemath.org/ticket/17668 and >

[sage-devel] Re: PY_NEW(Integer) and Integer.__new__(Integer)

2018-04-09 Thread Jean-Pierre Flori
I thought PY_NEW was to be avoided (except for classes overriding tp_new). See https://trac.sagemath.org/ticket/17668 and https://github.com/cython/cython/wiki/FAQ#can-cython-create-objects-or-apply-operators-to-locally-created-objects-as-pure-c-code On Sunday, April 8, 2018 at 9:41:17 AM UTC+2,