Re: [Tutor] Variable Swap

2007-01-30 Thread Simon Brunning
On 1/30/07, Steve Nelson <[EMAIL PROTECTED]> wrote: > > x, y = y, x > > Doesn't this use temporary variables? Python doesn't really *have* variables, as such, so no. What it does is to create a tuple referring to the objects (or just possibly one object) referred to by the names 'y' and 'x', then

Re: [Tutor] Set changing order of items?

2007-01-19 Thread Simon Brunning
On 1/19/07, Adam Cripps <[EMAIL PROTECTED]> wrote: > I'm adding strings to a Set to prevent duplicates. However, the > strings are meant to be in the correct order. When I add the string to > the Set, the order seems to change (and I don't seem to be able to > predict what order they are in). Sets

Re: [Tutor] python web dev

2007-01-04 Thread Simon Brunning
On 1/4/07, OkaMthembo <[EMAIL PROTECTED]> wrote: > this is my first post. Welcome! > please could you tell me which is the best > lightweight python web framework? Best? That's a potentially contensious one. But I can tell you that if you were to look at either Django or TurboGears you wouldn't

Re: [Tutor] getting all txt files in a folder

2006-12-12 Thread Simon Brunning
On 12/12/06, Toon Pieton <[EMAIL PROTECTED]> wrote: > Is there any way to get all the txt files in a certain folder and all of its > "sub"-folders? With sub-folder I mean all the folders inside the previously > found folder. Any help would be greatly appreciated http://aspn.activestate.com/ASPN/Co

Re: [Tutor] WHy use SOAPpy if we can do the things using httplibmoduleRe: How to connect to the SOAP server and make arequest..........

2006-11-29 Thread Simon Brunning
On 11/28/06, Andreas Kostyrka <[EMAIL PROTECTED]> wrote: > Wimp! You can do it in binary machine code. Binary? You need ones *and* zeros? Loser. ;-) -- Cheers, Simon B [EMAIL PROTECTED] http://www.brunningonline.net/simon/blog/ ___ Tutor maillist -

Re: [Tutor] WHy use SOAPpy if we can do the things using httplib moduleRe: How to connect to the SOAP server and make a request..........

2006-11-28 Thread Simon Brunning
On 11/28/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote: > > I read the URL suggested by Simon, In that URL, it is given how to create > the SOAP ENVELOPE using > httplib, so why bother about using SOAPpy...?? The article discusses two ways of doing SOAP; by hand, and using SOAPpy. Building the SO

Re: [Tutor] What is the meaning of using single underscore in front of variable name

2006-11-28 Thread Simon Brunning
On 11/28/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote: > What does this mean? > > _url = 'http://api.google.com/search/beta2' > _namespace = 'urn:GoogleSearch' > > Single underscore as a prefix in variable naming...?? whats it for?? It means "private by convention" - see

Re: [Tutor] How to connect to the SOAP server and make a request..........

2006-11-28 Thread Simon Brunning
On 11/28/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote: > I am using SOAPpy module to make SOAP requests. > > Can someone point me documentation that has list of functions that can be > used for carrying out various tasks. --

Re: [Tutor] A strange problem--Django

2006-11-16 Thread Simon Brunning
On 11/16/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote: > Its not me and I dont know what is Django. :)- Google does: . ;-) But anyway, it looks like there's a problem at developeriq's end, so you'll have to contact them to get it fixed. -- Cheers, Simon

Re: [Tutor] A strange problem--Django

2006-11-16 Thread Simon Brunning
On 11/16/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote: > I am trying to view this URL: > http://www.developeriq.com/aboutus.php3. > > But my browser (IE 7) is giving me the following message; > > > It worked! > Congratulations on your first Django-powered page. > Of course, you haven't actually d

Re: [Tutor] Which is the latest version of Python for windows

2006-11-09 Thread Simon Brunning
On 11/9/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote: > I am so sorry to disturb you. I hope u dont mind. > I cannot find the version 2.5 for Active Python. http://www.google.com/search?q=python+2.5+windows+download > Is it possible to use two versions at the same time..?? Yup. Install however

Re: [Tutor] Which is the latest version of Python for windows

2006-11-09 Thread Simon Brunning
On 11/9/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote: > Hi Folks, > > Can someone tell me which is teh latest version of Python on windows > platform? Version 2.5 -- Cheers, Simon B [EMAIL PROTECTED] http://www.brunningonline.net/simon/blog/ ___ Tuto

Re: [Tutor] Cal command in python...

2006-11-02 Thread Simon Brunning
On 11/2/06, Kent Johnson <[EMAIL PROTECTED]> wrote: > In the Python standard library. Much of the library is written in Python > and supplied as source. On Windows it will be something like > C:\Python25\Lib\calendar.py. On other platforms I don't know the path > but it will be part of the Python i

Re: [Tutor] problem importing class

2006-10-26 Thread Simon Brunning
On 10/26/06, shawn bright <[EMAIL PROTECTED]> wrote: > import site Try this for a clue: print site.__file__ -- Cheers, Simon B [EMAIL PROTECTED] http://www.brunningonline.net/simon/blog/ ___ Tutor maillist - Tutor@python.org http://mail.python.org/m

Re: [Tutor] OOP and Python.. a gentle remark

2006-10-25 Thread Simon Brunning
On 10/25/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote: > Why is it necessary to explicity use self argument in the class functions > ?? I feel the language/interpreter should figure out which object has called > the function? Isnt it ? (the use of 'self' keyword really confuses me. and > to make

Re: [Tutor] need some class / module help

2006-10-20 Thread Simon Brunning
On 10/20/06, shawn bright <[EMAIL PROTECTED]> wrote: > oh, one more thing. > these objects are going to be created at the rate of about 20 / minute in a > thread. > at some point is this going to be a problem ? do they go away over time? > Or do i need to write something that will kill them? If yo

Re: [Tutor] Code for checking whether an input string is a palindrome or not.

2006-10-13 Thread Simon Brunning
def pal(spam): return spam == spam[::-1] ;-) -- Cheers, Simon B [EMAIL PROTECTED] http://www.brunningonline.net/simon/blog/ ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How do I open my browser from within a Python program

2006-09-15 Thread Simon Brunning
On 9/15/06, Will Shattuck <[EMAIL PROTECTED]> wrote: > On 9/14/06, Simon Brunning <[EMAIL PROTECTED]> wrote: > > > > To open a web browser from within a python program, you want something like: > > > > import webbrowser > > webbrowser.open('www.goo

Re: [Tutor] How do I open my browser from within a Python program

2006-09-14 Thread Simon Brunning
On 9/14/06, nimrodx <[EMAIL PROTECTED]> wrote: > Basically a dumb question I can't seem to find the answer to. > > How do I execute a bash command from within a python program. Well, this question doesn't match the subject line. So, *two* answers. To open a web browser from within a python progra