Author gvanrossum
Recipients Rhamphoryncus, christian.heimes, gvanrossum, mark.dickinson
Date 2008-01-03.20:50:25
SpamBayes Score 0.00430645
Marked as misclassified No
Message-id <ca471dc20801031250s6c56410en31164e06d8141a56@mail.gmail.com>
In-reply-to <477D48AA.2080502@cheimes.de>
Content
> Guido van Rossum wrote:
> > Good idea. Since you seem to like providing patches, can you create
> > one for math.copysign()?
>
> Don't forget it's copysign() on Unix but _copysign() on Windows.
>
> #if defined(MS_WINDOWS) || defined(HAVE_COPYSIGN)
> #ifdef MS_WINDOWS
> FUNC2(copysign, _copysign,
> #else
> FUNC2(copysign, copysign,
> #endif
>     "doc");
> #endif
>
> should work on all systems.

Well, the Python API in the math module should always be called copysign(). :-)

And what to do if neither is present? Are there any systems without it?
History
Date User Action Args
2008-01-03 20:50:25gvanrossumsetspambayes_score: 0.00430645 -> 0.00430645
recipients: + gvanrossum, mark.dickinson, Rhamphoryncus, christian.heimes
2008-01-03 20:50:25gvanrossumlinkissue1640 messages
2008-01-03 20:50:25gvanrossumcreate