Re: Help please, why doesn't it show the next input?

2013-09-11 Thread Terry Reedy
On 9/11/2013 3:31 PM, William Bryant wrote: What is .lower() ? The Python docs have a pretty good index that includes 'lower() (str method)'. Learn to use it. If you know that .lower is a str method, help(str.lower) at interactive prompt prints a page. Learn to use help(ob) also. --

Re: Help please, why doesn't it show the next input?

2013-09-11 Thread Jugurtha Hadjar
On 09/11/2013 08:33 PM, William Bryant wrote: @Jugurtha Hadjar What does user_input.lower() mean/do? Hello, As did other people point out, it returns the lower case of a string. It's not user_input.lower(), it's any_string.lower() For example: Try this on your python prompt mystring =

Re: Help please, why doesn't it show the next input?

2013-09-11 Thread Jugurtha Hadjar
On 09/12/2013 02:08 AM, Jugurtha Hadjar wrote: Try this on your python prompt mystring = ThIs Is ThE wAy SoMe StUpId PeOpLe WrItE i DoN't KnOw WhY! mystring.lower() This should return: You shouldn't treat people of stupid, but I feel your pain, or let's be more realistic: this is the

Help please, why doesn't it show the next input?

2013-09-10 Thread William Bryant
Hey, I am very new to python, I am 13 years old. I want to be able to make a program the caculates the mean, meadian and mode. When i run the program, an input field pops up and says 'Does your list contain, a number or a string?' like I want it to, but when I type in something that is not one

Re: Help please, why doesn't it show the next input?

2013-09-10 Thread John Gordon
In ef8de6db-5f35-4d07-8306-bcec47b1e...@googlegroups.com William Bryant gogobe...@gmail.com writes: Hey, I am very new to python, I am 13 years old. I want to be able to make = a program the caculates the mean, meadian and mode. When i run the program,= an input field pops up and says 'Does

Re: Help please, why doesn't it show the next input?

2013-09-10 Thread William Bryant
On Wednesday, September 11, 2013 5:11:23 PM UTC+12, John Gordon wrote: In ef8de6db-5f35-4d07-8306-bcec47b1e...@googlegroups.com William Bryant gogobe...@gmail.com writes: Hey, I am very new to python, I am 13 years old. I want to be able to make = a program the caculates the mean,

Re: Help please

2013-04-01 Thread Steven D'Aprano
On Sun, 31 Mar 2013 22:41:32 -0700, khaosyt wrote: On Monday, April 1, 2013 1:24:52 AM UTC-4, Chris Angelico wrote: On Mon, Apr 1, 2013 at 4:15 PM, khao...@gmail.com wrote: integer = input(Enter a positive integer: ) again = raw_input(Again? (Y/N): ) Okay, the first

Help please

2013-03-31 Thread khaosyt
I want to add up the integers of this code in one line. For example, if I had the code integer = 0 denom = 10 again = y #sentinel: while again == y or again == Y: integer = input(Enter a positive integer: ) while denom = integer: denom = denom*10 while denom 1: denom

Re: Help please

2013-03-31 Thread Chris Angelico
On Mon, Apr 1, 2013 at 4:15 PM, khao...@gmail.com wrote: integer = input(Enter a positive integer: ) again = raw_input(Again? (Y/N): ) Okay, the first thing I'm going to say is: Don't use input() in Python 2. It's dangerous in ways you won't realize. Use int(raw_input(...)) for

Re: Help please

2013-03-31 Thread khaosyt
On Monday, April 1, 2013 1:24:52 AM UTC-4, Chris Angelico wrote: On Mon, Apr 1, 2013 at 4:15 PM, khao...@gmail.com wrote: integer = input(Enter a positive integer: ) again = raw_input(Again? (Y/N): ) Okay, the first thing I'm going to say is: Don't use input() in Python

Re: Newbie, homework help, please.

2012-04-23 Thread Jean-Michel Pichavant
someone wrote: I have a professor who should be [*snip*] the best person I've ever met I hope he's (not) reading this list :o) Non python advise : be very careful on the internet. JM -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie, homework help, please.

2012-04-22 Thread someone
On Saturday, April 21, 2012 5:48:29 PM UTC-5, BartC wrote: someone wesbr...@gmail.com wrote in message news:9533449.630.1335042672358.JavaMail.geo-discussion-forums@ynmf4... On Saturday, April 21, 2012 3:44:49 PM UTC-5, BartC wrote: Hi, Bart: Thank you, your post is working now, maybe, I

