Re: [Tutor] Question regarding xml.dom.minidom: How do you send an unsignedByte in an wsdl request

2011-07-22 Thread Stefan Behnel
Emile van Sebille, 22.07.2011 20:59: You'll likely get more traction on this at http://mail.python.org/mailman/listinfo/xml-sig Unlikely. Stefan ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

Re: [Tutor] Question regarding xml.dom.minidom: How do you send an unsignedByte in an wsdl request

2011-07-22 Thread Stefan Behnel
Garry Bettle, 22.07.2011 20:18: I'm trying some calls to an wsdl API I've subscribed to. You might find this interesting: http://effbot.org/zone/element-soap.htm But I'm struggling to know what they want when sending an unsignedByte in a request. That's just a number, plain old-fashioned

Re: [Tutor] Question regarding xml.dom.minidom: How do you send an unsignedByte in an wsdl request

2011-07-22 Thread Emile van Sebille
On 7/22/2011 12:09 PM Stefan Behnel said... Emile van Sebille, 22.07.2011 20:59: You'll likely get more traction on this at http://mail.python.org/mailman/listinfo/xml-sig Unlikely. Wow. Agreed. Five unanswered posts this year. Emile ___ Tutor

[Tutor] Question about comparing values

2011-05-22 Thread Becky Mcquilling
I realize this is a fairly generic type of question, but being new to programming, I'm not sure how best to approach it. I'm doing a tutorial and was given a problem, using shelve. It's taking a user name and then asking for scores in a game, until you end the loop. Whatever score is the high

Re: [Tutor] Question about comparing values

2011-05-22 Thread Hugo Arts
On Sun, May 22, 2011 at 11:11 PM, Becky Mcquilling ladymcse2...@gmail.com wrote: I realize this is a fairly generic type of question, but being new to programming, I'm not sure how best to approach it. I'm doing a tutorial and was given a problem, using shelve.  It's taking a user name and

Re: [Tutor] Question about comparing values

2011-05-22 Thread Becky Mcquilling
Thanks, you are correct of course. I need to just scrap this and start over, but I understand it a lot better now. On Sun, May 22, 2011 at 4:57 PM, Alan Gauld alan.ga...@btinternet.comwrote: Becky Mcquilling ladymcse2...@gmail.com wrote I'm doing a tutorial and was given a problem, using

[Tutor] question about locale.setlocale

2011-02-03 Thread Rafael Durán Castañeda
Hi all, I'm new in Python, so I'm reading 3.1 tutorial and now I've got a question about locale.setlocale function. I've tryed in python idle this: import locale locale.setlocale(locale.LC_ALL, 'English_United States.1252') and i got: Traceback (most recent call last): File pyshell#40, line

Re: [Tutor] question about manipulate images!

2011-01-17 Thread Elwin Estle
--- On Sun, 1/16/11, zhengqing gan zhengqing...@gmail.com wrote: From: zhengqing gan zhengqing...@gmail.com Subject: [Tutor] question about manipulate images! To: tutor@python.org Date: Sunday, January 16, 2011, 11:37 PM Hi, All:      I have a question about manipulating images

Re: [Tutor] question about manipulate images!

2011-01-17 Thread Alan Gauld
zhengqing gan zhengqing...@gmail.com wrote I have a question about manipulating images. In Python that usually translates to use PIL... If I have a image, is there a kind of algorithm to convert it into kind of Iphone icon style? part transparent, gradient PIL can do most of

Re: [Tutor] question about manipulate images!

2011-01-17 Thread zhengqing gan
, zhengqing gan zhengqing...@gmail.com wrote: From: zhengqing gan zhengqing...@gmail.com Subject: [Tutor] question about manipulate images! To: tutor@python.org Date: Sunday, January 16, 2011, 11:37 PM Hi, All:      I have a question about manipulating images.      If I have a image

Re: [Tutor] question about manipulate images!

2011-01-17 Thread Eduardo Vieira
Hi. Try to find a tutorial on the steps to achieve such effect in a graphic program. Then map it to the scrpting steps to do the same with pil, python for gimp, for inkscape or simply Imagemagick. On 2011-01-17 8:37 AM, zhengqing gan zhengqing...@gmail.com wrote: Hi, Thanks for the reply.

[Tutor] question about manipulate images!

2011-01-16 Thread zhengqing gan
Hi, All: I have a question about manipulating images. If I have a image, is there a kind of algorithm to convert it into kind of Iphone icon style? part transparent, gradient Thanks! ___ Tutor maillist - Tutor@python.org To

