Re: [Tutor] Asking for help with installation of pyttsx (text to speech)

2015-02-11 Thread Mark Lawrence
On 11/02/2015 03:37, Andrew K. wrote: To whom it may concern. I started the project CrocToy, a complex robotic toy in a form of a crocodile. I would like to use Python as programming platform. Having limited programming skills, I have troubles with software development. Particularly, right now

Re: [Tutor] Using goto or labels in Python?

2015-02-11 Thread Mark Lawrence
On 11/02/2015 18:14, Alan Gauld wrote: On 11/02/15 10:44, Raphael Raphael wrote: Hello, Hello, please do not post the entire digest to ask a new question. Some people pay by the byte. Just send a new mail to tutor@python.org. Is there a way in which people have found to use goto or labels i

Re: [Tutor] Using goto or labels in Python?

2015-02-11 Thread Alan Gauld
On 11/02/15 10:44, Raphael Raphael wrote: Hello, Hello, please do not post the entire digest to ask a new question. Some people pay by the byte. Just send a new mail to tutor@python.org. Is there a way in which people have found to use goto or labels in Python?thank you. No. Python does n

Re: [Tutor] Timeline Script in Python

2015-02-11 Thread Siya 360
> Hi, > > Can you please help with a timeline script in python, in conjunction with how > to use their timeline library? > > I would love advise of how to best approach this, in going about developing > an event/ activity stream timeline > > I found two different libraries, one from Python, a

[Tutor] Using goto or labels in Python?

2015-02-11 Thread Raphael Raphael
Hello, Is there a way in which people have found to use goto or labels in Python?thank you. Sent from my iPhone > On Feb 11, 2015, at 12:27 PM, tutor-requ...@python.org wrote: > > Send Tutor mailing list submissions to >tutor@python.org > > To subscribe or unsubscribe via the World Wide W

Re: [Tutor] How to pass varying number of arguments to functions called by a dictionary?

2015-02-11 Thread boB Stepp
On Wed, Feb 11, 2015 at 10:58 AM, Dave Angel wrote: > On 02/11/2015 10:29 AM, boB Stepp wrote: >> >> On Wed, Feb 11, 2015 at 8:45 AM, Dave Angel wrote: >>> >>> On 02/11/2015 08:27 AM, boB Stepp wrote: [...] >>> In each case, there are probably better ways... >> >> >> I am open to suggestions! >

Re: [Tutor] How to pass varying number of arguments to functions called by a dictionary?

2015-02-11 Thread Dave Angel
On 02/11/2015 10:29 AM, boB Stepp wrote: On Wed, Feb 11, 2015 at 8:45 AM, Dave Angel wrote: On 02/11/2015 08:27 AM, boB Stepp wrote: [...] Sure, it's viable, but the best approach depends on your goal (use case), and your restrictions. Are these functions really totally unrelated to each ot

Re: [Tutor] How to pass varying number of arguments to functions called by a dictionary?

2015-02-11 Thread boB Stepp
On Wed, Feb 11, 2015 at 8:45 AM, Dave Angel wrote: > On 02/11/2015 08:27 AM, boB Stepp wrote: [...] > > Sure, it's viable, but the best approach depends on your goal (use case), > and your restrictions. Are these functions really totally unrelated to each > other? You not only don't have the sam

Re: [Tutor] How to pass varying number of arguments to functions called by a dictionary?

2015-02-11 Thread boB Stepp
On Wed, Feb 11, 2015 at 8:44 AM, eryksun wrote: > On Wed, Feb 11, 2015 at 7:27 AM, boB Stepp wrote: >> >> pass_args = {'a': (x1, x2, x3), 'b': (y1, y2), 'c': (z)} >> call_fcn[key_letter](key_letter) >> >> But ran into the syntax error that I was giving one argument when >> (possibly) multiple arg

Re: [Tutor] How to pass varying number of arguments to functions called by a dictionary?

2015-02-11 Thread Dave Angel
On 02/11/2015 08:27 AM, boB Stepp wrote: Python 2.4.4, Solaris 10 I have a file of functions. Based on what is read in a data file, different functions in the file of functions will need to be called. I have been trying to make the following approach work, so far unsuccessfully as, in general, e

Re: [Tutor] How to pass varying number of arguments to functions called by a dictionary?

2015-02-11 Thread eryksun
On Wed, Feb 11, 2015 at 7:27 AM, boB Stepp wrote: > > pass_args = {'a': (x1, x2, x3), 'b': (y1, y2), 'c': (z)} > call_fcn[key_letter](key_letter) > > But ran into the syntax error that I was giving one argument when > (possibly) multiple arguments are expected. Do it like this: pass_args = {

Re: [Tutor] How to pass varying number of arguments to functions called by a dictionary?

2015-02-11 Thread Joel Goldstick
On Wed, Feb 11, 2015 at 8:27 AM, boB Stepp wrote: > Python 2.4.4, Solaris 10 > > I have a file of functions. Based on what is read in a data file, > different functions in the file of functions will need to be called. I > have been trying to make the following approach work, so far > unsuccessful

[Tutor] How to pass varying number of arguments to functions called by a dictionary?

2015-02-11 Thread boB Stepp
Python 2.4.4, Solaris 10 I have a file of functions. Based on what is read in a data file, different functions in the file of functions will need to be called. I have been trying to make the following approach work, so far unsuccessfully as, in general, each function may have a different number of

Re: [Tutor] Importing from classes

2015-02-11 Thread Steven D'Aprano
On Tue, Feb 10, 2015 at 06:39:50PM -0800, daaku gee wrote: > Hi > > When importing from other modules, I've seen syntax like: > > import from > import > > And another one: > import from as Not quite. The syntax is: import import as from import # not necessarily a class from imp

Re: [Tutor] Importing from classes

2015-02-11 Thread Alan Gauld
On 11/02/15 02:39, daaku gee wrote: When importing from other modules, I've seen syntax like: import from from import Note you don't import classes from modules you import names. (The name might be the name of a class of course!) This form is for cases where you only want to use one or

Re: [Tutor] Asking for help with installation of pyttsx (text to speech)

2015-02-11 Thread Alan Gauld
On 11/02/15 03:37, Andrew K. wrote: I started the project CrocToy, a complex robotic toy in a form of a crocodile. > I would like to use Python as programming platform. > Having limited programming skills, I have troubles with software development. This much we can help with since the list i

[Tutor] Importing from classes

2015-02-11 Thread daaku gee
Hi When importing from other modules, I've seen syntax like: import from import And another one: import from as Is one better than the other or is it just personal choice? Thanks \d ___ Tutor maillist - Tutor@python.org To unsubscribe or chan

[Tutor] Asking for help with installation of pyttsx (text to speech)

2015-02-11 Thread Andrew K.
To whom it may concern. I started the project CrocToy, a complex robotic toy in a form of a crocodile. I would like to use Python as programming platform. Having limited programming skills, I have troubles with software development. Particularly, right now I try to learn how to use pyttsx (text