Re: Strange behavior with sort()

2014-02-26 Thread Eduardo A . Bustamante López
On Thu, Feb 27, 2014 at 07:24:24AM +0100, ast wrote: > Hello > > box is a list of 3 integer items > > If I write: > >box.sort() >if box == [1, 2, 3]: > > > the program works as expected. But if I write: > >if box.sort() == [1, 2, 3]: > > it doesn't work, the test always fails. Wh

Re: Apache restart after source changes

2013-12-25 Thread Eduardo A . Bustamante López
On Wed, Dec 25, 2013 at 09:57:42PM -0800, Fredrik Bertilsson wrote: > I am evaluating Python for web development and just found out that I need to > restart Apache after source changes on windows. Using linux the situation is > better but I still have to touch the wsgi file. Is it only me that fi

Re: Need help with programming in python for class (beginner level)

2013-11-29 Thread Eduardo A . Bustamante López
On Fri, Nov 29, 2013 at 04:31:21PM -0800, farhan...@gmail.com wrote: > It's for a school assignment. Basically, I need to roll 5 dies with 6 sides > each. So basically, 6 random numbers. That part is easy. Then I need to add > it up. Ok, done that. However, I also need to say something along the