Newbie, homework help, please.

2012-04-21 Thread someone
Ok, this is my dillema, not only am I new to this programming buisness, before the last few days, I did not even know what python was, and besides opening up the internet or word documents, that is most of what I know. Yet, I have a professor who should be on Psych medication for giving us 3

Re: Newbie, homework help, please.

2012-04-21 Thread someone
On Saturday, April 21, 2012 12:28:33 PM UTC-5, someone wrote: Ok, this is my dillema, not only am I new to this programming buisness, before the last few days, I did not even know what python was, and besides opening up the internet or word documents, that is most of what I know. Yet, I

Re: Newbie, homework help, please.

2012-04-21 Thread Ian Kelly
On Sat, Apr 21, 2012 at 11:28 AM, someone wesbr...@gmail.com wrote: for item in userinput:    openfile=open(textfile,'w');openfile.writelines(%s\n % item for item in userinput);openfile.close() The for loop here means that the file will be written and rewritten four times. The end result is

Re: Newbie, homework help, please.

2012-04-21 Thread Jon Clements
On Saturday, 21 April 2012 18:35:26 UTC+1, someone wrote: On Saturday, April 21, 2012 12:28:33 PM UTC-5, someone wrote: Ok, this is my dillema, not only am I new to this programming buisness, before the last few days, I did not even know what python was, and besides opening up the

Re: Newbie, homework help, please.

2012-04-21 Thread MRAB
On 21/04/2012 18:28, someone wrote: Ok, this is my dillema, not only am I new to this programming buisness, before the last few days, I did not even know what python was, and besides opening up the internet or word documents, that is most of what I know. Yet, I have a professor who should be

Re: Newbie, homework help, please.

2012-04-21 Thread BartC
someone wesbr...@gmail.com wrote in message news:32945367.2045.1335029313436.JavaMail.geo-discussion-forums@ynjn4... 6) Display the SHI data read from the file in the interpreter with a border around the SHI data (include a buffer of 1 line/space between the border and SHI data). An example

Re: Newbie, homework help, please.

2012-04-21 Thread Roy Smith
In article 32945367.2045.1335029313436.JavaMail.geo-discussion-forums@ynjn4, someone wesbr...@gmail.com wrote: I'm not going to do your homework for you (nor do I expect anybody else will), but I'll give you a hint about one sticky part. 6) Display the SHI data read from the file in the

Re: Newbie, homework help, please.

2012-04-21 Thread Tim Chase
On 04/21/12 14:44, Roy Smith wrote: *** * * * First Name and Last * * ENGR 109-X * * Fall 2999 * * Format Example * * * ***

Re: Newbie, homework help, please.

2012-04-21 Thread someone
On Saturday, April 21, 2012 12:28:33 PM UTC-5, someone wrote: Ok, this is my dillema, not only am I new to this programming buisness, before the last few days, I did not even know what python was, and besides opening up the internet or word documents, that is most of what I know. Yet, I

Re: Newbie, homework help, please.

2012-04-21 Thread someone
On Saturday, April 21, 2012 12:28:33 PM UTC-5, someone wrote: Ok, this is my dillema, not only am I new to this programming buisness, before the last few days, I did not even know what python was, and besides opening up the internet or word documents, that is most of what I know. Yet, I

Re: Newbie, homework help, please.

2012-04-21 Thread Roy Smith
On 04/21/12 14:44, Roy Smith wrote: print * %-*s * % (max_length, data) On Apr 21, 2012, at 4:12 PM, Tim Chase wrote: Sounds like a lot more work and less flexible than using the (underemployed) .ljust() or .center() methods of a string. :-) print * %s * % data.ljust(42) Six of one,

Re: Newbie, homework help, please.

2012-04-21 Thread GrayShark
A lot of to do about this. --- #!/usr/bin/python xl = [First Name and Last,ENGR 109-X,Fall 2999,Format Example] xl_max = 0 for x in xl: xl_max = max ( len( x ), xl_max ) topBorder = '^'*( xl_max + 4 ) print topBorder for x in xl: print * %s%s * % ( x,

Re: Newbie, homework help, please.

2012-04-21 Thread someone
On Saturday, April 21, 2012 12:28:33 PM UTC-5, someone wrote: Ok, this is my dillema, not only am I new to this programming buisness, before the last few days, I did not even know what python was, and besides opening up the internet or word documents, that is most of what I know. Yet, I

Re: Newbie, homework help, please.

