On Thu, May 1, 2014 at 7:43 AM, Simon King <simon.k...@uni-jena.de> wrote: > Hi! > > Currently, I have problems with web-accessing doctests in my modular > group cohomology package for Sage. These tests used to work (of course > provided that there is an internet connection), but fail now with a > timeout. > > Trying to find the underlying reason, I found that meanwhile people seem > to recommend the "requests" module and think that urllib2 (which I am > using in the package) should be replaced by requests. No idea if this > would solve my problem, but perhaps it would make sense to try. > > What do people here think about requests?
I used requests a lot at one point last year (when I was writing SMC in Python rather than Node.js), and was very impressed. It's much better than urllib2. I'm installing it by default on SMC as well. That said, I'm always very reluctant to add new packages to Sage -- they will cause extra maintenance work, complexity, and pain. And if nothing in the core of Sage really relies on them, then they probably shouldn't be in Sage. I would prefer to add "pip" to Sage, and let users do "pip install requests" than to add requests to sage. > It is Apache2 Licensed; would > this be compatible with Sage's license? Yes, though only because we switched to GPLv2+, since Apache is *not* GPLv2 compatible. See http://www.apache.org/licenses/GPL-compatibility.html I'm just answering your questions. As Volker says, using requests is probably not going to solve your problem though. William > > Best regards, > Simon > > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- William Stein Professor of Mathematics University of Washington http://wstein.org -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.