Re: [Tutor] question regarding regular expression compile

2011-01-13 Thread Steven D'Aprano
Luke Paireepinart wrote: No. Did you try that? It doesn't evn look like valid python code to me. You want a single string with the r before it, not 3 separate strings. The line of code in question is: test = re.compile('MAT file (billing|carrier|log|util)' r'\\' '\d{8} deleted')

[Tutor] question regarding regular expression compile

2011-01-12 Thread Yaniga, Frank
I am determining a regular expression that can recognize the any of the following strings: MAT file log\20101225 deleted MAT file billing\20101225 deleted MAT file util\20101225 deleted MAT file carrier\20101225 deleted I begin by creating a regular expression object so that I can reuse it in

Re: [Tutor] question regarding regular expression compile

2011-01-12 Thread Adam Bark
On 12/01/11 13:19, Yaniga, Frank wrote: I am determining a regular expression that can recognize the any of the following strings: MAT file log\20101225 deleted MAT file billing\20101225 deleted MAT file util\20101225 deleted MAT file carrier\20101225 deleted I begin by creating a regular

Re: [Tutor] question regarding regular expression compile

2011-01-12 Thread Evert Rol
I am determining a regular expression that can recognize the any of the following strings: MAT file log\20101225 deleted MAT file billing\20101225 deleted MAT file util\20101225 deleted MAT file carrier\20101225 deleted I begin by creating a regular expression object so that I can

Re: [Tutor] question regarding regular expression compile

2011-01-12 Thread Yaniga, Frank
I believe I had epiphany: test = re.compile('MAT file (billing|carrier|log|util)' r'\\' '\d{8} deleted') is this correct? _ From: Yaniga, Frank Sent: Wednesday, January 12, 2011 8:20 AM To: 'tutor@python.org'; 'h...@python.org' Subject:

[Tutor] question

2011-01-12 Thread Stinson, Wynn A Civ USAF AFMC 556 SMXS/MXDED
Can someone give me some sample code to use to determine if a checkbox has been selected using Tkinter? thanks ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] question

2011-01-12 Thread Karim
Hello, You can even use a StringVar as the checkbutton's variable, and supply string values for the offvalue and onvalue. Here's an example: self.spamVar = StringVar() self.spamCB = Checkbutton ( self, text=Spam?, variable=self.spamVar, onvalue=yes, offvalue=no ) If this checkbutton is on,

Re: [Tutor] question regarding regular expression compile

2011-01-12 Thread Luke Paireepinart
No. Did you try that? It doesn't evn look like valid python code to me. You want a single string with the r before it, not 3 separate strings. - Sent from a mobile device. Apologies for brevity and top-posting. - On Jan 12, 2011, at 8:02

Re: [Tutor] Question about the main Python help list