2012-04-21 Thread BartC
someone wesbr...@gmail.com wrote in message news:4068590.2196.1335038608255.JavaMail.geo-discussion-forums@ynjn4... textTuple = border(SHI) for lines in textTuple: print (lines) Thanks your Bart for trying, I don't understand how it works or if you tried to place my script in python to

Re: Newbie, homework help, please.

2012-04-21 Thread BartC
someone wesbr...@gmail.com wrote in message news:9071485.2215.1335040139144.JavaMail.geo-discussion-forums@yniw15... Thanks Bart for trying, it helped me out a little more by showing me a little more than I knew, but I tried and I am not sure if it does fit my example due to it was too many

Re: Newbie, homework help, please.

2012-04-21 Thread someone
On Saturday, April 21, 2012 3:44:49 PM UTC-5, BartC wrote: someone wesbr...@gmail.com wrote in message news:9071485.2215.1335040139144.JavaMail.geo-discussion-forums@yniw15... Thanks Bart for trying, it helped me out a little more by showing me a little more than I knew, but I tried and I

Re: Newbie, homework help, please.

2012-04-21 Thread Kiuhnm
On 4/21/2012 22:26, GrayShark wrote: --- #!/usr/bin/python xl = [First Name and Last,ENGR 109-X,Fall 2999,Format Example] xl_max = 0 for x in xl: xl_max = max ( len( x ), xl_max ) Or xl_max = max([len(x) for x in xl]) topBorder = '^'*( xl_max + 4 ) print

Re: Newbie, homework help, please.

2012-04-21 Thread BartC
someone wesbr...@gmail.com wrote in message news:9533449.630.1335042672358.JavaMail.geo-discussion-forums@ynmf4... On Saturday, April 21, 2012 3:44:49 PM UTC-5, BartC wrote: Hi, Bart: Thank you, your post is working now, maybe, I did something wrong, unfortunately, you are right, my setup for

Re: Newbie, homework help, please.

2012-04-21 Thread duncan smith
On 21/04/12 23:48, BartC wrote: someone wesbr...@gmail.com wrote in message news:9533449.630.1335042672358.JavaMail.geo-discussion-forums@ynmf4... On Saturday, April 21, 2012 3:44:49 PM UTC-5, BartC wrote: Hi, Bart: Thank you, your post is working now, maybe, I did something wrong,

Re: Newbie, homework help, please.

2012-04-21 Thread Michael Torrie
On 04/21/2012 02:14 PM, someone wrote: Thanks for your reply Mr. Roy Smith. Also, thanks for the tip. Maybe I did not make myself as clear or maybe you did not understand my post. It states homework help, and I am doing this post to get help before I pay somebody to show me how to do it,

hi can someone help please key bind

2011-10-15 Thread Gary
Hi im trying to use key bind on Tkinter to call this function def Start(): for i in range(60,-1,-1): ent['text'] = i time.sleep(1) root.update() ent['text'] = 'Time Out!' root.update() i know the function is ok as i have assigned a button and i calls the

Re: hi can someone help please key bind

2011-10-15 Thread MRAB
On 15/10/2011 18:30, Gary wrote: Hi im trying to use key bind on Tkinter to call this function def Start(): for i in range(60,-1,-1): ent['text'] = i time.sleep(1) root.update() ent['text'] = 'Time Out!' root.update() i know the function is ok as i have assigned

Re: hi can someone help please key bind

2011-10-15 Thread Alexander Kapps
On 15.10.2011 19:30, Gary wrote: Hi im trying to use key bind on Tkinter to call this function def Start(): for i in range(60,-1,-1): ent['text'] = i time.sleep(1) root.update() ent['text'] = 'Time Out!' root.update() i know the function is ok as i have assigned a button and i calls the

Re: Can someone help please

2011-07-22 Thread Jonathan Hartley
Hey! Is Billy a responder, rather than the OP? Sorry then! My previous point is entirely nullified. -- http://mail.python.org/mailman/listinfo/python-list

Re: Can someone help please

2011-07-22 Thread Jonathan Hartley
Hey Billy. That may not be the important part of the code, but the many people giving up their free time to read it and help you don't know that. It's probably most helpful to give them a working example so as not to waste their time. Just sayin for future, is all. :-) Best regards, Jonathan

Re: Can someone help please

2011-07-22 Thread rantingrick
On Jul 21, 12:02 pm, Gary woody...@sky.com wrote: -- total = ' ' os.chdir('/home/woodygar/Desktop/Docs') for i in os.listdir('.'): -- i was a bad local var choice here! i and x are typically

