[Tutor] server used in python

2011-03-28 Thread ema francis
I am learnning python for 3 months from now. I wanted to know how and what *server* is used in python web development?Looking for your help ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org

[Tutor] How to read remote text file?

2011-03-28 Thread Ratna Banjara
Hey all, I need to read text file from remote server and generate excel file from local computer using python. Is it possible? If so how? -- Regards, Ratna P Banjara ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

Re: [Tutor] How to read remote text file?

2011-03-28 Thread Steven D'Aprano
Ratna Banjara wrote: Hey all, I need to read text file from remote server and generate excel file from local computer using python. Is it possible? If so how? Possibly. Do you have access to the server? If so, you have to download the file using whatever protocol the server supports: http, h

Re: [Tutor] server used in python

2011-03-28 Thread Steven D'Aprano
ema francis wrote: I am learnning python for 3 months from now. I wanted to know how and what *server* is used in python web development?Looking for your help There are several. I suggest you start with CherryPy: www.cherrypy.org/ -- Steven __

Re: [Tutor] How to read remote text file?

2011-03-28 Thread Walter Prins
Hi On 28 March 2011 11:53, Steven D'Aprano wrote: > There are some projects that have tried to reverse-engineer the format, > like the xlrd package. > Yes, just to add, xlrd is the "reader" module, the Excel "writer" is xlwt, available here: http://pypi.python.org/pypi/xlwt Walter

Re: [Tutor] server used in python

2011-03-28 Thread James Thornton
On Mon, Mar 28, 2011 at 3:27 AM, ema francis wrote: > I am learnning python for  3 months from now. I wanted to know how and what > server is used in python web development?Looking for your help When you're developing a Python Web application, most people use a development server that automa

[Tutor] Write new line(enter) in txt

2011-03-28 Thread Susana Iraiis Delgado Rodriguez
Hello list!! This is a very simple question!! I want to write some lines in a txt file, but my output looks like this: No existe el archivo C:\índice.dbfNo existe el archivo C:\índice_dwg.dbfNo existe el archivo C:\índice_raster.dbf I need it to look like this: No existe el archivo C:\índice.dbf N

Re: [Tutor] Write new line(enter) in txt

2011-03-28 Thread Joel Goldstick
On Mon, Mar 28, 2011 at 11:12 AM, Susana Iraiis Delgado Rodriguez < susana.delgad...@utzmg.edu.mx> wrote: > Hello list!! > > This is a very simple question!! I want to write some lines in a txt file, > but my output looks like this: > No existe el archivo C:\índice.dbfNo existe el archivo C:\índic

Re: [Tutor] Pygame install help

2011-03-28 Thread Wayne Werner
On Sun, Mar 27, 2011 at 12:31 PM, Chuck wrote: > Does anyone have familiarity with installing pygame? It seems simple and > straight forward enough, then why do I get the following from IDLE? This is > the 3.1 Windows pygame .msi install... > > Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v

Re: [Tutor] Write new line(enter) in txt

2011-03-28 Thread Susana Iraiis Delgado Rodriguez
Ok Flyyn! Thank you for answered my question. I think I didn't explain what I need. The printing statement is used to print a message to the Windows console, then the other line written in the else statement is: log.write('No existe el archivo ' +shx+"\n") This is the part I'm struggling with, I d

Re: [Tutor] Write new line(enter) in txt

2011-03-28 Thread Joel Goldstick
On Mon, Mar 28, 2011 at 11:28 AM, Susana Iraiis Delgado Rodriguez < susana.delgad...@utzmg.edu.mx> wrote: > Ok Flyyn! > Thank you for answered my question. I think I didn't explain what I need. > The printing statement is used to print a message to the Windows console, > then the other line writt

Re: [Tutor] Write new line(enter) in txt

