how to override the solver function in sympy?

2016-12-03 Thread Ho Yeung Lee
how to override the solver function in sympy? -- https://mail.python.org/mailman/listinfo/python-list

[RELEASE] Python 2.7.13 release candidate 1

2016-12-03 Thread Benjamin Peterson
It is my pleasure to announce the first release candidate of Python 2.7.13, a new bugfix release in the Python 2.7x series. Downloads may be found on python.org: https://www.python.org/downloads/release/python-2713rc1/ Please test the release and report any bugs to https://bugs.python.or

Re: What meaning is "if k in [0, len(n_trials) - 1] else None"?

2016-12-03 Thread Chris Angelico
On Sun, Dec 4, 2016 at 11:10 AM, Terry Reedy wrote: >> But the expression result isn't even used. So this is better written: > > > matplotlib.pyplot.xlabel sets x-axis scaling, with no documented return > value. > http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.xlabel > If, as seems re

Re: What meaning is "if k in [0, len(n_trials) - 1] else None"?

2016-12-03 Thread Terry Reedy
On 12/3/2016 6:27 PM, Chris Angelico wrote: On Sun, Dec 4, 2016 at 10:11 AM, Robert wrote: I just notice that there is a slash character (\) before the if line. What is it for? Yes, that's important. The entire line of code is: plt.xlabel("$p$, probability of heads") \ if k in [0

Re: What meaning is "if k in [0, len(n_trials) - 1] else None"?

2016-12-03 Thread MRAB
On 2016-12-03 23:11, Robert wrote: On Saturday, December 3, 2016 at 6:09:02 PM UTC-5, Robert wrote: Hi, I am trying to understand the meaning of the below code snippet. Though I have a Python IDLE at computer, I can't get a way to know below line: if k in [0, len(n_trials) - 1] else None I fe

Re: What meaning is "if k in [0, len(n_trials) - 1] else None"?

2016-12-03 Thread Chris Angelico
On Sun, Dec 4, 2016 at 10:11 AM, Robert wrote: > I just notice that there is a slash character (\) before the if line. > What is it for? Yes, that's important. The entire line of code is: plt.xlabel("$p$, probability of heads") \ if k in [0, len(n_trials) - 1] else None The backslas

Re: What meaning is "if k in [0, len(n_trials) - 1] else None"?

2016-12-03 Thread Robert
On Saturday, December 3, 2016 at 6:09:02 PM UTC-5, Robert wrote: > Hi, > > I am trying to understand the meaning of the below code snippet. Though I have > a Python IDLE at computer, I can't get a way to know below line: > > if k in [0, len(n_trials) - 1] else None > > I feel it is strange for w

What meaning is "if k in [0, len(n_trials) - 1] else None"?

2016-12-03 Thread Robert
Hi, I am trying to understand the meaning of the below code snippet. Though I have a Python IDLE at computer, I can't get a way to know below line: if k in [0, len(n_trials) - 1] else None I feel it is strange for what returns when the 'if' condition is true? The second part 'None' is clear to m

Re: How to properly retrieve data using requests + bs4 from multiple pages in a site?

2016-12-03 Thread Juan C.
On Thu, Dec 1, 2016 at 10:07 PM, Juan C. wrote: > It works, but it has a big issue: it gets all data from all units/courses/assignments at the same time, and this isn't very useful as I don't care about data from units from 1-2 years ago. How can I change the logic so it just gets the data I need

Re: Request Help With Byte/String Problem

2016-12-03 Thread Wildman via Python-list
On Fri, 02 Dec 2016 19:39:39 +, Grant Edwards wrote: > On 2016-12-02, Wildman via Python-list wrote: >> On Fri, 02 Dec 2016 15:11:18 +, Grant Edwards wrote: >> >>> I don't know what the "addr" array contains, but if addr is a byte >>> string, then the "int()" call is not needed, in Python