Chris Miles? TGBooleanFormWidget?

2014-02-01 Thread Len Conrad
trying to install zoner. Needs <http://www.psychofx.com/TGBooleanFormWidget/>http://www.psychofx.com/TGBooleanFormWidget/ but that's giving "502 Bad Gateway" can't find TGBooleanFormWidget anywhere else. Suggestions? Thanks Len -- https://mail.python.org/mailman/listinfo/python-list

Re: Python advanced course (preferably in NA)

2011-11-03 Thread Len Conrad
http://www.dabeaz.com/pythonmaster.html -- Original Message -- From: Emile van Sebille Date: Thu, 03 Nov 2011 14:25:03 -0700 >On 11/3/2011 11:13 AM Behnam said... >> Anybody is aware of any advanced course in Python preferably in north >> america? >> >>

How to find wxPython method documentation??

2009-02-04 Thread len
give me a little direction in this? Thanks Len -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie code review of parsing program Please

2008-11-17 Thread len
much. Len On Nov 17, 8:01 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > On Nov 16, 12:53 pm, len <[EMAIL PROTECTED]> wrote: > > > On Nov 16, 12:40 pm, "Mark Tolonen" <[EMAIL PROTECTED]> wrote: > > > > You might want to check out the pyparsing lib

Re: Newbie code review of parsing program Please

2008-11-17 Thread len
On Nov 16, 9:57 pm, Lawrence D'Oliveiro <[EMAIL PROTECTED] central.gen.new_zealand> wrote: > len wrote: > >     if fieldline.count('COMP.') > 0: > > I take it you're only handling a particular subset of COBOL constructs: thus, > "COMP" is

Re: Little direction please Python MySQL

2008-11-17 Thread len
     ("field4", 17, lambda s: s.strip().upper() ), >      # stacks more >      ] > >    def splitter(s, field_lens): >      pieces = {} >      offset = 0 >      for name, length, fn in field_lens: >        pieces[name] = fn(s[offset:offset+length]) >        offset += length >      return pieces > >    bits = splitter(line), field_lens) >    # do addition of int+float rather than string concat >    print bits["field2"] + bits["field3"] > > -tkc Thank for your reply. I will have to study your code and see if I can inprove mine. Len -- http://mail.python.org/mailman/listinfo/python-list

Re: Little direction please Python MySQL

2008-11-17 Thread len
On Nov 17, 3:24 am, Lawrence D'Oliveiro <[EMAIL PROTECTED] central.gen.new_zealand> wrote: > len wrote: > > Files are fixed format no field delimiters, fields are position and > > length records are terminated by newline. > > Assuming no COMPUTATIONAL fields, it sho

Re: Little direction please Python MySQL

2008-11-17 Thread len
On Nov 17, 3:24 am, Lawrence D'Oliveiro <[EMAIL PROTECTED] central.gen.new_zealand> wrote: > len wrote: > > Files are fixed format no field delimiters, fields are position and > > length records are terminated by newline. > > Assuming no COMPUTATIONAL fields, it sho

Re: Newbie code review of parsing program Please

2008-11-16 Thread len
On Nov 16, 12:40 pm, "Mark Tolonen" <[EMAIL PROTECTED]> wrote: > "len" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > > > >I have created the following program to read a text file which happens > >

Newbie code review of parsing program Please

2008-11-16 Thread len
7;COMP.') > 0: left = fieldline[3].find('(') + 1 right = fieldline[3].find(')') num = fieldline[3][left:right].lstrip() if fieldline[3].count('V'): left = fieldline[3].find('V') + 1 dec = int(len(fieldl

Re: Little direction please Python MySQL

2008-11-16 Thread len
On Nov 15, 4:41 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Sat, 15 Nov 2008 11:41:17 -0800, Ethan Furman <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > > > len wrote: >         > > > > Files are fixed for

How to eliminate quotes around string field written to a file.

2008-11-14 Thread len
in the list is a fieldname record written to file looks like this, no quotes (customer_no, X(6).), (customer_name, X(30).), (customer_street_1, X(30).), (customer_street_2, X(30).), (customer_city, X(15).), Why quotes in the first case and not the second and how do I get