Can someone help please

2011-07-21 Thread Gary
Hi Can someone help me with this code below please, For some reason it will not send me the first text file in the directory. I made up an empty file a.txt file with nothing on it and it sends the files i need but would like to fix the code. Thanks total = ' '

Re: Can someone help please

2011-07-21 Thread woooee
On Jul 21, 10:02 am, Gary woody...@sky.com wrote: For some reason it will not send me the first text file in the directory. You have to print an unsorted list of the directory to know the name or the first file in the directory. Files are not stored on disk in alphabetical order, but are many

Re: Can someone help please

2011-07-21 Thread Billy Mays
On 07/21/2011 01:02 PM, Gary wrote: Hi Can someone help me with this code below please, For some reason it will not send me the first text file in the directory. I made up an empty file a.txt file with nothing on it and it sends the files i need but would like to fix the code. Thanks total =

Re: Can someone help please

2011-07-21 Thread Gary Herron
On 07/21/2011 10:02 AM, Gary wrote: Hi Can someone help me with this code below please, For some reason it will not send me the first text file in the directory. I made up an empty file a.txt file with nothing on it and it sends the files i need but would like to fix the code. Thanks total

Re: Can someone help please

2011-07-21 Thread Gary Herron
On 07/21/2011 10:23 AM, Billy Mays wrote: On 07/21/2011 01:02 PM, Gary wrote: Hi Can someone help me with this code below please, For some reason it will not send me the first text file in the directory. I made up an empty file a.txt file with nothing on it and it sends the files i need but

Re: Can someone help please

2011-07-21 Thread Gary Wood
Hi Thanks for your reply's and sorry guys for not explaining properly ok the problem with the code, which i never realised before, is it sends the first txt file as the header or subject field in an email and the rest in the body of the email which i don't want. I would like all the txt files in

Re: Can someone help please

2011-07-21 Thread Billy Mays
On 07/21/2011 01:41 PM, Gary Herron wrote: On 07/21/2011 10:23 AM, Billy Mays wrote: On 07/21/2011 01:02 PM, Gary wrote: Hi Can someone help me with this code below please, For some reason it will not send me the first text file in the directory. I made up an empty file a.txt file with nothing

Re: Can someone help please

2011-07-21 Thread D'Arcy J.M. Cain
On Thu, 21 Jul 2011 18:43:48 +0100 Gary Wood python...@sky.com wrote: Hi Thanks for your reply's and sorry guys for not explaining properly ok the problem with the code, which i never realised before, is it sends the first txt file as the header or subject field in an email and the rest in

Re: Of Functions, Objects, and Methods-I NEED HELP PLEASE

2011-06-10 Thread Larry Hudson
On 06/08/2011 11:59 PM, Larry Hudson wrote: On 06/08/2011 01:09 PM, Cathy James wrote: I am almost there, but I need a little help: I would like to ... deleted text Here's one possible replacement. There are many other approaches as well. (This leaves the individual dogs as a (name, breed)

Re: Of Functions, Objects, and Methods-I NEED HELP PLEASE

2011-06-09 Thread Larry Hudson
On 06/08/2011 01:09 PM, Cathy James wrote: I am almost there, but I need a little help: I would like to a) print my dogs in the format index. name: breed as follows: 0. Mimi:Poodle 1.Sunny: Beagle 2. Bunny: German Shepard I am getting (0, ('Mimi', 'Poodle')) . Mimi : Poodle instead-what

Re: Of Functions, Objects, and Methods-I NEED HELP PLEASE

2011-06-09 Thread Ethan Furman
Larry Hudson wrote: On 06/08/2011 01:09 PM, Cathy James wrote: Dog Breed: )) while not dogs: print(Goodbye!!) sys.exit() else: else does not belong with while. else works just fine with while; it is the path taken when the while is exhausted, but not broken out

Re: Of Functions, Objects, and Methods-I NEED HELP PLEASE

2011-06-09 Thread Ethan Furman
Ethan Furman wrote: Larry Hudson wrote: On 06/08/2011 01:09 PM, Cathy James wrote: Dog Breed: )) while not dogs: print(Goodbye!!) sys.exit() else: else does not belong with while. else works just fine with while; it is the path taken when the while is

Of Functions, Objects, and Methods-I NEED HELP PLEASE

2011-06-08 Thread Cathy James
I am almost there, but I need a little help: I would like to a) print my dogs in the format index. name: breed as follows: 0. Mimi:Poodle 1.Sunny: Beagle 2. Bunny: German Shepard I am getting (0, ('Mimi', 'Poodle')) . Mimi : Poodle instead-what have I done wrong? b) I would like to append to

