Re: [Tutor] (SIP installation problem) Best way to install Python 3 onto Windows 10

2016-03-18 Thread eryk sun
On Thu, Mar 17, 2016 at 6:36 AM, CMG Thrissur wrote: > Thank you for the link but on that page i see mention of SIP requirement, is > that required for binary package also. The .exe and .whl packages for PyQt are self-contained. You don't need anything else, and you don't have to build anything f

Re: [Tutor] How to test function using random.randint()?

2016-03-18 Thread Ben Finney
boB Stepp writes: > If I had a function to roll a die, such as: > > import random > > def roll_die(num_sides): > return random.randint(1, num_sides) > > How would I write unit tests for this? You need to make the system deterministic during the test run. Since the random number generator (RN

[Tutor] How to test function using random.randint()?

2016-03-18 Thread boB Stepp
If I had a function to roll a die, such as: import random def roll_die(num_sides): return random.randint(1, num_sides) How would I write unit tests for this? The first thing that suggests itself to me is to do something like assertIn(roll_die(num_sides), range(1, num_sides + 1) And I woul

Re: [Tutor] Advice on multi-dimensional data storage

2016-03-18 Thread sina sareth via Tutor
Hi thereI would like to make 2 apps I wonder if somebody has a similar codes.   They said it is easier to use Django and MySQL.Thanks 1) XML parsing into database. 2) Do the same thing but this time, get ALL the quotes and save them as separate database entries (you will have to do a for loop for