Re: Little direction please Python MySQL

2008-11-14 Thread len
On Nov 14, 4:19 am, Bruno Desthuilliers wrote: > len a écrit : > > > > > > > Hi all; > > > I am looking for a little direction in moving from novice python MySQL > > to real world processing. > > > I can connect to MySQL databases and have performe

Re: Little direction please Python MySQL

2008-11-14 Thread len
On Nov 13, 7:32 pm, Ethan Furman <[EMAIL PROTECTED]> wrote: > len wrote: > > Hi all; > > [snip] > > > Here is my problem.  I need to start doing this in the really world at > > my company converting some older cobol system and data to python > > prog

Little direction please Python MySQL

2008-11-13 Thread len
o make all of this less verbose using classes and such but I need some direction. Could someone recommend either books, website, or free package whose code I could look at to move from the student type programs to gee I work in the real world now programs. Thanks Len -- http://mail.python.org/mailman/listinfo/python-list

Newbie problem inserting into MySQL

2008-08-18 Thread len
print datetime.datetime.now().time() os._exit() print "insert into mysql completed" i get the following error on insert; raise errorclass, errorvalue TypeError: not all arguments converted during string formatting Script terminated. Do I have

Newbie ? file structures in Dict, List, Tuples etc How

2007-12-12 Thread len
ease understand I have the majority of the code for this program working so I am not looking for coding help as much as real world advice, examples etc, I just feel there is a better/easier way then what I am doing now. I am providing a listing of the code below which may be more informative b

Re: searching a value of a dict (each value is a list)

