This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author elliot.gorokhovsky
Recipients elliot.gorokhovsky, mdk, tim.peters
Date 2016-11-14.17:25:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CANZJz4jr=qY92VzZ5rpYsd1EJs+u=_j+26Rs1OGZjsegHtDVaA@mail.gmail.com>
In-reply-to <1479128990.79.0.773886734459.issue28685@psf.upfronthosting.co.za>
Content
Sure, if it compiles without that def, I'll remove it from the patch. I
added it because I did all the development in an extension module, which
also included Python.h, but for some reason it gave me a "function
implicitly defined" error for using Py_ABS. Even though I had included
Python.h. Weird, right? So I assumed I had to leave it in the patch as
well. Thanks for pointing this out!

On Mon, Nov 14, 2016 at 6:09 AM Julien Palard <report@bugs.python.org>
wrote:

>
> Julien Palard added the comment:
>
> Hi Elliot, nice spot!
>
> Why are you redefining Py_ABS, which looks already defined in `pymacro.h`
> included itself by `Python.h`? I'm not fan of undefining it later, it may
> surprise someone later expecting it to be there.
>
> I tried to compile without your definition of Py_ABS, just in case I
> missed something in the includes, and it works.
>
> ----------
> nosy: +mdk
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue28685>
> _______________________________________
>
History
Date User Action Args
2016-11-14 17:25:39elliot.gorokhovskysetrecipients: + elliot.gorokhovsky, tim.peters, mdk
2016-11-14 17:25:39elliot.gorokhovskylinkissue28685 messages
2016-11-14 17:25:39elliot.gorokhovskycreate