AI library

2006-12-15 Thread Felix Benner
I thought about an AI library for python. This is the possible structure I came up with. Are there any thoughts about it? ailib/ search.py class State: "represents an immutable state of a problem" def __str__(self): pass def __has

Re: MySQLdb, lots of columns and newb-ness

2006-12-19 Thread Felix Benner
Andrew Sackville-West schrieb: > I have an ascii data dump from a POS system that has 131 fields in a > single column in a flat file. I can easily open the file, read in the > data and assemble it into various formats. okay. what I *want* to do > is insert each of these fields into a mysql databas

Re: Fall of Roman Empire

2006-12-20 Thread Felix Benner
Thomas Ploch schrieb: >> Ben Finney schrieb: >>> "John Machin" <[EMAIL PROTECTED]> writes: >>> Ben Finney wrote: > \ "...one of the main causes of the fall of the Roman Empire was | > `\that, lacking zero, they had no way to indicate successful | > _o__)

Re: [ANN] Py++ - 0.8.5

2006-12-21 Thread Felix Benner
Roman Yakovenko schrieb: > Hello! > > I'm pleased to announce the 0.8.5 release of Py++. I'm just wondering why there is a comp.lang.python.announce newsgroup. Could it be for making announcements or would that be too obvious? -- http://mail.python.org/mailman/listinfo/python-list

Re: Question on regex

2006-12-23 Thread Felix Benner
Prabhu Gurumurthy schrieb: > to fix this problem, i used negative lookahead with ip pattern: > so the ip pattern now changes to: > \d{1,3}(\.\d{1,3}){3}(?!/\d+) > > now the problem is 10.150.100.0 works fine, 10.100.4.64 subnet gets > matched with ip pattern with the following result: > > 10.10

Re: Help with small program

2006-12-24 Thread Felix Benner
smartbei schrieb: > Hello, I am a newbie with python, though I am having a lot of fun using > it. Here is one of the excersizes I am trying to complete: > the program is supposed to find the coin combination so that with 10 > coins you can reach a certain amoung, taken as a parameter. Here is the >

Re: problem with PIPE

2006-12-24 Thread Felix Benner
Dhika Cikul schrieb: > Hello, > > I'm new in Python, i don't know my subject is correct or wrong. I have > problem with my script. I want to change password with passwd password > in python without user submitted anything from keyboard. I get > tutorial that i must use pipe to process this. And th

Re: DOS, UNIX and tabs

2006-12-28 Thread Felix Benner
Sebastian 'lunar' Wiesner schrieb: > Ben <[EMAIL PROTECTED]> typed > >> I have a python script on a windows system that runs fine. Both use >> tabs to indent sections of the code. > > Just a tip for you: In python you never use tabs for indentation. The > python style guide [1] recommends four sp

Re: DOS, UNIX and tabs

2006-12-28 Thread Felix Benner
Christophe Cavalaria schrieb: > Steven D'Aprano wrote: > You gave the reason in your post : because other people who are using > software that doesn't understand tabs as YOU expect them to have problems > with your code. > > Tabs aren't a problem at all as long as nobody else than you edit your c