2011-03-28 Thread Flynn, Stephen (L & P - IT)
Ahhh - my mistake. You open your file in binary mode - open it in text mode instead and the '\n' will be translated to '\n\r' (carriage return and line feed). I do most of my coding on AIX / Unix where only the Newline is required, so that was the first thing I looked for... you're on Windows w

Re: [Tutor] Write new line(enter) in txt

2011-03-28 Thread Tommy Kaas
Fra: tutor-bounces+tommy.kaas=kaasogmulvad...@python.org [mailto:tutor-bounces+tommy.kaas=kaasogmulvad...@python.org] På vegne af Susana Iraiis Delgado Rodriguez Sendt: 28. marts 2011 17:12 Til: tutor@python.org Emne: [Tutor] Write new line(enter) in txt Hello list!! This is a very simpl

Re: [Tutor] Tutor Digest, Vol 85, Issue 103

2011-03-28 Thread Susana Iraiis Delgado Rodriguez
load failed: The specified module could not be found. > > >>> > > > > Pygame support for Python 3 is a bit spotty (AFAIK). It will probably be > easier using an earlier version of Python when working with Pygame. > > HTH, > Wayne > -- next part

[Tutor] Replying

2011-03-28 Thread markrivet
When replying to the mailing list, does everyone just hit the reply button in your email program. Because that sends the email directly to your email. Also everyone is cc'ng the mailing list; is that the exceptable way to reply so everyone in the list gets the replies? Mark R Rivet, Genesis Sof

Re: [Tutor] Replying

2011-03-28 Thread Brett Ritter
On Mon, Mar 28, 2011 at 1:04 PM, wrote: > When replying to the mailing list, does everyone just hit the reply button in > your email program. Because that sends the email directly to your email. Also > everyone is cc'ng the mailing list; is that the exceptable way to reply so > everyone in the

Re: [Tutor] Replying

2011-03-28 Thread Corey Richardson
On 03/28/2011 01:04 PM, markri...@gsoftcon.com wrote: > When replying to the mailing list, does everyone just hit the reply button in > your email program. Because that sends the email directly to your email. Also > everyone is cc'ng the mailing list; is that the exceptable way to reply so > eve

[Tutor] Read arguments from command line

2011-03-28 Thread Susana Iraiis Delgado Rodriguez
Hello everyone! I want to run a python script which reads arguments from command line. I searched in web and the module sys.argv came up. But I don't understand how it works. I need to know how to pass arguments from command line and make the python script works from MS-DOS instead of run my progr

Re: [Tutor] Read arguments from command line

2011-03-28 Thread Blockheads Oi Oi
On 28/03/2011 18:24, Susana Iraiis Delgado Rodriguez wrote: Hello everyone! I want to run a python script which reads arguments from command line. I searched in web and the module sys.argv came up. But I don't understand how it works. I need to know how to pass arguments from command line and ma

Re: [Tutor] Read arguments from command line

2011-03-28 Thread Joel Goldstick
On Mon, Mar 28, 2011 at 1:24 PM, Susana Iraiis Delgado Rodriguez < susana.delgad...@utzmg.edu.mx> wrote: > Hello everyone! > > I want to run a python script which reads arguments from command line. I > searched in web and the module sys.argv came up. But I don't understand how > it works. I need t

Re: [Tutor] Pygame install help

2011-03-28 Thread Jerry Hill
On Sun, Mar 27, 2011 at 1:31 PM, Chuck wrote: > Does anyone have familiarity with installing pygame? It seems simple and > straight forward enough, then why do I get the following from IDLE? This is > the 3.1 Windows pygame .msi install... You're using pygame (probably pygame 1.9.1) built for pyt

Re: [Tutor] how to optimize this code?

2011-03-28 Thread Albert-Jan Roskam
Hi Stefan, Thanks for your advice. I seriously thought ctypes was the module to use. That was before I found out the evaluating all 10**9 values of my test data set is glacially slow (several hours). You're right, the dll implies the program is running on windows. I've also been trying to make

Re: [Tutor] how to optimize this code?