Re: Of Functions, Objects, and Methods-I NEED HELP PLEASE

2011-06-08 Thread Ethan Furman
Cathy James wrote: I am almost there, but I need a little help: I would like to a) print my dogs in the format index. name: breed as follows: 0. Mimi:Poodle 1.Sunny: Beagle 2. Bunny: German Shepard I am getting (0, ('Mimi', 'Poodle')) . Mimi : Poodle instead-what have I done wrong? b) I

Re: Of Functions, Objects, and Methods-I NEED HELP PLEASE

2011-06-08 Thread Benjamin Kaplan
On Wed, Jun 8, 2011 at 1:09 PM, Cathy James nambo...@gmail.com wrote: I am almost there, but I need a little help: I would like to a) print my dogs in the format  index. name: breed as follows: 0. Mimi:Poodle 1.Sunny: Beagle 2. Bunny: German Shepard I am getting (0, ('Mimi', 'Poodle'))

Re: Of Functions, Objects, and Methods-I NEED HELP PLEASE

2011-06-08 Thread John Gordon
In mailman.30.1307563778.11593.python-l...@python.org Cathy James nambo...@gmail.com writes: b) I would like to append to my list, but my line dogs.dogAppend() is giving a TypeError: for i in enumerate (self.dogAppend()): TypeError: 'list' object is not callable def dogAppend(self):

Re: FW: help please

2011-05-18 Thread Albert Hopkins
On Tue, 2011-05-17 at 21:46 -0300, Gabriel Genellina wrote: En Tue, 17 May 2011 16:48:29 -0300, Albert Hopkins mar...@letterboxes.org escribió: On Tue, 2011-05-17 at 10:18 -0600, Littlefield, Tyler wrote: Not to be pedantic or anything, and I may not be able to help regardless, but it

Re: FW: help please

2011-05-18 Thread Stuart MacKay
On 18/05/2011 12:47, Albert Hopkins wrote: On Tue, 2011-05-17 at 21:46 -0300, Gabriel Genellina wrote: En Tue, 17 May 2011 16:48:29 -0300, Albert Hopkins mar...@letterboxes.org escribió: On Tue, 2011-05-17 at 10:18 -0600, Littlefield, Tyler wrote Not to be pedantic or anything, and I may not

Re: FW: help please

2011-05-18 Thread Albert Hopkins
On Wed, 2011-05-18 at 13:39 +0100, Stuart MacKay wrote: If you were required to answer the question then asking the poster to phrase it better is going to help solve the issue faster but for a mailing list like this simply ignore it. Which is what I've done. --

FW: help please

2011-05-17 Thread hamed azarkeshb
From: hamed3...@hotmail.com To: webmas...@python.org Subject: help please Date: Tue, 17 May 2011 13:20:22 +0430 hi dearinwant to useautomation with catiaby python,but i dont know,how do we can creat catsafearrayvariant in python?please help me.i need urhelp by one example.thank u

Re: FW: help please

2011-05-17 Thread Gabriel Genellina
En Tue, 17 May 2011 06:43:51 -0300, hamed azarkeshb hamed3...@hotmail.com escribió: hi dearinwant to useautomation with catiaby python,but i dont know,how do we can creat catsafearrayvariant in python?please help me.i need urhelp by one example.thank u forany thing There are

Re: FW: help please

2011-05-17 Thread Littlefield, Tyler
...@python.org Subject: help please Date: Tue, 17 May 2011 13:20:22 +0430 hi dear inwant to useautomation with catiaby python,but i dont know,h*ow do we can creat catsafearrayvariant in python?* please help me.i need urhelp by one example. thank u forany thing -- Take care, Ty my website: http://tds

Re: FW: help please

2011-05-17 Thread Albert Hopkins
On Tue, 2011-05-17 at 10:18 -0600, Littlefield, Tyler wrote: Not to be pedantic or anything, and I may not be able to help regardless, but it looks like your space key is fixed, and I don't really care to pick through and try to play hangman with your message. I actually, at first glance,

Re: FW: help please

2011-05-17 Thread Gabriel Genellina
En Tue, 17 May 2011 16:48:29 -0300, Albert Hopkins mar...@letterboxes.org escribió: On Tue, 2011-05-17 at 10:18 -0600, Littlefield, Tyler wrote: Not to be pedantic or anything, and I may not be able to help regardless, but it looks like your space key is fixed, and I don't really care to pick