2007-12-09 Thread Zepo Len
> I have a dictionary with million keys. Each value in the > dictionary has a list with up to thousand integers. > Follow is a simple example with 5 keys. > > dict = {1: [1, 2, 3, 4, 5], >2: [10, 11, 12], >90: [100, 101, 102, 103, 104, 105], >91: [20, 21, 22], >99: [15,

Re: highscores list

2007-12-08 Thread Zepo Len
> I'm writing a game that uses two functions to check and see if a file > called highScoresList.txt exists in the main dir of the game program. > If it doesn, it creates one. That part is working fine. The problem is > arising when it goes to read in the high scores from the file when I

Re: read lines

2007-12-04 Thread Zepo Len
> Your regex is not working correctly I guess, I don't even know why you > are using a regex, something like this would work just fine: > > import sys > nums = [float(line.split(' -')[1]) for line in open(sys.argv[1])] > print 'min=', min(nums), 'max=', max(nums) Sorry, that should be line.split

Re: read lines

2007-12-04 Thread Zepo Len
> Hi, I have a text file like this; > > 1 -33.453579 > 2 -148.487125 > > > So I want to write a program in python that reads each line and > detects which numbers of the second column are the maximum and the > minimum. > > I tried with; > > import os, sys,re,string > > # first parameter is the

Re: Pulling data from a .asps site

2007-11-27 Thread Zepo Len
On Tue, 27 Nov 2007 20:37:19 +0200, <[EMAIL PROTECTED]> wrote: > > There's a government website which shows public data for banks. We'd > like to pull the data down programmatically but the data is "hidden" > behind .aspx... > > Is there anyway in Python to hook in directly to a browser (firefox o

Re: Help don't know what problem is Newbie

2006-08-24 Thread len
Sorry for the stupid question. I was fixated on the SQL. Thanks Len Sumnler Peter Otten wrote: > len wrote: > > > > Have the following code: > > Short variable names increase the likelihood of name clashes: > > > c = db.cursor() > > >

Help don't know what problem is Newbie

2006-08-23 Thread len
orec = orec + ',' + rec[4] elif rec[1] == 'Address2': orec = orec + ',' + rec[4] elif rec[1] == 'City, State, ZIP': csz = matchstr.sub('', rec[4]).split() if len(csz) == 0:

Newbie SQL ? in python.

2006-08-17 Thread len
that this technique used on large files may cause problem. I really just want to get what is the last record in the database to get the last ID used. Is there a better way. I realize this may be more of an SQL question but I figured I would try here first. Len Sumnler -- http://mail.python.o

Newbie needs Help

2006-08-16 Thread len
t) print sql c.execute(sql) I copied this code off of ASP and I sure it worked for his particular circumstance but I need to format up the VALUE clause just a bit different. I will be working from a dictionary which will be continualy update in another part of the program and this code is working. Len Sumnler -- http://mail.python.org/mailman/listinfo/python-list

Newbie Python SQL

2006-08-14 Thread len
very introductory approach. Any recommendation would be appreciated. Len Sumnler -- http://mail.python.org/mailman/listinfo/python-list

Re: semi-Newbie question

2006-08-13 Thread len
#x27;idxtpsname'] and then use it as a field label on the left side of the assignment statement because in the compiled language the left side must be a label and NOT and expression. Just strengthens my commitment to learn Python. I would like to thank every one for their help, advice and patie

Re: semi-Newbie question

2006-08-10 Thread len
quot; "address2","POL1","bnd.addr2" "appartmentnumber","POL1","bnd.apptno" etc 3. Binder - This is the primary Policy header file and is in MySQL this file contains information such as; bnd.policyno bnd.last bnd.first bnd.addr1 bnd.ad

Re: semi-Newbie question

2006-08-10 Thread len
which I then took and create a crossreference file with three fields: xreffile tagname (key) scopy SQL_fieldname The program I am writing is nothing more than a conversion program to take the value out of the CSV file and map it into the appropriate field in my SQL files. Rather than cr

semi-Newbie question

2006-08-10 Thread len
d change through each iteration *** myfirst = value *** next iteration mylast = value *** next iteration mybirth = value etc I hope this make sense. I remember seeing something like this somewhere. Any help appreciated. Len Sumnler Unique Insurance -- http://mail.python.org/mailman/listinfo/python-list

Newbie ? MS Sql update of record

2005-10-06 Thread len
I have created a python program that takes a flat file and changes some of the data and create a new flat file with the changes. Part of this process requires that I try to find a particular model car in an MS Sql table. This part of the program is now working great. It has come to my attention

Re: Newbie regular expression ?

2005-10-04 Thread len
Thanks everyone for your help. I took the option of f1.lower().startswith("unq"). Len Sumnler -- http://mail.python.org/mailman/listinfo/python-list

Newbie regular expression ?

2005-10-04 Thread len
y4223.dat myfile.dat UNQxyc123489-24.dat only unq123abc.dat and UNQxyc123489-24.dat would be selected I have read through the documentation and I am now so confussedd!! Len Sumnler -- http://mail.python.org/mailman/listinfo/python-list

Re: Sybase Python WinXP

2005-09-30 Thread len
Thanks I will do that. Len Sumnler -- http://mail.python.org/mailman/listinfo/python-list

Sybase Python WinXP

2005-09-30 Thread len
and I am a newbie to boot. I only have need to read the Sybase tables and will not be updating or appending to these tables. Len Sumnler -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem SQL ADO

2005-09-28 Thread len
Thanks You are correct. That was the problem. -- http://mail.python.org/mailman/listinfo/python-list

Problem SQL ADO

2005-09-27 Thread len
Using Python on WinXP going against MS SQL 2000 server. Connection is fine and I have executed several queries successfully. The following SQL statement however gives me an error and I have tried it several different ways: "SELECT VA_MK_YEAR,VA_MK_DESCRIP,VO_VIN_NO,VO_MODEL,VO_BODY,VO_DESCRIPTIO

Re: newbie file/DB processing

2005-05-19 Thread len
Thanks for the reply Everyone seems to be saying the same thing which is jump into some RDBM. Len Sumnler -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie file/DB processing

2005-05-19 Thread len
Thanks for the reply I think you might be right. I have been playing around with Linux at home. What I may have to do in switch my mindset from IBM/Microsoft to a more Unix way of thinking. Also thanks for the code samples. Len Sumnler -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie file/DB processing

2005-05-19 Thread len
Thanks for the reply. I just read your response and will be taking your suggestion immediatly Len Sumnler -- http://mail.python.org/mailman/listinfo/python-list

newbie file/DB processing

2005-05-18 Thread len
de, online tutorial, or book that might address this file processing/database would be appreciated Thanks Len -- http://mail.python.org/mailman/listinfo/python-list