Re: [Tutor] Class Inheritance

2010-04-22 Thread Steven D'Aprano
On Fri, 23 Apr 2010 03:11:36 pm David Hutto wrote: > Hello List! > > While experimenting with Tkinter(python2.6), when from Tkinter > import* is used I came across the following error: > > C:\Users\ascent>c:\python26/Script3.py > Traceback (most recent call last): > File "C:\python26

[Tutor] Class Inheritance

2010-04-22 Thread David Hutto
Hello List! While experimenting with Tkinter(python2.6), when from Tkinter import* is used I came across the following error: C:\Users\ascent>c:\python26/Script3.py Traceback (most recent call last): File "C:\python26\Script3.py", line 1, in from Tkinter import * File "C:\Pyt

Re: [Tutor] sys.path and the path order

2010-04-22 Thread Steven D'Aprano
On Fri, 23 Apr 2010 10:34:02 am Garry Willgoose wrote: > My question is so simple I'm surprised I can't find an answer > somewhere. Did you read the Fine Manual? > I'm interested if I can rely on the order of the > directories in the sys.path list. [...] > The question is can I rely on entry

[Tutor] sys.path and the path order

2010-04-22 Thread Garry Willgoose
My question is so simple I'm surprised I can't find an answer somewhere. I'm interested if I can rely on the order of the directories in the sys.path list. When I'm running a file from the comand line like python tellusim.py The string in entry sys.path[0] appears to be the full path to th

Re: [Tutor] number distribution

2010-04-22 Thread Alan Gauld
"Bill Jordan" wrote If we have 100 apples, for example, and we need to distrubte the 100 apples randomly in 10 boxes, how can we do this in python? This sounds like homework, and we don't do homework for you. But if you'd like to tell us your ideas, or even better show us whatever code you

Re: [Tutor] number distribution

2010-04-22 Thread Hugo Arts
I suggest you take a look at the random module. There should be something in there that suits your needs. On Thu, Apr 22, 2010 at 2:13 PM, Bill Jordan wrote: > Hey everbody, > > If we have 100 apples, for example, and we need to distrubte the 100 apples > randomly in 10 boxes, how can we do this

[Tutor] number distribution

2010-04-22 Thread Bill Jordan
Hey everbody, If we have 100 apples, for example, and we need to distrubte the 100 apples randomly in 10 boxes, how can we do this in python? Cheers ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://