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 em...@fenx.com 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

How to find wxPython method documentation??

2009-02-04 Thread len
in this? Thanks 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 should be easy enough to split each line

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 should be easy enough to split each line

Re: Little direction please Python MySQL

2008-11-17 Thread len
   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: 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 never COMPUTATIONAL or USAGE IS COMPUTATIONAL, and it always occurs

Re: Newbie code review of parsing program Please

2008-11-17 Thread len
. 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 library. -Mark Thanks Mark I will check in out right now. Len

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:         snip Files are fixed format no field delimiters, fields are position and length

Newbie code review of parsing program Please

2008-11-16 Thread len
= fieldline[3].find(')') num = fieldline[3][left:right].lstrip() if fieldline[3].count('V'): left = fieldline[3].find('V') + 1 dec = int(len(fieldline[3][left:])) size = ((int(num) + int(dec)) / 2) + 1 else: size = (int(num) / 2) + 1

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 to be a cobol filed definition.  The program then outputs to a file what is essentially

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 programs and MySQL.  I have gotten past packed decimal fields

Re: Little direction please Python MySQL

2008-11-14 Thread len
On Nov 14, 4:19 am, Bruno Desthuilliers bruno. [EMAIL PROTECTED] 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 performed most of the various select, create

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

2008-11-14 Thread len
).), (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 read of the quotes in the first case. Thanks Len Sumnle -- http://mail.python.org/mailman/listinfo/python

Little direction please Python MySQL

2008-11-13 Thread len
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
the following error on insert; raise errorclass, errorvalue TypeError: not all arguments converted during string formatting Script terminated. Do I have to covert all of the fields in the tuple records to string or what? Len Sumnler -- http://mail.python.org/mailman/listinfo/python-list

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

2007-12-12 Thread len
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 but I don't really expect any one to go through it. Len Sumnler This program takes as input PMS Policy files and creates

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, 16, 17,

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
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 name of the

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: 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 or IE) to

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() c = '' c = csz[0] c

Help don't know what problem is Newbie

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

Newbie SQL ? in python.

2006-08-17 Thread len
is 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.org/mailman

Newbie needs Help

2006-08-16 Thread len
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
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
would like to thank every one for their help, advice and patients. Len Sumnler Cameron Laird wrote: In article [EMAIL PROTECTED], len [EMAIL PROTECTED] wrote: . . . I have done some more reading and I think the code I need

semi-Newbie question

2006-08-10 Thread len
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

Re: semi-Newbie question

2006-08-10 Thread len
) = tagfile.value what I see as the problem is I want to use what is the data reference by xreffile.SQL.fieldname and now make it part of the python code as a reference variable in an assignement code statement. I hope this helps Len Sumnler Unique Insurance [EMAIL PROTECTED] wrote: Do you absolutely

Re: semi-Newbie question

2006-08-10 Thread len
= TagToSQL['mySQLfieldname'] = Tagfile['Value'] exec mycode This is very new to me because I don't believe this can be done in a compiled language or at least not as easily as in an interpeted language like Python. I hope this clarifies the problem Len Sumnler Unique Insurance Cameron Laird wrote

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

Newbie regular expression ?

2005-10-04 Thread len
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: 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

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: Sybase Python WinXP

2005-09-30 Thread len
Thanks I will do that. 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

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

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 Everyone seems to be saying the same thing which is jump into some RDBM. Len Sumnler -- http://mail.python.org/mailman/listinfo/python-list

newbie file/DB processing

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