Re: FW: help please

2011-05-17 Thread Littlefield, Tyler
I can't remember exactly in which release 'perfect English skills' were added to Python runtime requirements, could you please refresh my memory? the one that requires people use the space key and check over their messages before they hit the enter key. Not so bad a request, I don't think. I am

Re: Help please! strange Tkinter behavior has me totally baffled.

2010-08-25 Thread Steve Ferg
Thanks mucho! That was it! -- Steve Ferg -- http://mail.python.org/mailman/listinfo/python-list

Help please! strange Tkinter behavior has me totally baffled.

2010-08-24 Thread Steve Ferg
I have a short Python script that uses Tkinter to display an image. Here is the script === import sys, os from Tkinter import * root = Tk() # A: create a global variable named root def showPicture(imageFilename): # global

Re: Help please! strange Tkinter behavior has me totally baffled.

2010-08-24 Thread Peter Otten
Steve Ferg wrote: I have a short Python script that uses Tkinter to display an image. Here is the script === import sys, os from Tkinter import * root = Tk() # A: create a global variable named root def

pynotify for python 3.1.. Help Please..

2010-04-02 Thread Jebagnana Das
Hello all, I'm trying to display system notifications in ubuntu.. I've tested pynotify in python 2.6 and it's working fine.. I want to know if i can do the same with python 3? I tried but there is no module named pynotify error is displayed.. Any of your help would be much appreciated..

Re: pynotify for python 3.1.. Help Please..

2010-04-02 Thread Xavier Ho
Hi Jebamnana, You'll probably have to copy the pynotify contents to the Python 3.1 folder. (under Libs\site-packages). You should be able to find the folder in the Python 2.6 paths. Once you do that, you can try to use it. But I don't know if pynotify will be able to run with Python 3.1. For

Re: pynotify for python 3.1.. Help Please..

2010-04-02 Thread Xavier Ho
On Fri, Apr 2, 2010 at 8:13 PM, Xavier Ho cont...@xavierho.com wrote: Hi Jebamnana, Jebagnana* Sorry. -Xav -- http://mail.python.org/mailman/listinfo/python-list

Re: pynotify for python 3.1.. Help Please..

2010-04-02 Thread Shashwat Anand
I guess it is a 3rd party module. Run setup.py with python3.1, however it can happen that the module is not python3 compatible. In that case try using 2to3 if you can. On Fri, Apr 2, 2010 at 3:43 PM, Xavier Ho cont...@xavierho.com wrote: On Fri, Apr 2, 2010 at 8:13 PM, Xavier Ho

Re: pynotify for python 3.1.. Help Please..

2010-04-02 Thread Jebagnana Das
Thank you for your reply. Unfortunately pynotify is not available as a .py file but as an .so (shared library) file. In both python 2.5 and 2.6 installations it can be found at /var/lib/python-support/python2.x/gtk-2.0/pynotify/__init__.py , _pynotify.so. I think it was written in

problem with pyqt.. help please...

2009-11-22 Thread Threader Slash
-- Forwarded message -- From: Jebagnana Das jebagnana...@gmail.com To: python-list@python.org Date: Sat, 21 Nov 2009 19:17:56 +0530 Subject: problem with pyqt.. help please... Hi friends, I've recently changed to ubuntu 9.04.. I've not had any problem

problem with pyqt.. help please...

2009-11-21 Thread Jebagnana Das
Hi friends, I've recently changed to ubuntu 9.04.. I've not had any problem with the installation of pyqt as it is available from the ubuntu repositories with umpteen number of packages.. Anyhow i've to download tarball file for python 3.1 and installed it.. I found that PyQt4

Re: problem with pyqt.. help please...

2009-11-21 Thread Benjamin Kaplan
On Sat, Nov 21, 2009 at 8:47 AM, Jebagnana Das jebagnana...@gmail.comwrote: Hi friends, I've recently changed to ubuntu 9.04.. I've not had any problem with the installation of pyqt as it is available from the ubuntu repositories with umpteen number of packages.. Anyhow i've to

Help Please

2009-08-21 Thread newb.py
In the book I am using, they give the following function as an example: def copyFile(oldFile, newFile): f1 = open(oldFile, 'r') f2 = open(newFile, 'w') while True: text = f1.read(50) if text == : break f2.write(text) f1.close() f2.close()

Re: Help Please

2009-08-21 Thread Albert Hopkins
Why do you post the same question twice within 5 minutes of each other? -- http://mail.python.org/mailman/listinfo/python-list

