Re: [Tutor] log parsing

2005-11-29 Thread Kent Johnson
Will Harris wrote: > I am trying to work out doing a bit of log parsing in python. Below is > the code I have gotten so far, It works in an earlier version of this > one but this one doesn't print out the lines in my log files. Does > anyone see anything that I am missing here or can just point

[Tutor] log parsing

2005-11-29 Thread Will Harris
I am trying to work out doing a bit of log parsing in python. Below is the code I have gotten so far, It works in an earlier version of this one but this one doesn't print out the lines in my log files. Does anyone see anything that I am missing here or can just point me in the direction to look? T

Re: [Tutor] Read Excel file without COM

2005-11-29 Thread bob
At 01:45 PM 11/29/2005, John Fouhy wrote: >On 30/11/05, bob <[EMAIL PROTECTED]> wrote: > > Interesting you ask at the same time I'm researching this question. I found > > http://sourceforge.net/projects/pyexcelerator > > Somewhere I thought I saw a reference to its ability to read Excel > > files,

Re: [Tutor] my text adventure

2005-11-29 Thread Kent Johnson
david wrote: > hello again python tutors! my latest attempt to learn python. > any comments or suggestions most greatly appreciated. > > import sys > import string > ncoords = [0,0] > class Room: > def __init__(self,name): > self.exits = {} > self.contents = [] > self.

Re: [Tutor] Read Excel file without COM

2005-11-29 Thread K . Weinert
Hello, you could try to access the excel file via ODBC if the only thing you need to do is reading. It worked for me when I was working with Excel 95 (no COM) and wanted to read in worksheets in python. Here are some infos on excel datasources: http://www.idude.net/excel/articles/using_excel_file_

Re: [Tutor] Question

2005-11-29 Thread Danny Yoo
> > I am a bit new to the *nix environment, as well as brand new to Python > > (perhaps I am biting of a bit much, I know). I was wondering if > > someone could point me in a direction to get started in this > > environment. Hi Erik, I agree; I'd recommend getting used to operating your new Un

Re: [Tutor] Question

2005-11-29 Thread John Fouhy
On 30/11/05, Douglass, Erik <[EMAIL PROTECTED]> wrote: > I am a bit new to the *nix environment, as well as brand new to Python > (perhaps I am biting of a bit much, I know). I was wondering if someone > could point me in a direction to get started in this environment. What apps > to code in, is

Re: [Tutor] Read Excel file without COM

2005-11-29 Thread John Fouhy
On 30/11/05, bob <[EMAIL PROTECTED]> wrote: > Interesting you ask at the same time I'm researching this question. I found > http://sourceforge.net/projects/pyexcelerator > Somewhere I thought I saw a reference to its ability to read Excel > files, but I'm having a hard time getting to that. It does

[Tutor] Question

2005-11-29 Thread Douglass, Erik
I am a bit new to the *nix environment, as well as brand new to Python (perhaps I am biting of a bit much, I know).  I was wondering if someone could point me in a direction to get started in this environment.  What apps to code in, is there an interactive mode?   Specifically FreeBSD 6.0 r

Re: [Tutor] Is it a good idea to use TKInter to change my password program into a GUI?

