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 steven.daprano
Recipients Dennis Sweeney, christian.heimes, jfine2358, mark.dickinson, phr, remi.lapeyre, rhettinger, serhiy.storchaka, steven.daprano, tim.peters, trrhodes, vstinner
Date 2020-05-22.12:00:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20200522115435.GC15178@ando.pearwood.info>
In-reply-to <1590142986.26.0.398473123393.issue40028@roundup.psfhosted.org>
Content
On Fri, May 22, 2020 at 10:23:06AM +0000, Rémi Lapeyre wrote:
> As you said the PEP would have to explain why not just use sympy and 
> honestly I don't have a very good argument there for now.

Because sympy is a beast. It's an excellent beast, but its an absolute 
monster. I stopped counting at 400 modules, not including tests. Having 
to install a mega-library like sympy to get two or three functions is 
overkill, like using a nuclear-powered bulldozer to crack a peanut.

The sympy docs say:

"SymPy does require mpmath Python library to be installed first. The 
recommended method of installation is through Anaconda, which includes 
mpmath, as well as several other useful libraries. Alternatively, some 
Linux distributions have SymPy packages available."

which is great if you are using Anaconda, a little less great if you're 
using Linux, and not very good if you're not using either.

And it's especially not very good if you are a student using a school 
laptop where Python is installed but you are not permitted to install 
other software. (Likewise for corporate users with locked down desktops, 
although they are less likely to care about prime numbers.)

sympy also comes with it's own odd ways of doing things, such as having 
to care about the difference between Python numbers and sympy numbers. 
(Not for prime testing, admittedly. I'm just making a general 
observation.)
History
Date User Action Args
2020-05-22 12:00:20steven.dapranosetrecipients: + steven.daprano, tim.peters, rhettinger, phr, mark.dickinson, vstinner, christian.heimes, serhiy.storchaka, remi.lapeyre, jfine2358, Dennis Sweeney, trrhodes
2020-05-22 12:00:20steven.dapranolinkissue40028 messages
2020-05-22 12:00:20steven.dapranocreate