pySerial help please!

2009-02-10 Thread bmaschino
Hello all, I am very new to Python and I am using it because I needed an easy language to control a piece of equipment that connects to my computer via a serial cable. I am running Python 2.6 with pySerial 2.4 under Windows. I can get Python to create a serial port on COM1, but when I try to

Re: pySerial help please!

2009-02-10 Thread MRAB
bmasch...@gmail.com wrote: Hello all, I am very new to Python and I am using it because I needed an easy language to control a piece of equipment that connects to my computer via a serial cable. I am running Python 2.6 with pySerial 2.4 under Windows. I can get Python to create a serial port on

Re: pySerial help please!

2009-02-10 Thread Diez B. Roggisch
bmasch...@gmail.com schrieb: Hello all, I am very new to Python and I am using it because I needed an easy language to control a piece of equipment that connects to my computer via a serial cable. I am running Python 2.6 with pySerial 2.4 under Windows. I can get Python to create a serial port

Re: pySerial help please!

2009-02-10 Thread bmaschino
On Feb 10, 5:41 pm, Diez B. Roggisch de...@nospam.web.de wrote: bmasch...@gmail.com schrieb: Hello all, I am very new to Python and I am using it because I needed an easy language to control a piece of equipment that connects to my computer via a serial cable. I am running Python

Re: pySerial help please!

2009-02-10 Thread Grant Edwards
On 2009-02-10, bmasch...@gmail.com bmasch...@gmail.com wrote: Hello all, I am very new to Python and I am using it because I needed an easy language to control a piece of equipment that connects to my computer via a serial cable. I am running Python 2.6 with pySerial 2.4 under Windows. I can

Re: lazy evaluation is sometimes too lazy... help please.

2009-01-16 Thread James Stroud
Ken Pu wrote: Hi, below is the code I thought should create two generates, it[0] = 0,1,2,3,4,5, and it[1] = 0,10,20,30,..., but they turn out to be the same!!! from itertools import * itlist = [0,0] for i in range(2): itlist[i] = (x+(i*10) for x in count()) print what's in the bags: print

Re: lazy evaluation is sometimes too lazy... help please.

2009-01-16 Thread Michael Hartl
James Stroud schrieb: Ken Pu wrote: Hi, below is the code I thought should create two generates, it[0] = 0,1,2,3,4,5, and it[1] = 0,10,20,30,..., but they turn out to be the same!!! from itertools import * itlist = [0,0] for i in range(2): itlist[i] = (x+(i*10) for x in count()) print

Re: lazy evaluation is sometimes too lazy... help please.

2009-01-16 Thread Boris Borcic
The minimal correction, I guess, is to write itlist[i] = (x+(i*10) for i in [i] for x in count()) instead of itlist[i] = (x+(i*10) for x in count()) although itlist[i] = (x+(i*10) for i,s in (i,count()) for x in s) will better mimic generalizations in the sense that the minimal

Re: lazy evaluation is sometimes too lazy... help please.

2009-01-16 Thread Boris Borcic
itlist[i] = (x+(i*10) for i,s in (i,count()) for x in s) oops, that would be itlist[i] = (x+(i*10) for i,s in [(i,count())] for x in s) or equivalent, kind of ugly anyway. -- http://mail.python.org/mailman/listinfo/python-list

Re: lazy evaluation is sometimes too lazy... help please.

2009-01-16 Thread alex23
James Stroud jstr...@mbi.ucla.edu wrote: I'm going to get flamed pretty hard for this, but it doesn't seem to be the intuitive behavior to me either. Given this is the second time this issue has come up today, I'd have to agree with you. -- http://mail.python.org/mailman/listinfo/python-list

Re: lazy evaluation is sometimes too lazy... help please.

2009-01-16 Thread Steven D'Aprano
On Fri, 16 Jan 2009 02:51:43 -0500, Ken Pu wrote: Hi, below is the code I thought should create two generates, it[0] = 0,1,2,3,4,5, and it[1] = 0,10,20,30,..., but they turn out to be the same!!! [...] I see what Python is doing -- lazy evaluation doesn't evaluate (x+(i*10) for x in

Re: lazy evaluation is sometimes too lazy... help please.