2011-03-28 Thread Emile van Sebille
On 3/28/2011 12:37 PM Albert-Jan Roskam said... Hi Stefan, Thanks for your advice. I seriously thought ctypes was the module to use. That was before I found out the evaluating all 10**9 values of my test data set is glacially slow (several hours). You're right, the dll implies the program is run

[Tutor] List sorting issues

2011-03-28 Thread Eric Stevens
I am currently designing an address book program, and am trying to design a method for organizing the keys (which are the names of the entries) for displaying purposes. I have created a list by doing sortedKeys = self.addbook.keys() {the self.addbook refers to a dictionary in a custom class}, and t

Re: [Tutor] Replying

2011-03-28 Thread Steven D'Aprano
markri...@gsoftcon.com wrote: When replying to the mailing list, does everyone just hit the reply button in your email program. Because that sends the email directly to your email. Also everyone is cc'ng the mailing list; is that the exceptable way to reply so everyone in the list gets the rep

Re: [Tutor] Replying

2011-03-28 Thread Steven D'Aprano
Corey Richardson wrote: Thunderbird has a "reply list" button that I use. It does? What version are you using? -- Steven ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo

[Tutor] User Made Dictionaries

2011-03-28 Thread michael scott
Hello, I'm trying to find out the best course of action for the next stage of my program. I want to hold information on various idols. I first thought to do this with classes, but realised that I could represent the data the same way with a dictionary. So I am now just concentrating on diction

Re: [Tutor] List sorting issues

2011-03-28 Thread Luke Paireepinart
Sort returns none because it changes your list in-place. Print your list out after calling sort and you should see the new one. - Sent from a mobile device. Apologies for brevity and top-posting. - On Mar 28, 2011, at 11:53 AM, Eric Stevens

Re: [Tutor] List sorting issues

2011-03-28 Thread Steven D'Aprano
Eric Stevens wrote: I am currently designing an address book program, and am trying to design a method for organizing the keys (which are the names of the entries) for displaying purposes. I have created a list by doing sortedKeys = self.addbook.keys() {the self.addbook refers to a dictionary in

Re: [Tutor] Replying

2011-03-28 Thread Corey Richardson
On 03/28/2011 06:17 PM, Steven D'Aprano wrote: > Corey Richardson wrote: > >> Thunderbird has a "reply list" button that I use. > > It does? What version are you using? 3.1.8 I don't know how it knows what a mailing list is and isn't, but it does. After inspecting the headers of emails from a

Re: [Tutor] User Made Dictionaries

2011-03-28 Thread Steven D'Aprano
michael scott wrote: I was thinking something like this for my general flow (this is all just fake code trying to represent my thought process) mold = { "name" : " ", "age": " ", "charm_point" : " ", "profile_pic"

[Tutor] finding directory of self

2011-03-28 Thread Rance Hall
I had been doing this under windows: import os import sys osname = os.name pathtocfg = os.path.dirname(sys.argv[0]) configfileloc = os.path.abspath(pathtocfg) os.chdir(configfileloc) to set the directory of all subsequent file lookups in a script. It worked underwindows because the shortcuts ha

Re: [Tutor] finding directory of self

2011-03-28 Thread Wayne Werner
On Mon, Mar 28, 2011 at 6:43 PM, Rance Hall wrote: > I had been doing this under windows: > > import os > import sys > > osname = os.name > pathtocfg = os.path.dirname(sys.argv[0]) > configfileloc = os.path.abspath(pathtocfg) > os.chdir(configfileloc) > > to set the directory of all subsequent fi

[Tutor] Problem recognizing '{' character?

2011-03-28 Thread Ben Hunter
Hi, I'm completing the Python lessons on YouTube that Google posted. At the end of section 2 of day 2, there is a task to identify files then put them in a zip file in any directory. The code is from the 'solution' folder, so it's not something I wrote. I suspect I have a problem with PATHS or env