2010-12-04 Thread Joel Schwartz
Of Stefan Behnel Sent: Friday, December 03, 2010 11:43 PM To: tutor@python.org Subject: Re: [Tutor] Question about the main Python help list Joel Schwartz, 04.12.2010 08:19: I just went to sign up for the main Python help list and discovered that it is a closed list What (and where

Re: [Tutor] Question about the main Python help list

2010-12-04 Thread Stefan Behnel
Joel Schwartz, 04.12.2010 09:07: I meant the Python-Help mailing list (http://mail.python.org/mailman/listinfo/python-help), which is described on the Python mailing list page (http://mail.python.org/mailman/listinfo) as Expert volunteers answer Python-related questions. I guess I should have

Re: [Tutor] Question about the main Python help list

2010-12-04 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Joel Schwartz wrote: I meant the Python-Help mailing list (http://mail.python.org/mailman/listinfo/python-help), which is described on the Python mailing list page (http://mail.python.org/mailman/listinfo) as Expert volunteers answer Python-related questions. I guess

Re: [Tutor] Question on tkinter event binding

2010-12-04 Thread Albert-Jan Roskam
Subject: Re: [Tutor] Question on tkinter event binding Hello Albert-Jan: I am glad you made the comment below. I was fascinated with the fact that your code was partly in English/Python and also in Dutch. I am a linguist so have great interest in bilingualism. How does this work in practice? I

Re: [Tutor] Question on tkinter event binding

2010-12-04 Thread Evert Rol
To: Albert-Jan Roskam fo...@yahoo.com; Python Mailing List tutor@python.org Sent: Fri, December 3, 2010 11:39:28 PM Subject: Re: [Tutor] Question on tkinter event binding Hello Albert-Jan: I am glad you made the comment below. I was fascinated with the fact that your code was partly

Re: [Tutor] Question about the main Python help list

2010-12-04 Thread Alan Gauld
Joel Schwartz j...@joelschwartz.com wrote My question: Is there a general Python help list that is open for all to see, in the same way that the Python Tutor list is open? There are many Python mailing lists and usenet newsgroups. They are all available to browse on gmane. (just short of

Re: [Tutor] Question on tkinter event binding

2010-12-04 Thread Albert-Jan Roskam
Subject: Re: [Tutor] Question on tkinter event binding Hi Patty, As far as books are concerned, I actually prefer (programming) books in the English language. Although the Dutch don't do it as much as e.g. the French or the Germans, I hate it when technical terms are translated into Dutch

Re: [Tutor] Question on tkinter event binding

2010-12-04 Thread Steven D'Aprano
Evert Rol wrote: I actually find it a bit weird that a (programming?) company has a coding convention for non-English names; makes it harder if you want to hire non-Dutch speaking employees, distribute software ( code) internationally etc. I can't put my hands on the reference right now,

Re: [Tutor] Question on tkinter event binding

2010-12-04 Thread Steven D'Aprano
Albert-Jan Roskam wrote: Meanwhile, I tinkered a bit more with the code. I used exec() to isolate the event handler function. It works and it's better, but I think it could be still better. I'm not so fond of eval() and exec(). They have their uses, but yes, it's best to avoid them unless

Re: [Tutor] Question about the main Python help list

2010-12-04 Thread Luke Paireepinart
Next time you email tutor, start a new email msg instead of clearing out the contents of a reply to a different e-mail. When you do it like that it breaks threading, so all these emails are in the same thread as the need help one even though they aren't related to that e-mail.

Re: [Tutor] Question on tkinter event binding

2010-12-04 Thread Albert-Jan Roskam
? ~~ From: Steven D'Aprano st...@pearwood.info To: Python Mailing List tutor@python.org Sent: Sat, December 4, 2010 3:49:26 PM Subject: Re: [Tutor] Question on tkinter event binding Albert-Jan Roskam wrote: Meanwhile, I tinkered a bit more with the code. I used exec() to isolate the event handler

[Tutor] Question on tkinter event binding

2010-12-03 Thread Albert-Jan Roskam
Hi, I'm trying to make a small improvement on a data entry program and it is literally giving me a headache. I would appreciate your help or suggestions. The actual program uses Autocomplete entry widgets [1], which is a subclass of the Tkinter Entry widget. The sample code below uses a

Re: [Tutor] Question on tkinter event binding

2010-12-03 Thread Albert-Jan Roskam
? ~~ From: Albert-Jan Roskam fo...@yahoo.com To: Python Mailing List tutor@python.org Sent: Fri, December 3, 2010 11:19:02 AM Subject: [Tutor] Question on tkinter event binding Hi, I'm trying to make

Re: [Tutor] Question on tkinter event binding

2010-12-03 Thread Terry Carroll
On Fri, 3 Dec 2010, Albert-Jan Roskam wrote: I'm trying to make a small improvement on a data entry program and it is literally giving me a headache. Followed shortly thereafter with: On Fri, 3 Dec 2010, Albert-Jan Roskam wrote: Aaahhh, got it! Peace! ... I'll paste the working code below.

[Tutor] Question about the main Python help list

2010-12-03 Thread Joel Schwartz
I just went to sign up for the main Python help list and discovered that it is a closed list, in the sense that the answers to queries are kept private between the questioner and the helpers, rather than shared with everyone on the list. My question: Is there a general Python help list that is

Re: [Tutor] Question about the main Python help list

2010-12-03 Thread Stefan Behnel
Joel Schwartz, 04.12.2010 08:19: I just went to sign up for the main Python help list and discovered that it is a closed list What (and where) is the main Python help list? Stefan ___ Tutor maillist - Tutor@python.org To unsubscribe or change

[Tutor] question

2010-09-28 Thread Roelof Wobben
Hello, Im now studying this page : http://openbookproject.net/thinkcs/python/english2e/ch16.html But I don't get it why aces are now lower then deuces in the cmp function. Roelof ___ Tutor maillist -

Re: [Tutor] question

2010-09-28 Thread Dave Angel
On 2:59 PM, Roelof Wobben wrote: Hello, Im now studying this page : http://openbookproject.net/thinkcs/python/english2e/ch16.html But I don't get it why aces are now lower then deuces in the cmp function. Roelof Why would you be surprised that aces are lower than deuces? If aces are

Re: [Tutor] question

2010-09-28 Thread Roelof Wobben
From: rwob...@hotmail.com To: da...@ieee.org Subject: RE: [Tutor] question Date: Tue, 28 Sep 2010 14:22:17 + Date: Tue, 28 Sep 2010 10:02:27 -0400 From: da...@ieee.org To: rwob...@hotmail.com CC: tutor@python.org Subject: Re: [Tutor] question On 2:59 PM, Roelof Wobben

Re: [Tutor] question

2010-09-28 Thread Dave Angel
On 9/28/2010 10:22 AM, Roelof Wobben wrote: Date: Tue, 28 Sep 2010 10:02:27 -0400 From: da...@ieee.org To: rwob...@hotmail.com CC: tutor@python.org Subject: Re: [Tutor] question On 2:59 PM, Roelof Wobben wrote: Hello, Im now studying this page : http://openbookproject.net/thinkcs

Re: [Tutor] question

2010-09-28 Thread Roelof Wobben
From: rwob...@hotmail.com To: da...@ieee.org Subject: RE: [Tutor] question Date: Tue, 28 Sep 2010 19:14:29 + Date: Tue, 28 Sep 2010 10:49:28 -0400 From: da...@ieee.org To: rwob...@hotmail.com; tutor@python.org Subject: Re: [Tutor] question On 9/28/2010 10:22 AM, Roelof

Re: [Tutor] question about import statement

2010-08-27 Thread Steven D'Aprano
On Fri, 27 Aug 2010 02:18:10 pm Greg Bair wrote: yeah, from package import * doesn't actually import every name from a module. For example, by default, names starting with an underscore are not imported. Alternatively, if you have a variable named __all__ in your module, and it's a list of

Re: [Tutor] question about import statement

2010-08-27 Thread Alan Gauld
Bill Allen walle...@gmail.com wrote *from tkinter import * from tkinter import ttk These two lines tell Python that our program needs two modules. The first, tkinter, is the standard binding to Tk, which when loaded also causes the existing Tk library on your system to be loaded. The

Re: [Tutor] question about import statement

2010-08-27 Thread Peter Otten
Greg Bair wrote: On 08/26/2010 10:29 PM, Hugo Arts wrote: On Thu, Aug 26, 2010 at 9:16 PM, Bill Allen walle...@gmail.com wrote: I did try that and of course it gave an error because it was necessary. I just did not know why. However, I later found an explanation on the web. Here it is:

[Tutor] question about lists and doctest

2010-08-26 Thread Roelof Wobben
hello, I have this programm # Add your doctests here: a_list[3] 42 a_list[6] 'Ni!' len(a_list) 8 a_list = ['test', 'test','test',42,'test','test','Ni!','test'] print a_list[3] print a_list[6] print len(a_list) if __name__ == '__main__': import doctest

Re: [Tutor] question about lists and doctest

2010-08-26 Thread Nitin Das
The doctest module searches for pieces of text that look like interactive Python sessions, and then executes those sessions to verify that they work exactly as shown. Here ur a_list[3] in docstring is 42 then doctest expects it to be 42 for success. Since u changed 42 to 16 then it is not = 42 as

[Tutor] question about import statement

2010-08-26 Thread Bill Allen
I was experimenting with Tk today, just trying it out. I found this example of a very simple hello world button click program. This is it. from tkinter import * from tkinter import ttk root = Tk() button = ttk.Button(root, text=Hello World).grid() root.mainloop() What I don't understand is

Re: [Tutor] question about import statement

2010-08-26 Thread Bill Allen
On Thu, Aug 26, 2010 at 7:44 PM, Corey Richardson kb1...@aim.com wrote: Why don't you try it out without the from tkinter import ttk statement, and see if it works? Bill Allen wrote: I was experimenting with Tk today, just trying it out. I found this example of a very simple hello world

Re: [Tutor] question about import statement

2010-08-26 Thread Bill Allen
On Thu, Aug 26, 2010 at 7:44 PM, Corey Richardson kb1...@aim.com wrote: Why don't you try it out without the from tkinter import ttk statement, and see if it works? Bill Allen wrote: I was experimenting with Tk today, just trying it out. I found this example of a very simple hello

Re: [Tutor] question about import statement

2010-08-26 Thread Hugo Arts
On Thu, Aug 26, 2010 at 9:16 PM, Bill Allen walle...@gmail.com wrote: I did try that and of course it gave an error because it was necessary.  I just did not know why.   However, I later found an explanation on the web. Here it is: from tkinter import * from tkinter import ttk These two

Re: [Tutor] question about import statement

2010-08-26 Thread Greg Bair
On 08/26/2010 10:29 PM, Hugo Arts wrote: On Thu, Aug 26, 2010 at 9:16 PM, Bill Allen walle...@gmail.com wrote: I did try that and of course it gave an error because it was necessary. I just did not know why. However, I later found an explanation on the web. Here it is: from tkinter

Re: [Tutor] question about import statement

2010-08-26 Thread Hugo Arts
On Thu, Aug 26, 2010 at 11:18 PM, Greg Bair gregb...@gmail.com wrote: On 08/26/2010 10:29 PM, Hugo Arts wrote: On Thu, Aug 26, 2010 at 9:16 PM, Bill Allen walle...@gmail.com wrote: I did try that and of course it gave an error because it was necessary.  I just did not know why.   However, I

[Tutor] question about a exercise.

2010-08-19 Thread Roelof Wobben
Hello, I follow the online book How to think like a computer scientist. But now I have a problem with a exercise. This is not homework. The exercise is : Using a text editor, create a Python script named tryme3.py . Write a function in this file called nine_lines that uses

Re: [Tutor] question about a exercise.

2010-08-19 Thread Joel Goldstick
Can you copy and paste the exact error message you receive in the traceback when you run your program. Also, copy the complete program here since it is only a handful of lines On Thu, Aug 19, 2010 at 7:31 AM, Roelof Wobben rwob...@hotmail.com wrote: Hello, I follow the online book How to

Re: [Tutor] question about a exercise.

2010-08-19 Thread Roelof Wobben
and then expand to 9 lines and then expand to the function clear_screen Roelof Date: Thu, 19 Aug 2010 08:37:25 -0400 Subject: Re: [Tutor] question about a exercise. From: joel.goldst...@gmail.com To: rwob...@hotmail.com CC: tutor@python.org Can you copy and paste the exact error

Re: [Tutor] question about a exercise.

2010-08-19 Thread Alan Gauld
Roelof Wobben rwob...@hotmail.com wrote I don't see a traceback only this output. That looks about right to me, what did you expect to see that was different? regel 1 regel 2 script terminated. = I have learned to do one problem at

[Tutor] Question about Dictionaries

2010-08-16 Thread Chorn, Guillaume
Hi All, I know that I can look up the value for a particular key in a dictionary, but can I look up the key associated with a particular value? I understand that this could be problematic from the standpoint of multiple keys having the same value, but even then I feel like Python could just

Re: [Tutor] Question about Dictionaries

2010-08-16 Thread Emile van Sebille
On 8/16/2010 10:44 AM Chorn, Guillaume said... Hi All, I know that I can look up the value for a particular key in a dictionary, but can I look up the key associated with a particular value? Yes. But you'll need to implement it. There are likely modules out there that'll do this, but it'd

Re: [Tutor] Question about Dictionaries

2010-08-16 Thread Lee Harr
I know that I can look up the value for a particular key in a dictionary, but can I look up the key associated with a particular value? I am using bidict in one of my projects: http://pypi.python.org/pypi/bidict/0.1.1 It's probably a bit more complex than what I need, but the parts I am

Re: [Tutor] Question about Dictionaries

2010-08-16 Thread Dave Angel
Chorn, Guillaume wrote: Hi All, I know that I can look up the value for a particular key in a dictionary, but can I look up the key associated with a particular value? I understand that this could be problematic from the standpoint of multiple keys having the same value, but even then I feel

Re: [Tutor] Question about Dictionaries

2010-08-16 Thread Huy Ton That
What do you mean by subclass? On Aug 16, 2010 3:26 PM, Emile van Sebille em...@fenx.com wrote: On 8/16/2010 10:44 AM Chorn, Guillaume said... Hi All, I know that I can look up the value for a particular key in a dictionary, but can... Yes. But you'll need to implement it. There are

Re: [Tutor] Question about Dictionaries

2010-08-16 Thread Alan Gauld
Chorn, Guillaume guillaume_ch...@merck.com wrote dictionary, but can I look up the key associated with a particular value? Not directly but its not hard to do bearing in mind you will get a collection back.: d = {1:10,2:20,3:10,4:20} val = 10 ks = [k for k in d if d[k] == val] ks [1,

Re: [Tutor] Question about Dictionaries

2010-08-16 Thread Chorn, Guillaume
all key-value pairings were unique... -Original Message- From: Dave Angel [mailto:da...@ieee.org] Sent: Monday, August 16, 2010 4:03 PM To: Chorn, Guillaume Cc: tutor@python.org Subject: Re: [Tutor] Question about Dictionaries Chorn, Guillaume wrote: Hi All, I know that I can look up

Re: [Tutor] Question about Dictionaries

2010-08-16 Thread Steven D'Aprano
On Tue, 17 Aug 2010 03:44:33 am Chorn, Guillaume wrote: Hi All, I know that I can look up the value for a particular key in a dictionary, but can I look up the key associated with a particular value? I understand that this could be problematic from the standpoint of multiple keys having the

Re: [Tutor] Question about Dictionaries

2010-08-16 Thread Emile van Sebille
On 8/16/2010 4:12 PM Huy Ton That said... What do you mean by subclass? snip If you need repeated access such that iterating over a large dict frequently impacts performance, you could subclass dict and maintain a second index allowing instant access to the keys associated with a specific

Re: [Tutor] Question about Dictionaries

2010-08-16 Thread Steven D'Aprano
On Tue, 17 Aug 2010 09:12:39 am Huy Ton That wrote: What do you mean by subclass? It's a fundamental term from object-oriented programming. If you have a class that defines certain data and behaviour, you can create a *subclass* that inherits the same data and behaviour, except for specific

[Tutor] Question about strings

2010-08-09 Thread Daniel
Hi, I'm trying to solve an exercise, a beginners one but I have a question. So the exercise sounds like this: Define a string s = ’colorless’. Write a Python statement that changes this to ’colour- less’, using only the slice and concatenation operations. So I did wrote this: *1)s = 'colorless'

Re: [Tutor] Question about strings

2010-08-09 Thread Luke Paireepinart
Hey email in plain text in the future, HTML is not kind to mobile screens and in general you should plaintext reply to tech lists. All list indices start from 0. But you don't get the last value. So slice[1:5] would skip the first char and then include the next 3. It's the same as range.

Re: [Tutor] Question about strings

2010-08-09 Thread Alan Gauld
Daniel asmosis.aste...@gmail.com wrote *1)s = 'colorless' 2)ss = s[:4] + 'u' + s[4:] *I do not understand something. So on the second line, the slicing lasts from the start of the s string to the forth character. Correct, slices include the first index but not the last. does the counting

Re: [Tutor] Question

2010-06-20 Thread Payal
On Sat, Jun 19, 2010 at 11:24:44AM +, ALAN GAULD wrote: Actually that's a point. I favour learning two languages that are semantically similar buut syntactically different. Thats why I chose JavaScript and VBScript as my tutorial languages, because the syntax of each is so different

Re: [Tutor] Question

2010-06-20 Thread bob gailer
On 6/20/2010 5:59 AM, Payal wrote: On Sat, Jun 19, 2010 at 11:24:44AM +, ALAN GAULD wrote: Actually that's a point. I favour learning two languages that are semantically similar buut syntactically different. Thats why I chose JavaScript and VBScript as my tutorial languages, because the

Re: [Tutor] Question

2010-06-20 Thread Alan Gauld
Steven D'Aprano st...@pearwood.info wrote Yea I took an intro to comp sci class(like 2 years ago) and a computer programming logic class(also like 2 years ago) both using pseudocode Good grief! How do they teach a class in computer programming using pseudocode??? Yes, doing that 2 years ago

Re: [Tutor] Question

2010-06-20 Thread Alan Gauld
Mark Lawrence breamore...@yahoo.co.uk wrote ...I take issue with this learn a language in five minutes bit. It took me five years to get to grips with plain old C. C is non trivial but not hard (certainly compared to C++) But 5 years is enough to do a lot more than get to grips with a

Re: [Tutor] Question

2010-06-20 Thread Alan Gauld
Payal payal-pyt...@scriptkitchen.com wrote Hijacking the thread a bit. What about learning Jython and Python? Do I need to know Java to learn Jython? No, but you will need to know the class heirarchy and reading the documentation will be difficulty without at least a basic knowledge of the

Re: [Tutor] Question

2010-06-19 Thread Alan Gauld
Independent Learner nbr1ninrs...@yahoo.com wrote ~I was wondering if I should try to learn 2 programming languages at once, Python and C++. No, no no! If it had been a different pair I might have said try it. But C++ is one of the most difficult, complex and difficult programming

Re: [Tutor] Question

2010-06-19 Thread Steven D'Aprano
On Sat, 19 Jun 2010 01:55:05 pm Independent Learner wrote: ~I was wondering if I should try to learn 2 programming languages at once, Python and C++. I don't know. That depends on you. How much time do you have to spend on learning the languages? If it's one hour a week, you'll have trouble

Re: [Tutor] Question

2010-06-19 Thread Dave Angel
Alan Gauld wrote: div class=moz-text-flowed style=font-family: -moz-fixedIndependent Learner nbr1ninrs...@yahoo.com wrote ~I was wondering if I should try to learn 2 programming languages at once, Python and C++. No, no no! If it had been a different pair I might have said try it. But C++

Re: [Tutor] Question

2010-06-19 Thread ALAN GAULD
belt, then go ahead and learn anything else you like. But even then, if you have to learn two new ones at the same time, I'd recommend they be very unlike. So you could learn Lisp or Forth at the same time as you were learning Ruby, but I'd not try to learn Perl and Python at the

Re: [Tutor] Question

2010-06-19 Thread David Hutto
On Sat, Jun 19, 2010 at 7:24 AM, ALAN GAULD alan.ga...@btinternet.com wrote: belt, then go ahead and learn anything else you like. But even then, if you have to learn two new ones at the same time, I'd recommend they be very unlike. So you could learn Lisp or Forth at the same time as you

Re: [Tutor] Question

2010-06-19 Thread Steve Bricker
Back in ancient days, my college training began with FORTRAN the first semester, then COBOL, ALC (BAL), and RPG in the second semester. Even though this was back when dinosaurs were still ruling the earth, the learning program remains relevant. Understand one language in a practical way, then

Re: [Tutor] Question

2010-06-19 Thread David Hutto
On Sat, Jun 19, 2010 at 4:56 AM, Steven D'Aprano st...@pearwood.info wrote: On Sat, 19 Jun 2010 01:55:05 pm Independent Learner wrote: ~I was wondering if I should try to learn 2 programming languages at once, Python and C++. I don't know. That depends on you. How much time do you have to

Re: [Tutor] Question

2010-06-19 Thread Mark Lawrence
On 19/06/2010 04:55, Independent Learner wrote: ~After doing a google search, I could not find any good solid anwsers. So I will apologize ahead of time since this is not really a Python specific question. However... ~I was wondering if I should try to learn 2 programming languages at once,

Re: [Tutor] Question

2010-06-19 Thread Knacktus
~So is it better to learn 1 programming language first, then learn another. Or better to pretty much learn them at the same time? And why? First, I think python is a bit underrated for creating real applications. I'm amazed again and again by it's power on all programming scales (e.g. quick

Re: [Tutor] Question

2010-06-19 Thread bob gailer
6/19/2010 11:51 AM, Steve Bricker wrote: Back in ancient days, my college training began with FORTRAN the first semester, then COBOL, ALC (BAL), and RPG in the second semester. Back in even more ancient days, my college training began with IBM 650 machine language, then ALC (SOAP), then

[Tutor] Question

2010-06-18 Thread Independent Learner
~After doing a google search, I could not find any good solid anwsers. So I will apologize ahead of time since this is not really a Python specific question. However... ~I was wondering if I should try to learn 2 programming languages at once, Python and C++. Obviously I am working on learning

[Tutor] Question about packaging with distutils (specifying metadata)

2010-05-17 Thread steve
Hello, I am preparing a package for distribution using distutils and when writing the setup.py, i want to specific meta-data like version, author, maintainer ...etc. My question is, assuming that I already have all of that information in the package's __init__.py as __meta-data__

Re: [Tutor] Question about packaging with distutils (specifying metadata)

2010-05-17 Thread Steven D'Aprano
On Tue, 18 May 2010 08:27:09 am steve wrote: Hello, I am preparing a package for distribution using distutils and when writing the setup.py, i want to specific meta-data like version, author, maintainer ...etc. My question is, assuming that I already have all of that information in the

[Tutor] Question about Python being object oriented

2010-05-08 Thread Tino Dai
Hi Everybody, My friend and I were having a disagreement about Python. Has Python always been an OO language or was it at one point a procedural language like C? Thanks! -Tino ___ Tutor maillist - Tutor@python.org To unsubscribe or change

Re: [Tutor] Question about Python being object oriented

2010-05-08 Thread Eike Welk
On Saturday May 8 2010 18:19:53 Tino Dai wrote: Hi Everybody, My friend and I were having a disagreement about Python. Has Python always been an OO language or was it at one point a procedural language like C? Thanks! The Wikipedia article states: Yes, it was always an object oriented

Re: [Tutor] Question about Python being object oriented

2010-05-08 Thread bob gailer
On 5/8/2010 12:19 PM, Tino Dai wrote: Hi Everybody, My friend and I were having a disagreement about Python. Has Python always been an OO language or was it at one point a procedural language like C? Thanks! OO and procedural are not mutually exclusive! From

Re: [Tutor] Question about Python being object oriented

2010-05-08 Thread Lie Ryan
On 05/09/10 02:19, Tino Dai wrote: Hi Everybody, My friend and I were having a disagreement about Python. Has Python always been an OO language or was it at one point a procedural language like C? Thanks! AFAIK Python has always been a mixed paradigm language. You can write fully OO

[Tutor] QUESTION REGARDING STATUS OF MY SUBSCRIPTION FW: Auto-response for your message to the Tutor mailing list

2010-04-16 Thread Peter Meagher
GREETINGS, THIS EMAIL WOULD INDICATE THAT I AM ON THE SUBSCRIPTION LIST. HOWEVER, I GOT ANOTHER EMAIL, THAT CAME IN AT PRECISELY THE SAME TIME AS THE ORIGINAL MESSAGE THAT I AM FORWARDING YOU. THAT INDICATES THAT THERE WAS AN ISSUE ADDING ME TO THE LIST. I'VE PASTED IT IN THE BLOCK OF TEXT

Re: [Tutor] QUESTION REGARDING STATUS OF MY SUBSCRIPTION FW: Auto-response for your message to the Tutor mailing list

2010-04-16 Thread Dave Angel
Peter Meagher wrote: GREETINGS, THIS EMAIL WOULD INDICATE THAT I AM ON THE SUBSCRIPTION LIST. HOWEVER, I GOT ANOTHER EMAIL, THAT CAME IN AT PRECISELY THE SAME TIME AS THE ORIGINAL MESSAGE THAT I AM FORWARDING YOU. THAT INDICATES THAT THERE WAS AN ISSUE ADDING ME TO THE LIST. I'VE PASTED IT IN

[Tutor] Question about importing

2010-02-02 Thread Григор
Hi all. How can I import a module which is located in the upper directory. -- Криле имат само тия, дето дето сърцето им иска да лети ! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

Re: [Tutor] Question about importing

2010-02-02 Thread David Hutto
--- On Tue, 2/2/10, Григор grigor.ko...@gmail.com wrote: From: Григор grigor.ko...@gmail.com Subject: [Tutor] Question about importing To: Python Tutor tutor@python.org Date: Tuesday, February 2, 2010, 12:07 PM Hi all. How can I import a module which is located in the upper directory. I

Re: [Tutor] Question about importing

2010-02-02 Thread Grigor Kolev
В 10:33 -0800 на 02.02.2010 (вт), David Hutto написа: --- On Tue, 2/2/10, Григор grigor.ko...@gmail.com wrote: From: Григор grigor.ko...@gmail.com Subject: [Tutor] Question about importing To: Python Tutor tutor@python.org Date: Tuesday, February

Re: [Tutor] Question about importing

2010-02-02 Thread David Hutto
--- On Tue, 2/2/10, Grigor Kolev grigor.ko...@gmail.com wrote: From: Grigor Kolev grigor.ko...@gmail.com Subject: Re: [Tutor] Question about importing To: David Hutto dwightdhu...@yahoo.com Cc: Python Tutor tutor@python.org Date: Tuesday, February 2, 2010, 2:28 PM В 10:33 -0800 на 02.02.2010

Re: [Tutor] Question about importing

2010-02-02 Thread Grigor Kolev
В 11:47 -0800 на 02.02.2010 (вт), David Hutto написа: --- On Tue, 2/2/10, Grigor Kolev grigor.ko...@gmail.com wrote: From: Grigor Kolev grigor.ko...@gmail.com Subject: Re: [Tutor] Question about importing To: David Hutto dwightdhu...@yahoo.com Cc

Re: [Tutor] Question about importing

2010-02-02 Thread Eike Welk
On Tuesday February 2 2010 20:28:03 Grigor Kolev wrote: Can I use something like this #-- import sys sys.path.append(/home/user/other) import module #- Yes I think so. I just tried something

Re: [Tutor] Question about importing

2010-02-02 Thread David Hutto
--- On Tue, 2/2/10, Grigor Kolev grigor.ko...@gmail.com wrote: From: Grigor Kolev grigor.ko...@gmail.com Subject: Re: [Tutor] Question about importing To: David Hutto dwightdhu...@yahoo.com Cc: Python Tutor tutor@python.org Date: Tuesday, February 2, 2010, 2:54 PM В 11:47 -0800 на

<    1   2   3   4   5   6   7   8   9   10   >