Re: [Tutor] Help me with this problem relating to datetime

2006-11-15 Thread Luke Paireepinart
Asrarahmed Kadri wrote: > Hi Folks, > > > I have got a date (as string), time (as string) , number of slots ( > integer) and delta ( which is in seconds). > I want to create a dictionary which has got date as the key, and the > value should be a tuple with two elements (start_time, end_time).

Re: [Tutor] Help me with this problem relating to datetime

2006-11-15 Thread Asrarahmed Kadri
SOrry for that. I was wondering if someoen can give a hint about the implementation. I am not asking for the actual code. Regards, Asrarahmed On 11/16/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote: Asrarahmed Kadri wrote: > Hi Folks, > > > I have got a date (as string), time (as string) , nu

Re: [Tutor] Help with Elementtree ...how to access the attributes..

2006-11-13 Thread doug shawhan
Oho! Thanks, Kent (and everyone else.) That clears up some things. The link has some embarassment reducing info as well. :-)On 11/11/06, Kent Johnson < [EMAIL PROTECTED]> wrote:doug shawhan wrote:> I'm having some difficulties with elementtree as well. >> I'm attempting to parse a fairly sizeable x

Re: [Tutor] Help with Elementtree ...how to access the attributes..

2006-11-11 Thread Kent Johnson
doug shawhan wrote: > I'm having some difficulties with elementtree as well. > > I'm attempting to parse a fairly sizeable xml file (it's the ebay > "category tree" report. I've cached a copy at > http://www.crackrabbit.com/misc/CatTree.xml). 900K or so! :-) > I've made a smaller version that I

Re: [Tutor] Help with Elementtree ...how to access the attributes..

2006-11-10 Thread doug shawhan
Ah. Apparently, the string xmlns="urn:ebay:apis:eBLBaseComponents" is causing some sort of outfreakage. I'm not well versed in xml lore: is the "urn:" tag out of context here? ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinf

Re: [Tutor] Help with Elementtree ...how to access the attributes..

2006-11-10 Thread doug shawhan
I'm having some difficulties with elementtree as well. I'm attempting to parse a fairly sizeable xml file (it's the ebay "category tree" report. I've cached a copy at http://www.crackrabbit.com/misc/CatTree.xml). 900K or so! :-) For some reason I'm unable to read any elements from the file. I hav

Re: [Tutor] Help with Elementtree ...how to access the attributes..

2006-11-09 Thread Gabriel Farrell
On Fri, Nov 10, 2006 at 10:23:49AM +1300, John Fouhy wrote: > On 10/11/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote: > > I am trying to parse XML documents using elementtree. > > I have just started with it. Can somebody help me with how to select nodes > > with a particular atribute set to some

Re: [Tutor] Help with Elementtree ...how to access the attributes..

2006-11-09 Thread Gabriel Farrell
On Thu, Nov 09, 2006 at 06:23:50PM +, Asrarahmed Kadri wrote: > Hi Folks, > > > I am trying to parse XML documents using elementtree. > I have just started with it. Can somebody help me with how to select nodes > with a particular atribute set to some value. For example, I have the > followin

Re: [Tutor] Help with Elementtree ...how to access the attributes..

2006-11-09 Thread John Fouhy
On 10/11/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote: > I am trying to parse XML documents using elementtree. > I have just started with it. Can somebody help me with how to select nodes > with a particular atribute set to some value. For example, I have the > following file. Now I want to acces

Re: [Tutor] Help me with installing Soappymodule

2006-11-08 Thread Kent Johnson
Asrarahmed Kadri wrote: > > Hi Folks, > > I want to install SOAPpy module. As stated on > http://pywebsvcs.sourceforge.net/soappy.txt, there are two modules that > should be installed prior to installing SOAPpy. One in pyXML and the > other is fpconst. I installed pyXML from the URL stated on

Re: [Tutor] Help needed to install SOAPpy

2006-11-08 Thread Christopher Arndt
Asrarahmed Kadri schrieb: > I want to install the SOAPpy module on my windows box. I have python > 2.4.3 > > Can you help me with the steps and the URL from where can I get the > download..?? What have you tried so far? Did you google for "SOAPpy download"? Are you experiencing any problems? Chr

Re: [Tutor] Help me to debug this script .. I tried but ....

2006-11-05 Thread Danny Yoo
On Sun, 5 Nov 2006, Asrarahmed Kadri wrote: > When I am running the script from the command line, its working fine but > when I am trying to run from Pythonwin, its giving me error. > > Can anyone explain the reason? Hi Asrarahmed, Did you see Kent's reply? He mentioned: >> Something strange

Re: [Tutor] Help me to debug this script .. I tried but ....

2006-11-05 Thread Asrarahmed Kadri
When I am running the script from the command line, its working fine but when I am trying to run from Pythonwin, its giving me error.   Can anyone explain the reason?   Regards, Asrarahmed  On 11/5/06, Kent Johnson <[EMAIL PROTECTED]> wrote: Dustin J. Mitchell wrote:> Asrarahmed Kadri wrote:>> "C:\

Re: [Tutor] Help me to debug this script .. I tried but ....

2006-11-05 Thread Dustin J. Mitchell
Kent Johnson wrote: > Dustin J. Mitchell wrote: >> Asrarahmed Kadri wrote: >>> "C:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", >>> line 310, in RunScript >>> exec codeObject in __main__.__dict__ >>> File "C:\project stuff-programs\Scriptdate.py", line 18, in ? >>>

Re: [Tutor] Help me to debug this script .. I tried but ....

2006-11-05 Thread Kent Johnson
Dustin J. Mitchell wrote: > Asrarahmed Kadri wrote: >> "C:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", >> line 310, in RunScript >> exec codeObject in __main__.__dict__ >> File "C:\project stuff-programs\Scriptdate.py", line 18, in ? >> t1 = my_version_datecheck.

Re: [Tutor] Help me to debug this script .. I tried but ....

2006-11-05 Thread Dustin J. Mitchell
Asrarahmed Kadri wrote: > "C:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", > line 310, in RunScript > exec codeObject in __main__.__dict__ > File "C:\project stuff-programs\Scriptdate.py", line 18, in ? > t1 = my_version_datecheck.dateCheck(dt1,0) > File "my_ver

Re: [Tutor] Help me with graphs...using tkinter

2006-11-01 Thread Michael Lange
Hi Asrarahmed, On Wed, 1 Nov 2006 16:16:31 + "Asrarahmed Kadri" <[EMAIL PROTECTED]> wrote: > Hi folks, > > I want to draw bar-charts using Tkinter. I am not able to find material on > this topic. > have a look at the Canvas widget and especially at its create_rectangle() method. Document

Re: [Tutor] Help me.. problem in building calculator application

2006-10-26 Thread Paulino
> > Message: 7 > Date: Thu, 26 Oct 2006 13:31:37 +0100 > From: "Asrarahmed Kadri" <[EMAIL PROTECTED]> > Subject: [Tutor] Help me.. problem in building calculator application > To: pythontutor > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > Hi folks,

Re: [Tutor] Help me.. problem in building calculator application

2006-10-26 Thread Kent Johnson
Asrarahmed Kadri wrote: > > > Hi folks, > > I am trying to build a rudimentary calculator application using Tkinter... > > I have used one Entry widget for displaying the input and output data. > All this is put in a class. > The porblem is when I click teh '+' button, teh callback function

Re: [Tutor] Help me abt this error

2006-10-17 Thread Luke Paireepinart
Asrarahmed Kadri wrote: > > I changed to append mode and it is working. > But the thing is that I have another problem. > I am trying to insert usernames that are unique. Please look at the > code and help me. > > import sys > > fd = open('usr.txt','a') > append mode is write-only. more comments f

Re: [Tutor] Help me abt this error

2006-10-17 Thread Asrarahmed Kadri
I changed to append mode and it is working. But the thing is that I have another problem. I am trying to insert usernames that are unique. Please look at the code and help me. import sys fd = open('usr.txt','a') def chk(str):    global fd    fd.seek(0,0)    print fd    done = 0    list1 = []    an

Re: [Tutor] Help me abt this error

2006-10-17 Thread Luke Paireepinart
: [Tutor] Help me abt this error Asrarahmed Kadri wrote: I am trying to write to a file, but I am getting this errror. IOError: (0, 'Error') Can someone explain what is it and whats the solution?? No. Give us the actual source and the full traceback. Cheers, -Luke

Re: [Tutor] Help me abt this error

2006-10-17 Thread Danny Yoo
> I am trying to write to a file, but I am getting this errror. > > IOError: (0, 'Error') > > Can someone explain what is it and whats the solution?? Hi Asrarahmed, Did you read my response from the last few days? http://mail.python.org/pipermail/tutor/2006-October/049958.html Did you find

Re: [Tutor] Help me abt this error

2006-10-17 Thread Luke Paireepinart
Asrarahmed Kadri wrote: > I am trying to write to a file, but I am getting this errror. > > IOError: (0, 'Error') > > Can someone explain what is it and whats the solution?? No. Give us the actual source and the full traceback. Cheers, -Luke ___ Tutor

Re: [Tutor] Help with basic user-data file

2006-10-12 Thread Liam Clarke
Hi Asrarahmed, There's a few questions in there, and unfortunately I don't have a copy of your book. But I'll try to answer them, and I'll change the order so that they build on each other. >I am not sure of using time function in python.. Depending on what you're trying to do, the simplest w

Re: [Tutor] Help me : Why this code is not working??

2006-10-12 Thread Asrarahmed Kadri
Thanks a lot. It was quick. I will send the traceback from now on.   -Asrar  On 10/13/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote: Asrarahmed Kadri wrote:>>> I have created two buttons. The code for button2 is not working as I > want it to be. When I click button2, the application should exit,

Re: [Tutor] Help me : Why this code is not working??

2006-10-12 Thread Luke Paireepinart
Asrarahmed Kadri wrote: > > > I have created two buttons. The code for button2 is not working as I > want it to be. When I click button2, the application should exit, but > it isnt. > Can someone fix it?? > > from Tkinter import * > from tkMessageBox import * > > def callback(): > showinf

Re: [Tutor] Help with generating session id

2006-10-12 Thread Luke Paireepinart
anil maran wrote: > Hi guys > I m trying to maintain Sessions for each user, and a session-id that > needs to be stored in cookie. I m unable to figure out how to generate > session-id that can be stored in a cookie and sync with a session. > The problem is this > everytime someone logs in check

Re: [Tutor] Help with basic user-data file

2006-10-12 Thread Rob Andrews
When a login name is being created, you can pull a list of existing login names from file, and run a check to see if it is in the list. If the new name is in the list, have it kick back a message telling the user to try another name. Also, your program could suggest a new user name in such a case,

Re: [Tutor] Help with basic user-data file

2006-10-12 Thread Asrarahmed Kadri
It means there is no need of entering the data in the dictionary,??   How will I then implement the uniqueness of loginnames???   Thanks for the support. regards, Asrar  On 10/12/06, Rob Andrews <[EMAIL PROTECTED]> wrote: To keep the information, the simplest solution is simply to save it ina text

Re: [Tutor] Help with basic user-data file

2006-10-12 Thread Rob Andrews
To keep the information, the simplest solution is simply to save it in a text file that the program can load into memory when it starts up again. For sensitive information like passwords, a little extra fuss is generally merited. When someone logs in, you can save a value like time.strftime(time.c

Re: [Tutor] Help me with this Tkinter code

2006-10-11 Thread Michael Lange
On Tue, 10 Oct 2006 23:32:57 +0100 "Asrarahmed Kadri" <[EMAIL PROTECTED]> wrote: > The error message is as under: > > > *Microsoft Visual C++ Runtime Library* > > * Runtime Error! > Program: C:\python\Lib\site-packages\pythonwin\Pythonwin.exe* > > * This application has requested the Runtime

Re: [Tutor] Help me with this Tkinter code

2006-10-10 Thread Alan Gauld
> yeh, I am using IDLE. > why, is it a problem?? IDLE is a Tkinter program. So you are trying to run a Tkinter program inside a Tkinter program which can confuse things. The latest versions of IDLE are a lot better but I stilll strongly recommend running any Tkinter , indeed any GUI) programme, fr

Re: [Tutor] Help me with this Tkinter code

2006-10-10 Thread Asrarahmed Kadri
The error message is as under:   Microsoft Visual C++ Runtime Library  Runtime Error! Program: C:\python\Lib\site-packages\pythonwin\Pythonwin.exe  This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more inforamtion.Any i

Re: [Tutor] Help me with this Tkinter code

2006-10-10 Thread John Fouhy
On 11/10/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote: > shouldn't you mainloop your root? By convention, you should, but you don't have to. mainloop is mainloop; calling it on root just makes it easy to find. -- John. ___ Tutor maillist - Tutor@

Re: [Tutor] Help me with this Tkinter code

2006-10-10 Thread Asrarahmed Kadri
yeh, I am using IDLE. why, is it a problem??  On 10/10/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote: Asrarahmed Kadri wrote:>>> Folks,>> Just started to get my feet wet with basics of Tkinter Programming. > Here is a code which is giving me some problem; when I run it, it> displays me the button

Re: [Tutor] Help me with this Tkinter code

2006-10-10 Thread Asrarahmed Kadri
i changed the code from widget.mainloop() to root.mainloop(); but still its not working     On 10/10/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote: yeh, I am using IDLE. why, is it a problem??  On 10/10/06, Luke Paireepinart <[EMAIL PROTECTED] > wrote: Asrarahmed Kadri wrote:>>> Folks,>> Just s

Re: [Tutor] Help me with this Tkinter code

2006-10-10 Thread Luke Paireepinart
Asrarahmed Kadri wrote: > > > Folks, > > Just started to get my feet wet with basics of Tkinter Programming. > Here is a code which is giving me some problem; when I run it, it > displays me the button widget, but when I click it, the window doesn't > goes away. the program gets stuck up.

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-09 Thread János Juhász
Dear Asrarahmed, I have found the next recipe in the cookbook. It should be interesting for you :) http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/392153 > Message: 1 > Date: Thu, 05 Oct 2006 10:26:19 -0400 > From: Kent Johnson <[EMAIL PROTECTED]> > Subject: Re: [Tutor

Re: [Tutor] Help: how to detect which key is pressed

2006-10-06 Thread Luke Paireepinart
Asrarahmed Kadri wrote: > > > I am writing a simple program and in that I want to add some sort of > interactiveness. > I have designed a menu which gives the user an option to select one > out of the following four keys: d, l, n or e. > Can any one tell me how to determine which key has been

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-05 Thread Kent Johnson
Asrarahmed Kadri wrote: > Its something very close. > What I want is: > > 1 > 1 1 > 1 2 1 > 1 3 3 1 > 1 4 6 4 1 > > This can be done using arrays, right or is there any other way?? Is this a homework assignment? A list of lists seems like the appropriate way to represent this, especially sin

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-05 Thread Asrarahmed Kadri
Thank you so much. I am trying to implement. I hope I can do it.   A gentle note: This is not a homework question. I am learning python as a part of my Project work.   On 10/5/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote: Asrarahmed Kadri wrote:> Its something very close.> What I want is:>> 1> 1

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-05 Thread Luke Paireepinart
Asrarahmed Kadri wrote: > Its something very close. > What I want is: > > 1 > 1 1 > 1 2 1 > 1 3 3 1 > 1 4 6 4 1 > > This can be done using arrays, right or is there any other way?? They're not arrays, they're lists! arrays imply contiguous memory blocks and single data types. Lists are neither

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-05 Thread Asrarahmed Kadri
Its something very close. What I want is:   1 1 1 1 2 1 1 3 3 1 1 4 6 4 1   This can be done using arrays, right or is there any other way?? My logic in C is:   int arr[5][5]; for (i=0;i<5;i++) {    flag = 0;    for (j=0;j<=i;j++) {    if (flag == 0 || j == i)  // print 1 if the array element is th

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-04 Thread Danny Yoo
I am stuck.. Please help me with implementing two dimensional array in Python. Hi Asrarahmed, What do you need a two-dimensional array for? This is a serious question: what's your application? What are you trying to represent, and why? As a glib possible answer: you can use a di

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-04 Thread Matthew White
Asrarahmed, How about something like this: >>> arr = [] >>> arr.append(['Blue', 'Yellow', 'Green', 'Brown', 'White']) >>> arr[0][0] 'Blue' >>> arr.append(['Up', 'Down', 'Left', 'Right', 'Center']) >>> arr[1][4] 'Center' Is this what you were thinking of? -mtw On Wed, Oct 04, 2006 at 06:38:09P

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-04 Thread Kent Johnson
Asrarahmed Kadri wrote: > > I am looking for something like this: > > int arr[5][5]; // C statement; declaring an array of 5 * 5 size > > Is there an easy and clean way to achieve this in python??? Can you say something about your use case? If I had to guess I would say numpy is what you ar

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-04 Thread Asrarahmed Kadri
  I am looking for something like this:   int arr[5][5]; // C statement; declaring an array of 5 * 5 size   Is there an easy and clean way to achieve this in python???   Thanks   On 10/4/06, Kent Johnson <[EMAIL PROTECTED]> wrote: Asrarahmed Kadri wrote:>> Hi folks,>> I am stuck.. Please help me wi

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-04 Thread Kent Johnson
Asrarahmed Kadri wrote: > > Hi folks, > > I am stuck.. Please help me with implementing two dimensional array in > Python. Nested lists are the simplest way though beware the gotcha shown here: http://www.python.org/doc/faq/programming/#how-do-i-create-a-multidimensional-list You can also use

Re: [Tutor] Help me with two dimensional arrays in Python

2006-10-04 Thread Luke Paireepinart
Asrarahmed Kadri wrote: > > Hi folks, > > I am stuck.. Please help me with implementing two dimensional array in > Python. > There are no such things as arrays in Python, silly! I can help you with a two-dimensional list, though :) Okay, imagine that a list of integers (or any other objects)

Re: [Tutor] Help

2006-10-04 Thread Kent Johnson
Matthew Warren wrote: > I think eve-online is written in stackless python, they make quite a > dealy about it on their site www.eve-online.com although I cant find the > page myself right now due to filters in the way. Yes, I think you're right that they use stackless. CCP Games was a sponsor of

Re: [Tutor] Help

2006-10-04 Thread Matthew Warren
f Of Kent Johnson > Sent: 01 October 2006 22:21 > Cc: tutor@python.org > Subject: Re: [Tutor] Help > > wesley chun wrote: > >> I am trying to learn a programming language good for > programming entire > >> games (core functions too) > > > > check out t

Re: [Tutor] Help

2006-10-01 Thread Marc Poulin
--- Kefka Palazzo <[EMAIL PROTECTED]> wrote: > I am trying to learn a programming language good for > programming entire > games (core functions too) similar to both the Final > Fantasy and Metroid > series. From the book I'm learning from (Python > Programming for the Absolute > Beginner, by Mich

Re: [Tutor] Help

2006-10-01 Thread Kent Johnson
wesley chun wrote: >> I am trying to learn a programming language good for programming entire >> games (core functions too) > > check out the PyGame engine: > http://pygame.org > > download the games written on top of PyGame that appear to match the > functionality you're looking for. if you lea

Re: [Tutor] Help

2006-10-01 Thread wesley chun
> I am trying to learn a programming language good for programming entire > games (core functions too) check out the PyGame engine: http://pygame.org download the games written on top of PyGame that appear to match the functionality you're looking for. if you learn Python at the same time, tweak

Re: [Tutor] Help

2006-10-01 Thread Glenn T Norton
Kefka Palazzo wrote: > OK, first of all, I just started learning python a few hours ago so > deal with me here. > > I'm picking up quite fast on Python since I took a C++ class a year > ago when i was 13. However, before I go deep into learning it, I want > to know if Python will work for the p

Re: [Tutor] Help with parsing

2006-09-19 Thread Alan Gauld
I missed the OP on this so if its already been done to death, my apologies. But its such an important point I'll risk repeating it... > Bryan Leber wrote: >> then exit. Right now I have something like this >> >> Size = len(argsList) >> If size = 4 This is obviously pseudo code but in future wh

Re: [Tutor] Help with parsing

2006-09-18 Thread Andrew Robert
Bryan Leber wrote: > > Hello, I am trying to create a script that reads from the command line > and puts the sysargv into a list. I have this part done. I have added > code for testing and one of those testing procedures is to print the > list out in a text file. Not all field are required and may

Re: [Tutor] Help needed for etherealXML parsing

2006-09-12 Thread Kent Johnson
Akanksha Govil wrote: > Hi, > > I have downloaded an add on python script "etherealXML.py" for parsing > the ethereal captured packets. > > This script runs fine on python 2.3 but on python 2.4 it gives error.\ What is the error? > > Has any one tried porting this script? This might give a c

Re: [Tutor] help

2006-08-24 Thread Jonathon Sisson
Hi Mike, I'm not sure I'm understanding exactly what it is you're looking for here, but from what I can tell you're looking for something such as: num(220, 330) #for example input a range of 10 # again, for example which would result in an output of 0, 660, 1320 and 1980 (because these four numb

Re: [Tutor] help

2006-08-24 Thread Bob Gailer
wesley chun wrote: > On 8/24/06, mike viceano <[EMAIL PROTECTED]> wrote: > >> hello i need a little help with a common multiple module i am haveing >> problems with the best i can get it is to show the least common multiple i >> think the problem is eather the and command ot the if command >>

Re: [Tutor] help

2006-08-24 Thread wesley chun
On 8/24/06, mike viceano <[EMAIL PROTECTED]> wrote: > hello i need a little help with a common multiple module i am haveing > problems with the best i can get it is to show the least common multiple i > think the problem is eather the and command ot the if command some suggestions and reading: 1.

Re: [Tutor] help regarding forms... (fwd)

2006-08-08 Thread Brian van den Broek
Alan Gauld said unto the world upon 08/08/06 12:59 PM: >>> I've been on the internet for over 20 years now and every mail >>> tool/newreader I've ever used has (at least) two reply options: >>> ... >>> I don't understand why this seems to come as a surprise? >>> What am I missing? >> >> Alan, I thi

Re: [Tutor] help regarding forms... (fwd)

2006-08-08 Thread Alan Gauld
>> I've been on the internet for over 20 years now and every mail >> tool/newreader I've ever used has (at least) two reply options: >> ... >> I don't understand why this seems to come as a surprise? >> What am I missing? > > Alan, I think you are judging based on technical lists, no? There are ot

Re: [Tutor] help regarding forms... (fwd)

2006-08-07 Thread Brian van den Broek
Alan Gauld said unto the world upon 07/08/06 04:43 PM: >> this list is setup to send to the poster by default. I made the >> mistake of doing such a thing earlier myself. >> I know this is a huge item of contention, but do people favor having >> the default be to send replies to the list? > > OK,

Re: [Tutor] help regarding forms... (fwd)

2006-08-07 Thread Danny Yoo
> this list is setup to send to the poster by default. I made the > mistake of doing such a thing earlier myself. Hi Terrence, Most email clients have a separate "Reply to All" or "Reply to group" command that's suitable for mailing lists. Check to see if your mail client has this feature. >

Re: [Tutor] help regarding forms... (fwd)

2006-08-07 Thread Alan Gauld
> this list is setup to send to the poster by default. I made the > mistake of doing such a thing earlier myself. > I know this is a huge item of contention, but do people favor having > the default be to send replies to the list? OK, I've got to ask. This comes up every so often and I really don'

Re: [Tutor] help regarding forms... (fwd)

2006-08-07 Thread Luke Paireepinart
Terrence Brannon wrote: > > > On 8/7/06, *Danny Yoo* <[EMAIL PROTECTED] > > wrote: > > > Hi Anil, > > Please do not email me directly. > > > this list is setup to send to the poster by default. I made the mistake of > doing such a thing earlier myself. > I kno

Re: [Tutor] help regarding forms... (fwd)

2006-08-07 Thread Terrence Brannon
On 8/7/06, Danny Yoo <[EMAIL PROTECTED]> wrote: Hi Anil,Please do not email me directly.  this list is setup to send to the poster by default. I made the mistake of doing such a thing earlier myself. I know this is a huge item of contention, but do people favor having the default be to send replies

Re: [Tutor] help regarding forms... (fwd)

2006-08-07 Thread Danny Yoo
> can you explain post methods and actions i wasnt able to find out how it > works Hi Anil, Please do not email me directly. I don't have much time these days to help on Tutor. It is better to send replies back to the Tutor list, so that others there can continue helping you. Also, apologie

Re: [Tutor] help regarding forms... (fwd)

2006-08-07 Thread Danny Yoo
-- Forwarded message -- Date: Mon, 7 Aug 2006 00:28:50 -0700 (PDT) From: anil maran <[EMAIL PROTECTED]> To: Danny Yoo <[EMAIL PROTECTED]> Subject: Re: [Tutor] help regarding forms... dear danny yoo thanks a lot for replying can you explain post methods and actions

Re: [Tutor] help regarding forms...

2006-08-06 Thread Danny Yoo
On Sat, 5 Aug 2006, anil maran wrote: > http://localhost/newtodo?category= > > can one of you guys explain what this is Hi Anil, Are you taking some kind of internet web-development class? You seem to be asking a lot of web-development questions. In the absence of context, I'm not sure wha

Re: [Tutor] Help me make it look pretty!

2006-07-21 Thread Kent Johnson
John CORRY wrote: > > Good evening all. > > > > I am writing a program using python 2.4, glade 2 and pygtk. It takes > input from the user using textentry boxes. The input should be a > number. When the user keys the data in, it automatically left > justifies. The function below, takes the

Re: [Tutor] Help me make it look pretty!

2006-07-21 Thread Michael Lange
On Thu, 20 Jul 2006 20:16:58 +0100 "John CORRY" <[EMAIL PROTECTED]> wrote: > Good evening all. > > I am writing a program using python 2.4, glade 2 and pygtk. It takes > input from the user using textentry boxes. The input should be a > number. When the user keys the data in, it automatically

Re: [Tutor] Help with strings and lists.

2006-07-14 Thread Alan Collins
> Date: Fri, 14 Jul 2006 16:43:32 +1200 > From: "John Fouhy" <[EMAIL PROTECTED]> > > Let me attempt to be the first to say: > > String substitutions!!! > > The docs are here: http://docs.python.org/lib/typesseq-strings.html > Thanks John, that looks way better. I'll also check out the page. Alan

Re: [Tutor] Help with strings and lists

2006-07-14 Thread Alan Collins
> Date: Fri, 14 Jul 2006 12:12:42 +0200 > From: J?nos Juh?sz <[EMAIL PROTECTED]> > Subject: [Tutor] Help with strings and lists. > To: <[EMAIL PROTECTED]>, tutor@python.org > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-2" > > Dear Alan, > > Probably you

Re: [Tutor] Help with strings and lists.

2006-07-14 Thread Kent Johnson
Alan Collins wrote: > Hi, > > I do a far bit of data manipulation and decided to try one of my > favourite utilities in Python. I'd really appreciate some optimization > of the script. I'm sure that I've missed many tricks in even this short > script. > > Let's say you have a file with this data

Re: [Tutor] Help with strings and lists.

2006-07-13 Thread John Fouhy
On 14/07/06, Alan Collins <[EMAIL PROTECTED]> wrote: > You now want columns 1, 5, and 7 printed and aligned (much like a > spreadsheet). For example: > > Monday547757699 100% > Wednesday 77449 100% Let me attempt to be the first to say: String substitutions!!! The docs are here: http://d

Re: [Tutor] Help IDLE Compile Problem

2006-07-11 Thread Bob Gailer
Bugra Cakir wrote: > Hi, > > I have two Python source files within editing them via IDLE. > I have a problem. The second file is used by the first file. Some parts > i mean from the second file is used. But when i change the contents of > the > second file and while i'm running the first file with

Re: [Tutor] help regarding string

2006-07-03 Thread Kent Johnson
anil maran wrote: > > 'datetime.datetime' object has no attribute 'split' > > > thisis the error i get Ah, then your data is not a string, it is a datetime.datetime object. You can format it using datetime.datetime.strftime(): In [1]: import datetime In [2]: d=datetime.datetime.now() In

Re: [Tutor] help regarding string

2006-07-02 Thread Kent Johnson
anil maran wrote: > please help me format this string from > input : 2006-06-16 16:23:27.703000 to > output: 2006-06-16 16:23:27 > > or 2006-06-16 4:23:27 PM str.split() can extract everything up to the first period: In [4]: '2006-06-16 16:23:27.703000'.split('.')[0] Out[4]: '2006-06-16 16:23:27

Re: [Tutor] help with GUI

2006-06-22 Thread Kent Johnson
Christopher Spears wrote: > My first problem is that the knob on the scrollbar > doesn't move when I drag it. I would like my GUI to > by wider as well. Finally, I need to figure out how > to get the number selected from the scrollbar to the > function that does the conversion. Just guessing fro

Re: [Tutor] Help? Making Variables out of the header row in a CSV file

2006-06-20 Thread Luke Paireepinart
Kent Johnson wrote: [snip better solution than mine] Yeah. I didn't know what CSV files were and I should've researched it a bit. Didn't know there was a CSV module. Good explanation Kent. -Luke ___ Tutor maillist - Tutor@python.org http://mail.pytho

Re: [Tutor] Help? Making Variables out of the header row in a CSV file

2006-06-20 Thread Kent Johnson
Ralph H. Stoos Jr. wrote: > All, > > Please forgive the long question, but duty calls me to get something > done with Python that I don't want somebody to do with Microsloth Excel or > Miserable > Basic. It's not such a long question. > The part I can't seem to get going has to do with making v

Re: [Tutor] Help? Making Variables out of the header row in a CSV file

2006-06-20 Thread Luke Paireepinart
Ralph H. Stoos Jr. wrote: > All, > > Please forgive the long question, but duty calls me to get something > done with Python that I don't want somebody to do with Microsloth Excel or > Miserable > Basic. > I am sympathetic to your cause. > The part I can't seem to get going has to do with makin

Re: [Tutor] help requested: port not free, under Windows XP

2006-05-25 Thread Roel Schroeven
Andre Roberge schreef: > Thank you Rick (and Alan) for your suggestions which I forwarded to > Catherine, would-be-user of Crunchy Frog. Apparently Catherine was > using port 8080 as a proxy server; changing it made everything work. > This also tells me that I should use a different number as

Re: [Tutor] help requested: port not free, under Windows XP

2006-05-25 Thread Andre Roberge
On 5/25/06, Richard Harding <[EMAIL PROTECTED]> wrote: Andre Roberge wrote:> ===Now the question===> Someone on edu-sig tried to get it working on her computer running> Windows XP home edition (just like mine, where it works fine!).> However, she gets an error message about > " port 8080 not free o

Re: [Tutor] help requested: port not free, under Windows XP

2006-05-24 Thread R. Alan Monroe
> Someone on edu-sig tried to get it working on her computer running Windows > XP home edition (just like mine, where it works fine!). However, she gets an > error message about > " port 8080 not free on local host." This is after she made sure nothing > else internet-related was working. [This

Re: [Tutor] help...newbie

2006-05-22 Thread Alan Gauld
> Hey Alan, I have indeed found a tutorial. "A Byte Of Python" Yes, that should be fine for you. > So far it's really good. I'm down around functions, and is this far > enough? I'm not sure which order it covers things but somewhere soon you should find the stuff about reading text from files

Re: [Tutor] help...newbie

2006-05-22 Thread Alan Gauld
Hi Joe, > Hello, I am pretty sure I am sending this to the right email > address. Looks like it :-) > But anyway I need help. I started learning python, How are you learning? Have you found a tutorial yet? If you already know how to program in another language the official tutorial on the pyt

Re: [Tutor] help with erros using subprocess module

2006-05-12 Thread Michael Lange
On Thu, 11 May 2006 10:59:19 -0700 (PDT) Jerome Jabson <[EMAIL PROTECTED]> wrote: > > Am I missing some module you are referencing with > "types"? > Hi Jerome, that's right, try import types first. Michael ___ Tutor maillist - Tutor@python.o

Re: [Tutor] help with erros using subprocess module

2006-05-11 Thread Jerome Jabson
Hi Bo, Thank you very much for all your help!! But I'm having some problems with the line of code you recommended: if isinstance(cmd, types.StringTypes): cmd = cmd.split(' ') I'm getting the following error: NameError: global name 'types' is not defined As you instructed, I put in the

Re: [Tutor] help with erros using subprocess module

2006-05-10 Thread Bo Yang
Jerome Jabson 写道: > Hi, > > I've been trying to write a wrapper around some shells > scripts using the subprocess module. But I'm getting > errors I quite don't know how to debug. I've only been > writing Python for a few months and starting processes > are new to me. Here's my code: > > import os

Re: [Tutor] Help with re.sub()

2006-03-16 Thread Hugo González Monteverde
Hi John, I would just like to suggest a different approach. Like the old saying goes: Some people, when confronted with a problem, think “I know, I’ll use regular expressions.” Now they have two problems. — Jamie Zawinski, in comp.lang.emacs If the delimiter is a

Re: [Tutor] Help with re.sub()

2006-03-16 Thread Danny Yoo
> I have a file that is a long list of records (roughly) in the format > > [EMAIL PROTECTED] > > So, for example: > > [EMAIL PROTECTED] > [EMAIL PROTECTED] > [EMAIL PROTECTED] > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > > What I would like to do is run a regular expression against this and > w

Re: [Tutor] Help with re.sub()

2006-03-16 Thread Kent Johnson
John Clark wrote: > Hi, > > I have a file that is a long list of records (roughly) in the format > > [EMAIL PROTECTED] > > So, for example: > > [EMAIL PROTECTED] > [EMAIL PROTECTED] > [EMAIL PROTECTED] > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > > What I would like to do is run a regular

Re: [Tutor] Help with Game over program

2006-03-15 Thread Ars
Python should have made the file associations when it was installed, but you can just manually associate *.py files with  C:\Python24\python.exe and then your program should run inside of a little DOS window.   -Jack On 3/15/06, Brad Hills <[EMAIL PROTECTED]> wrote: I'm 45 minutes into

Re: [Tutor] Help with Game over program

2006-03-15 Thread Anna Ravenscroft
On 3/15/06, Brad Hills <[EMAIL PROTECTED]> wrote: I'm 45 minutes into learning how to program using python. I am reading "Python programming for the absolute begginer" by  Michael Dawson, and the first thing I've done was write the "Game Over" program. Which I understand is also called the "Hello W

Re: [Tutor] Help me please

2006-03-15 Thread Kent Johnson
yogeshwarran Nadeson wrote: > Hello, > > I am a newbie in python programming without previous programming > experience.Here i would like to ask > a question based on the exercises given by Josh Cogliatti in his > tutorial.I'll paste the question.Hope you can help me to solve it.I'd > like to en

Re: [Tutor] Help with choosing books

2006-01-03 Thread Alan Gauld
Hi, What background do you come from? Can you already program in another language? > Hi! I got Foundations of Python Network Programming > I really want to tackle my Foundations book and I want > to get up to speed as quickly as I can. Thanks! If you already program then just work through t

<    9   10   11   12   13   14   15   16   >