2005-11-29 Thread Michael Lange
On Tue, 29 Nov 2005 13:48:21 -0700 "Nathan Pinno" <[EMAIL PROTECTED]> wrote: > Hey Danny and all, > > Alberto told me that there was a password entry box in TKInter. Can anyone > tell me about that, please? > Hi Nathan, maybe he meant the Pmw.PromptDialog (

Re: [Tutor] Is it a good idea to use TKInter to change my password program into a GUI?

2005-11-29 Thread Jason Massey
Nathan, Look here: http://effbot.org/tkinterbook/entry.htm Apparently you can change the default setting for the entry box so that it will show whatever character you like rather than what the user is typing. On 11/29/05, Nathan Pinno <[EMAIL PROTECTED]> wrote: Hey Danny and all,Alberto told me

Re: [Tutor] Is it a good idea to use TKInter to change my password program into a GUI?

2005-11-29 Thread Nathan Pinno
Hey Danny and all, Alberto told me that there was a password entry box in TKInter. Can anyone tell me about that, please? Thanks, Nathan Pinno, Owner/operator of The Web Surfer's Store. http://www.the-web-surfers-store.com/ MSN Messenger: [EMAIL PROTECTED] Yahoo! Messenger: spam_swatter31 AIM: f3

Re: [Tutor] Read Excel file without COM

2005-11-29 Thread Eric Walker
yes, I found some stuff when I was playing around with win32. It does allow you to read from excell sheets... Eric ... On Tuesday 29 November 2005 01:13 pm, Liam Clarke-Hutchinson wrote: > Actually, and I'm surprising myself here, but COM would be the easiest way > to go about this if you're not

Re: [Tutor] Read Excel file without COM

2005-11-29 Thread bob
At 11:58 AM 11/29/2005, [EMAIL PROTECTED] wrote: >Hi, > >I have written a script which reads a Microsoft Excel file and moves >the data inside onto a database. The script uses the PyWin32 module >written by Mark Hammond, but I was wondering if anyone knew of a way >to extract the data without usin

Re: [Tutor] Read Excel file without COM

2005-11-29 Thread Liam Clarke-Hutchinson
Actually, and I'm surprising myself here, but COM would be the easiest way to go about this if you're not able to convert to CSV. If you want to avoid COM, why don't you use it to save each page of the spreadsheet as a CSV file and then go from there? The close tie-in between Excel and COM is desi

[Tutor] Read Excel file without COM

2005-11-29 Thread wkranec
Hi, I have written a script which reads a Microsoft Excel file and moves the data inside onto a database. The script uses the PyWin32 module written by Mark Hammond, but I was wondering if anyone knew of a way to extract the data without using COM. A Python module would be best, but I suppose an

Re: [Tutor] Weird situation in using .split() function

2005-11-29 Thread Kent Johnson
Srinivas Iyyer wrote: > Hello group: > > I have a list t and the elements are tab limited. > there are 2 columns: > t > > ['STAG2\tmiR-101', 'SMARCA1\tmiR-101', > 'RAP2C\tmiR-101', 'DDX3Y\tmiR-101', > 'AGRN\tmiR-101\tmiR-144', 'EPB41\tmiR-101\tmiR-144', > 'PUM1\tmiR-101\tmiR-144', > 'KIAA15

Re: [Tutor] Weird situation in using .split() function

2005-11-29 Thread Eric Walker
The first few are out of range. Only have one \t so you only get col[0] and col[1] ['STAG2\tmiR-101', 'SMARCA1\tmiR-101','RAP2C\tmiR-101', 'DDX3Y\tmiR-101', Srinivas Iyyer <[EMAIL PROTECTED]> wrote: Hello group:I have a list t and the elements are tab limited. there are 2 columns:>>>t['STAG2\tmiR-

[Tutor] Weird situation in using .split() function

2005-11-29 Thread Srinivas Iyyer
Hello group: I have a list t and the elements are tab limited. there are 2 columns: >>>t ['STAG2\tmiR-101', 'SMARCA1\tmiR-101', 'RAP2C\tmiR-101', 'DDX3Y\tmiR-101', 'AGRN\tmiR-101\tmiR-144', 'EPB41\tmiR-101\tmiR-144', 'PUM1\tmiR-101\tmiR-144', 'KIAA1573\tmiR-101\tmiR-144', 'ST6GALNAC3\tmiR-101\tmi

Re: [Tutor] my text adventure

2005-11-29 Thread Noah Bedford
On Tue, 29 Nov 2005 07:40:18 -0600 "david" <[EMAIL PROTECTED]> wrote: >hello again python tutors! my latest attempt to learn python. >any comments or suggestions most greatly appreciated. I like it! add in some scenery, and you have a game there! I like the inventory, that is nice to have, but I

[Tutor] my text adventure

2005-11-29 Thread david
hello again python tutors! my latest attempt to learn python. any comments or suggestions most greatly appreciated.   import sysimport stringncoords = [0,0]class Room:    def __init__(self,name):    self.exits = {}    self.contents = []    self.name = name    self.coords

Re: [Tutor] How to reuse code in Python

2005-11-29 Thread Kent Johnson
Negroup - wrote: > 2005/11/29, Kent Johnson <[EMAIL PROTECTED]>: >>class A: >> def __init__(self, limit): >>self.limit = limit >>self.num = 20 >> def info(self): >>return self.limit >> def inc_num(self): >>self.num += 1 >> def check(self): >>return self.num > self.limit >> >

Re: [Tutor] How to reuse code in Python

2005-11-29 Thread Negroup -
2005/11/29, Kent Johnson <[EMAIL PROTECTED]>: > Negroup - wrote: [cut] > Obviously this doesn't do what you want. The problem is that class A is > seeing the limit defined in it's module. 'global' variables in Python > actually have module scope, there is no truly global scope in Python (OK, >

Re: [Tutor] How to reuse code in Python

2005-11-29 Thread Kent Johnson
Negroup - wrote: > Hi. > Suppose that I need to use in my project a module that belongs to > another project, because - with some tuning - it can fit my needings. > > module.py > limit = 30 > > class A: > def __init__(self): > self.num = 20 > def info(self): > return limit > def inc

[Tutor] How to reuse code in Python

2005-11-29 Thread Negroup -
Hi. Suppose that I need to use in my project a module that belongs to another project, because - with some tuning - it can fit my needings. This is what I mean, with an example: module.py limit = 30 class A: def __init__(self): self.num = 20 def info(self): return limit def inc_num