2009-01-16 Thread Scott David Daniels
Ken Pu wrote: Hi, below is the code I thought should create two generates, it[0] = 0,1,2,3,4,5, and it[1] = 0,10,20,30,..., but they turn out to be the same!!! from itertools import * itlist = [0,0] for i in range(2): itlist[i] = (x+(i*10) for x in count()) ... print list(islice(itlist[0],

lazy evaluation is sometimes too lazy... help please.

2009-01-15 Thread Ken Pu
Hi, below is the code I thought should create two generates, it[0] = 0,1,2,3,4,5, and it[1] = 0,10,20,30,..., but they turn out to be the same!!! from itertools import * itlist = [0,0] for i in range(2): itlist[i] = (x+(i*10) for x in count()) print what's in the bags: print

Re: help please, splitter windows like in maya or 3ds max

2008-03-13 Thread moonrie
] Newsgroups: comp.lang.python Sent: Wednesday, March 12, 2008 10:19 PM Subject: help please, splitter windows like in maya or 3ds max hi, everyone there, I am doing a 3D modeling project. I like to do it with Python( am a newbie), but have no idea with the wxSplitterWindow to create the 4

Re: help please, splitter windows like in maya or 3ds max

2008-03-13 Thread John at Quintivity
] Newsgroups: comp.lang.python Sent: Wednesday, March 12, 2008 10:19 PM Subject: help please, splitter windows like in maya or 3ds max hi, everyone there, I am doing a 3D modeling project. I like to do it with Python( am a newbie), but have no idea with the wxSplitterWindow to create the 4

help please, splitter windows like in maya or 3ds max

2008-03-12 Thread moonrie
hi, everyone there, I am doing a 3D modeling project. I like to do it with Python( am a newbie), but have no idea with the wxSplitterWindow to create the 4-view windows( top, front, side, perspective), like the mfc CSplitterWnd guy), anyone can give me some help with wxPython? thanks in advance.

Re: help please, splitter windows like in maya or 3ds max

2008-03-12 Thread Andrew Rekdal
() self.splitter_left.SetSashPosition(pos) event.Skip() app = wx.App(0) k = Layout(None, -1, 'layout.py') k.Show(True) app.MainLoop() -- Andrew - Original Message - From: moonrie [EMAIL PROTECTED] Newsgroups: comp.lang.python Sent: Wednesday, March 12, 2008 10:19 PM Subject: help please

Re: Can anyone help, please?

2008-02-13 Thread Douglas Wells
In article [EMAIL PROTECTED], maehhheeyy [EMAIL PROTECTED] writes: Hi, right now I'm using Python and Multicast. I have the code for Multicast receiver on Python but I keep getting this error; Hi, In the future please use a Subject: line that is relevant to your inquiry. Many people only

Re: Can anyone help, please?

2008-02-12 Thread Paul McGuire
On Feb 12, 4:10 pm, maehhheeyy [EMAIL PROTECTED] wrote: Hi, right now I'm using Python and Multicast. I have the code for Multicast receiver on Python but I keep getting this error; File string, line 1, in bind error: (10049, Can't assign requested address) The error is coming from this

Can anyone help, please?

2008-02-12 Thread maehhheeyy
Hi, right now I'm using Python and Multicast. I have the code for Multicast receiver on Python but I keep getting this error; File string, line 1, in bind error: (10049, Can't assign requested address) The error is coming from this line; sock.bind ((MCAST_ADDR, MCAST_PORT)) This is the code

Re: Help please with code to find and move files.

2007-12-31 Thread Gabriel Genellina
En Mon, 31 Dec 2007 05:09:37 -0200, [EMAIL PROTECTED] escribió: I am sorry if I was not clear in what I was trying to achieve. All I wanted was simple way to achieve what windows does when you use search for Files or Folders, and all the files that mach two words like foo and bar in the file

Help please with code to find and move files.

2007-12-30 Thread inFocus
Hello, I am new to python and wanted to write something for myself where after inputing two words it would search entire drive and when finding both names in files name would either copy or move thoe files to a specified directory. But couple of attempts did not work as desired this is one of

Re: Help please with code to find and move files.

2007-12-30 Thread infixum
path = rc:\\ I don't know if this is the whole problem, but this line should read r'c:\' (one backslash). -- http://mail.python.org/mailman/listinfo/python-list

Re: Help please with code to find and move files.

2007-12-30 Thread inFocus
On Sun, 30 Dec 2007 18:42:50 -0800 (PST), infixum [EMAIL PROTECTED] wrote: path = rc:\\ I don't know if this is the whole problem, but this line should read r'c:\' (one backslash). after changing i got this path = rc:\ ^ SyntaxError: EOL while scanning single-quoted

<    1   2   3   4   >