Re: PyEphem on winXP

2005-09-21 Thread vincent wehren
<[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | Hi, | | I'm a (sort of) newbie to python and would like to install the PyEphem | extension to Python. I'm using Python 2.4 | I obtained PyEphem from: | http://rhodesmill.org/brandon/projects/pyephem.html | | When i ran python se

Re: Code to read Cobol data files

2005-09-21 Thread Al Christians
none wrote: > Hi, > Any one know of some code to read cobol data files > > thanks > timb I posted some here maybe 5+ years ago that would convert COBOL comp-3, comp-4, and comp-5 fields (as from Realia) to whatever. I suppose you can still find it in google somewhere. There was some help

Re: Free seminar on domain-specific modeling

2005-09-21 Thread Martijn Iseger
Hello Michael, > The alternate point is that during computing history, many, many, many > promises were made for many, many, many, technologies based on the > same principle of raising the abstraction level. Many, many, many of > those technologies promised much and failed to deliver on their cla

Re: Intermediate to expert book

2005-09-21 Thread Tonguc Yumruk
Tony Houghton <[EMAIL PROTECTED]> writes: > Can anyone recommend a good book for intermediate up to expert level? ... > 2.4 would be a bonus. > > I've heard good things about "Dive Into Python". I see it can be > downloaded or read online, and on a very quick browse it seems to be > suitably to th

Re: Python win32com com_error: (-2147418113

2005-09-21 Thread Roger Upole
Usually this means the COM object has to run in a full ActiveX container. You can host it in IE, or Pythonwin can act as a container with some effort. See \pythonwin\pywin\Demos\ocx for some examples of using OCX objects that require a container. Roger "g.franzkowiak" <[EMAIL PROTECTED]>

Re: Help w/ easy python problem

2005-09-21 Thread r2_r2
Actually, it is not a sin curve i need to plot, it is dots running down the page in the shape of a sin curve like this . . . etc... -- http://mail.python.org/mailman/listinfo/python-list

Re: Help w/ easy python problem

2005-09-21 Thread r2_r2
Actually, it is not a sin curve i need to plot, it is dots running down the page in the shape of a sin curve like this . . . etc... -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows paths, Java, and command-line arguments, oh my!

2005-09-21 Thread Steve M
Thank you. I was able to fix it by putting the '-Dwhatever=x' bit before the '-jar y.jar' bit. I had no idea this could matter. Thanks all for the help. -- http://mail.python.org/mailman/listinfo/python-list

Help w/ easy python problem

2005-09-21 Thread r2_r2
I am very much a beginner to python. I have been working on writing a very simple program and cannot get it and was hoping someone could help me out. Basically i need to write a code to print a sin curve running down the page from top to bottom. The trick is I have to do this using only 7-8 line

Re: print there!

2005-09-21 Thread Godwin Burby
i didn't notice it and i'm really sorry. it works beautifully! thanks once again :) -- http://mail.python.org/mailman/listinfo/python-list

Code to read Cobol data files

2005-09-21 Thread none
Hi, Any one know of some code to read cobol data files thanks timb -- http://mail.python.org/mailman/listinfo/python-list

Re: Intermediate to expert book

2005-09-21 Thread Paul Rubin
Tony Houghton <[EMAIL PROTECTED]> writes: > Can anyone recommend a good book for intermediate up to expert level? Python Cookbook (2nd ed.) by Alex Martelli, if you really want a dead tree book. It's not so much about Python itself, as how to accomplish various things with it. If you just want t

Re: Intermediate to expert book

2005-09-21 Thread George Sakkis
"Tony Houghton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Can anyone recommend a good book for intermediate up to expert level? > I'm an experienced C programmer and I learnt Python from the "Learning > Python" O'Reilly book because it had good reviews. I was disappointed > th

Re: unusual exponential formatting puzzle

2005-09-21 Thread Paul Rubin
Neal Becker <[EMAIL PROTECTED]> writes: > Like a puzzle? I need to interface python output to some strange old > program. It wants to see numbers formatted as: > > e.g.: 0.23456789E01 Yeah, that was normal with FORTRAN. > My solution is to print to a string with the '% 16.9E' format, then >

Re: Finding where to store application data portably

2005-09-21 Thread Ron Adam
Tony Houghton wrote: > > I'm using pygame to write a game called Bombz which needs to save some > data in a directory associated with it. In Unix/Linux I'd probably use > "~/.bombz", in Windows something like > "C:\Documents And Settings\\Applicacation Data\Bombz". > > There are plenty of message

best solution to for loop

2005-09-21 Thread Mauricio Tellez
Hi, I have several apps which connect to a database,  fetch some data an put this into a gtk.TreeStore, but if the result set is 1500 row long, the app response slowly, how can optimize this? here is an example of what I do: cur.execute("SELECT * FROM clients")data = ""> for row in data:    treeS

Re: Calling python scripts from C# programs

2005-09-21 Thread Benji York
[EMAIL PROTECTED] wrote: > I want to call (execute) some python scripts from my C# program. See http://www.zope.org/Members/Brian/PythonNet. -- Benji York -- http://mail.python.org/mailman/listinfo/python-list

Re: testing a website from python

2005-09-21 Thread Benji York
Achim Domma (SyynX Solutions GmbH) wrote: > Benji York wrote: >>If there is any interest I'll try to package up a stand-alone version in >>the next few days. > > I think that would be a very usefull tool. Currently I'm using httpunit > with Jython but a python only tool would be much nicer. I p

Calling python scripts from C# programs

2005-09-21 Thread soumitra . mishra
Hi All, I want to call (execute) some python scripts from my C# program. I know that this can be done but have not idea how. The other option that I can think of is developing python web services and then calling them from from C# program. I just wanted to know what is the best option and how it c

Re: send mail through webmail

2005-09-21 Thread Benji York
Benji York wrote: > You can also try the almost-publicly-available package zope.testbrowser > (http://svn.zope.org/Zope3/branches/testbrowser-integration/src/zope/testbrowser/ > > and http://benjiyork.com/zope.testbrowser-0.1.tgz). I forgot to mention that it requires the ZopeInterface package

Re: Finding where to store application data portably

2005-09-21 Thread Ron Adam
Steven D'Aprano wrote: > On Wed, 21 Sep 2005 20:07:54 +0100, Tony Houghton wrote: > > >> > I wish the Linux Standard Base folks would specify that settings files >> > should all go into a subdirectory like ~/settings rather than filling up >> > the home directory with cruft. That was acceptable

Noobie Starting New Project

2005-09-21 Thread [EMAIL PROTECTED]
I've have an idea for a personal project. I want to access my car's OBD-II port via serial to query engine paramters and represent them on my PC monitor. The various methods to represent them would be any of the following: analog gauge (speedometer), digital readout, and X Y Plots/Charts (HP vs RPM

Re: Question About Logic In Python

2005-09-21 Thread Ron Adam
Steven D'Aprano wrote: > Ah, that's a good example, thanks, except I notice you didn't actually > cast to bool in them, eg: (min < value < max) * value It wasn't needed in these particular examples. But it could be needed if several comparisons with 'and' between them are used. It just seems o

Re: Chronological Processing of Files

2005-09-21 Thread George Sakkis
"Peter Hansen" <[EMAIL PROTECTED]> wrote: > yoda wrote: > > This feels like a stupid question but I'll ask it anyway. > > > > How can I process files chronologically (newest last) when using > > os.walk()? > > Do you want the ordering to apply just to files within each directory, > or to all the f

Re: send mail through webmail

2005-09-21 Thread Benji York
Chris Curvey wrote: > If you have to do it thru the web, I would use one of the "browser" > packages (mechanize, mechanoid, PAMIE, or IshyBrowser). Then you can > scrape the site, fill out the forms, press the buttons, etc. You can also try the almost-publicly-available package zope.testbrowser

Re: send mail through webmail

2005-09-21 Thread Chris Curvey
If you have to do it thru the web, I would use one of the "browser" packages (mechanize, mechanoid, PAMIE, or IshyBrowser). Then you can scrape the site, fill out the forms, press the buttons, etc. This will be a *lot* more painful than using SMTP -- http://mail.python.org/mailman/listinfo

Re: distutils and decorators

2005-09-21 Thread Benji York
Robert Brewer wrote: > Actually, in this case we most definitely want to test 2.4's "@" syntax. > The decorator in question is an aliaser, and therefore is one of the few > decorators which must be implemented differently for the 2.3-style > decoration and the 2.4-style. See the "expose" functio

Looking for system/network monitoring tool written in Python

2005-09-21 Thread Mike Meyer
I've found a fair number of systems/network monitoring tools (things like Big Brother, Big Sister, cricket, etc.) written in Perl. I'm curious if there are any written in Python. Thanks, http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consulta

Re: Threading, real or simulated?

2005-09-21 Thread Sam
Jp Calderone writes: On Wed, 21 Sep 2005 18:23:33 -0500, Sam <[EMAIL PROTECTED]> wrote: I'm using Python 2.3.5 with pygtk 2.4.1, and I'm using the second threading approach from pygtk's FAQ 20.6 - invoking "gtk.gdk.threads_init()", and wrapping all gtk/gdk function calls with gtk.threads_ente

RE: distutils and decorators

2005-09-21 Thread Robert Brewer
Title: RE: distutils and decorators I wrote: > We're trying to get CherryPy 2.1 RC 1 out the door, but setup.py is > giving us some problems. > In our test suite, we want to test a decorator > that we provide. Of course, decorators won't work in Python 2.3 and Benji York replied: > More accu

Re: Chronological Processing of Files

2005-09-21 Thread Jeremy Jones
yoda wrote: >This feels like a stupid question but I'll ask it anyway. > > Definitely not a stupid question. >How can I process files chronologically (newest last) when using >os.walk()? > > > Try this: In [16]: file_list = [(os.stat(f)[8], f) for f in [os.path.join(i[0], j) for i in os.w

Re: unusual exponential formatting puzzle

2005-09-21 Thread Michael Spencer
Michael Spencer wrote: > Neal Becker wrote: > >>Like a puzzle? I need to interface python output to some strange old >>program. It wants to see numbers formatted as: >> >>e.g.: 0.23456789E01 >> >>That is, the leading digit is always 0, instead of the first significant >>digit. It is fixed width

Re: Threading, real or simulated?

2005-09-21 Thread Jp Calderone
On Wed, 21 Sep 2005 18:23:33 -0500, Sam <[EMAIL PROTECTED]> wrote: >I'm using Python 2.3.5 with pygtk 2.4.1, and I'm using the second threading >approach from pygtk's FAQ 20.6 - invoking "gtk.gdk.threads_init()", and >wrapping all gtk/gdk function calls with >gtk.threads_enter()/gtk.threads_leav

Threading, real or simulated?

2005-09-21 Thread Sam
I'm using Python 2.3.5 with pygtk 2.4.1, and I'm using the second threading approach from pygtk's FAQ 20.6 - invoking "gtk.gdk.threads_init()", and wrapping all gtk/gdk function calls with gtk.threads_enter()/gtk.threads_leave() I start a thread, via thread.Threading.start(). The thread then

Re: Finding where to store application data portably

2005-09-21 Thread Steven D'Aprano
On Wed, 21 Sep 2005 20:07:54 +0100, Tony Houghton wrote: > > I wish the Linux Standard Base folks would specify that settings files > > should all go into a subdirectory like ~/settings rather than filling up > > the home directory with cruft. That was acceptable in the days when > > people >

Re: Question About Logic In Python

2005-09-21 Thread Steven D'Aprano
On Wed, 21 Sep 2005 18:53:34 +, Ron Adam wrote: > Steven D'Aprano wrote: > >>>So.. >>> >>>bool(a and b) * value >>> >>>Would return value or zero, which is usually what I want when I do this >>>type of expression. > >> That's all very interesting, and valuable advice for somebody who do

Re: Intermediate to expert book

2005-09-21 Thread Steve Bergman
I'm waiting for the release of the next edition of "Programming Python" from O'Reilly. It's due out in December. The current edition is rather oldish. From 2001, I believe. Steve -- http://mail.python.org/mailman/listinfo/python-list

Intermediate to expert book

2005-09-21 Thread Tony Houghton
Can anyone recommend a good book for intermediate up to expert level? I'm an experienced C programmer and I learnt Python from the "Learning Python" O'Reilly book because it had good reviews. I was disappointed though. It was difficult to read because it was so verbose. It would sometimes take mor

Re: C#3.0 and lambdas

2005-09-21 Thread Steven Bethard
Steven D'Aprano wrote: > I would love to see your test code and profiling results that demonstrate > that explicit tuple unpacking in the body of a function is faster than > tuple unpacking (implicit or explicit) in the header of a function. Should be pretty close. I believe the byte-code is near

Re: Object default value

2005-09-21 Thread James Stroud
On Tuesday 20 September 2005 12:31, ago wrote: > Is it possible to have a default value associated python objects? I.e. > to flag an attribute in such a way that the assignment operator for the > object returns the default attribute instead of the object itself, but > calls to other object attribut

Re: Chronological Processing of Files

2005-09-21 Thread Paul
untested, ugly, but something like this would sort all the files in the directory on os.path.getctime (not using os.walk() though). I'm sure there is probably better ways to do it :) filelist = [] def walkdir(currdir): for files in os.listdir(currdir): path = os.path.join(currdir, fil

Re: Chronological Processing of Files

2005-09-21 Thread Peter Hansen
yoda wrote: > This feels like a stupid question but I'll ask it anyway. > > How can I process files chronologically (newest last) when using > os.walk()? Do you want the ordering to apply just to files within each directory, or to all the files found (recursively) during the entire walk? Define

Re: Getting tired with py2exe

2005-09-21 Thread Lucas Raab
Scott David Daniels wrote: > Steve Holden wrote: > >> Thomas Heller wrote: >> >>> I'm slowly getting tired maintaining py2exe. It is far from perfect, >>> although it has interesting features (I would say). > > >> Ignoring all the philosophical questions I'd like to thank you for all >> your h

Re: C#3.0 and lambdas

2005-09-21 Thread Steven D'Aprano
On Wed, 21 Sep 2005 18:48:22 +0200, Christophe wrote: > Well, I prefer the explicit tuple unpack anyway. It gives better results > than using tuple indexing ( and better performance too most of the time ) I would love to see your test code and profiling results that demonstrate that explicit tu

Re: very high-level IO functions?

2005-09-21 Thread York
Thank you, Tom. -York Tom Anderson wrote: > On Mon, 19 Sep 2005, Bruno Desthuilliers wrote: > >> York a écrit : >> (snip) >> >>> I love python. However, as a biologist, I like some high-levels >>> functions in R. I don't want to spend my time on parse a data file. >> >> >> http://www.python.o

Re: testing a website from python

2005-09-21 Thread Josef Meile
Hi, > I just want to test that a given website is up or not from a python > script. I thought of using wget as an os command. Any better ideas? Here is how I did it: import urllib2 import socket def checkUrl(url, timeout=1): """Checks an url for a python version greater than 2.3.3.

Re: testing a website from python

2005-09-21 Thread Grig Gheorghiu
Achim, Have you looked into twill? It's available at Grig -- http://mail.python.org/mailman/listinfo/python-list

Chronological Processing of Files

2005-09-21 Thread yoda
This feels like a stupid question but I'll ask it anyway. How can I process files chronologically (newest last) when using os.walk()? -- http://mail.python.org/mailman/listinfo/python-list

Re: unusual exponential formatting puzzle

2005-09-21 Thread Michael Spencer
Neal Becker wrote: > Like a puzzle? I need to interface python output to some strange old > program. It wants to see numbers formatted as: > > e.g.: 0.23456789E01 > > That is, the leading digit is always 0, instead of the first significant > digit. It is fixed width. I can almost get it with

PyEphem on winXP

2005-09-21 Thread jbattat
Hi, I'm a (sort of) newbie to python and would like to install the PyEphem extension to Python. I'm using Python 2.4 I obtained PyEphem from: http://rhodesmill.org/brandon/projects/pyephem.html When i ran python setup.py install my error was: "error: Python was built with version 7.1 of Visu

Re: strange import phenomenon

2005-09-21 Thread Dieter Maurer
Christoph Zwerschke <[EMAIL PROTECTED]> writes on Tue, 20 Sep 2005 11:20:37 +0200: > Just hitting a strange problem with Python import behavior. It is the > same on all Python 2.x versions and it is probably correct, but I > currently don't understand why this happens. > ... > --- dir/__init__.py

Removing nested tuple function parameters (was: C#3.0 and lambdas)

2005-09-21 Thread Dieter Maurer
"Fredrik Lundh" <[EMAIL PROTECTED]> writes on Mon, 19 Sep 2005 10:31:48 +0200: > ... > meanwhile, over in python-dev land: > > "Is anyone truly attached to nested tuple function parameters; 'def > fxn((a,b)): print a,b'? /.../ Yes, I am... > Would anyone really throw a huge fit if t

Re: Simpler transition to PEP 3000 "Unicode only strings"?

2005-09-21 Thread Dieter Maurer
"Petr Prikryl" <[EMAIL PROTECTED]> writes on Tue, 20 Sep 2005 11:21:59 +0200: > ... > The idea: > = > > What do you think about the following proposal > that goes the half way > > If the Python source file is stored in UTF-8 (or > other recognised Unicode file format), then the > en

Re: unusual exponential formatting puzzle

2005-09-21 Thread Neal Becker
[EMAIL PROTECTED] wrote: > > [EMAIL PROTECTED] wrote: >> Neal Becker wrote: >> > Like a puzzle? I need to interface python output to some strange old >> > program. It wants to see numbers formatted as: >> > >> > e.g.: 0.23456789E01 >> > >> > That is, the leading digit is always 0, instead of th

Re: testing a website from python

2005-09-21 Thread Achim Domma (SyynX Solutions GmbH)
Benji York wrote: > If there is any interest I'll try to package up a stand-alone version in > the next few days. I think that would be a very usefull tool. Currently I'm using httpunit with Jython but a python only tool would be much nicer. regards, Achim -- http://mail.python.org/mailman/li

Re: I am not able to setup pydb2 ! Any help !

2005-09-21 Thread Scott David Daniels
Fredrik Lundh wrote: > Scott David Daniels wrote: > >>MS is fairly determined to get you develop money; you may not >>redistribute the C runtime with your app from the "free" stuff. > > that's a myth, based on a flawed reading of the MS license. to repeat > myself from various other fora: > > A

Re: unusual exponential formatting puzzle

2005-09-21 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > Neal Becker wrote: > > Like a puzzle? I need to interface python output to some strange old > > program. It wants to see numbers formatted as: > > > > e.g.: 0.23456789E01 > > > > That is, the leading digit is always 0, instead of the first significant > > digit. It is

Re: unusual exponential formatting puzzle

2005-09-21 Thread [EMAIL PROTECTED]
Neal Becker wrote: > Like a puzzle? I need to interface python output to some strange old > program. It wants to see numbers formatted as: > > e.g.: 0.23456789E01 > > That is, the leading digit is always 0, instead of the first significant > digit. It is fixed width. I can almost get it with '

Re: Crypto.Cipher.ARC4, bust or me doing something wrong?

2005-09-21 Thread Michael Sparks
Paul Rubin wrote: > Michael Sparks <[EMAIL PROTECTED]> writes: >> Rather than re-inventing wheels I thought I'd pick a library sit down >> and see how pycrypt's meant to be used before actually going anyway. >> (Amongst other reasons, this is why I suspected me, rather than the >> library :-) > >

Re: I am not able to setup pydb2 ! Any help !

2005-09-21 Thread Fredrik Lundh
Scott David Daniels wrote: > MS is fairly determined to get you develop money; you may not > redistribute the C runtime with your app from the "free" stuff. that's a myth, based on a flawed reading of the MS license. to repeat myself from various other fora: "As long as you're using a standard

unusual exponential formatting puzzle

2005-09-21 Thread Neal Becker
Like a puzzle? I need to interface python output to some strange old program. It wants to see numbers formatted as: e.g.: 0.23456789E01 That is, the leading digit is always 0, instead of the first significant digit. It is fixed width. I can almost get it with '% 16.9E', but not quite. My sol

Re: Writing a parser the right way?

2005-09-21 Thread Steven Bethard
Christopher Subich wrote: > beza1e1 wrote: > >> Well, a declarative sentence is essentially subject-predicate-object, >> while a question is predicate-subject-object. This is important in >> further processing. So perhaps i should code this order into the >> classes? I need to think a little bit m

Re: Question About Logic In Python

2005-09-21 Thread Terry Reedy
> On Wed, 21 Sep 2005 09:03:00 +1000, Steven D'Aprano > <[EMAIL PROTECTED]> wrote: >>In practice, how often do you really care that your truth values have the >>specific values 0 and 1 rather than anything false and anything true? In >>what circumstances? Another example: you have an exam with N

Re: Writing a parser the right way?

2005-09-21 Thread Paul McGuire
"beza1e1" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm writing a parser for english language. This is a simple function to > identify, what kind of sentence we have. Do you think, this class > wrapping is right to represent the result of the function? Further > parsing then che

Re: I am not able to setup pydb2 ! Any help !

2005-09-21 Thread Scott David Daniels
vincent wehren wrote: > "vj" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > news:[EMAIL PROTECTED] > | Unfortunately I get another error > | > | Your DB2 root is: C:\Program Files\IBM\SQLLIB\ > | running install > | running build > | running build_py > | creating build > | creating build\lib.win32-2

Re: Python GUIs

2005-09-21 Thread Tuvas
Thank you very much! That managed to fix the problem! -- http://mail.python.org/mailman/listinfo/python-list

Re: Python GUIs

2005-09-21 Thread Lonnie Princehouse
B is a tuple if it's assigned that way. Tuples are immutable. To make a list instead, you need square brackets: B = ['\x12', '\x32'] Regarding your original post, you'll probably have to ask more specific questions if you want to get good answers. -- http://mail.python.org/mailman/listinfo/p

set IDLE scrollback size?

2005-09-21 Thread hannibal_has_a_van
How may I increase the scrollback buffer size in IDLE? The amount I can scroll up now in IDLE is nice, but I'd like to make the scroll buffer larger. I've checked the docs, config files, and comp.lang.python archive, but I have not found a way to resize the lines I can scroll up. -- http://mail.p

Re: Finding where to store application data portably

2005-09-21 Thread Tony Houghton
Steven D'Aprano wrote: > On Tue, 20 Sep 2005 23:03:52 +0100, Tony Houghton wrote: > > >>I'm using pygame to write a game called Bombz which needs to save some >>data in a directory associated with it. In Unix/Linux I'd probably use >>"~/.bombz", in Windows something like >>"C:\Documents And

Re: Python GUIs

2005-09-21 Thread Dan
> B='\x12','\x32' > B[0]='\x12' > > I cannot get this to work, "B" is a tuple, which means it can't be assigned to. Try this: B=['\x12','\x32'] -- Do I know what's in this bill? Are you kidding? Only God knows... - U.S. Senator Robert Byrd, when asked if he knew the contents of

The .NET Framework SDK needs to be installed before building

2005-09-21 Thread vj
I have installed the .NET Framework SDK 1.1. Yet I recieve this error message when I install PYDB2. Could you please pour in your suggestions . Thanks. Vj. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question About Logic In Python

2005-09-21 Thread Ron Adam
Steven D'Aprano wrote: >>So.. >> >>bool(a and b) * value >> >>Would return value or zero, which is usually what I want when I do this >>type of expression. > That's all very interesting, and valuable advice for somebody who doesn't > understand how Python's logical operators work, but the qu

Re: Python GUIs

2005-09-21 Thread Gerald Klix
if you write B = '\x12','\x32' you get an immutable tuple. To get a mutable list use: B = [ '\x12','\x32' ] HTH, Gerald Tuvas schrieb: > As a bit more of an update, I have decided to create a list of strings, > but am having a problem. To illistrate this in a simple manner. > > B='\x12','\x32'

Re: Python GUIs

2005-09-21 Thread Tuvas
As a bit more of an update, I have decided to create a list of strings, but am having a problem. To illistrate this in a simple manner. B='\x12','\x32' B[0]='\x12' I cannot get this to work, and I need to get it to work somehow. How can I make it happen? Is there a function that I should use, a s

Re: Writing a parser the right way?

2005-09-21 Thread Christopher Subich
beza1e1 wrote: > Well, a declarative sentence is essentially subject-predicate-object, > while a question is predicate-subject-object. This is important in > further processing. So perhaps i should code this order into the > classes? I need to think a little bit more about this. A question is subj

Re: Brute force sudoku cracker

2005-09-21 Thread Tom Anderson
On Mon, 19 Sep 2005, Antoon Pardon wrote: > Op 2005-09-17, Tom Anderson schreef <[EMAIL PROTECTED]>: >> On Fri, 16 Sep 2005, Bas wrote: >> >>> -any ideas how to easily incorporate advanced solving strategies? >>> solve(problem1) and solve(problem2) give solutions, but >>> solve(problem3) gets st

Python GUIs

2005-09-21 Thread Tuvas
I have a program that I am devoloping, that uses python as a GUI interface for a camera that we am building. Our camera is controlled using an 8 byte control squence, depending on the command, will have several configurations for each byte. I need to be able to have some way to manage all 8 bytes w

Re: Brute force sudoku cracker

2005-09-21 Thread Tom Anderson
On Wed, 21 Sep 2005 [EMAIL PROTECTED] wrote: > Excellent strategies are provided by Dan Rice's blog: > http://sudokublog.typepad.com/sudokublog/2005/08/two_and_three_i.html There's an interesting remark in this post: http://sudokublog.typepad.com/sudokublog/2005/08/where_do_sudoko.html "Some Su

Re: slicing functionality for strings / Python suitabilityforbioinformatics

2005-09-21 Thread Tom Anderson
On Wed, 21 Sep 2005, Fredrik Lundh wrote: > Tom Anderson wrote: > >> There's a special hell for people who override builtins. > > which is, most likely, chock full of highly experienced python > programmers. You reckon? I've never felt the need to do it myself, and instinctively, it seems like

Re: Access CSV data by column name..

2005-09-21 Thread Larry Bates
The CSV module has a DictReader method that will read each line into a dictionary with the keys being named by the column names found on the first line. If the file doesn't have the first line, it appears you can provide the fieldnames as a keyword argument to DictReader instead (haven't used this

Access CSV data by column name..

2005-09-21 Thread Michael March
I have seen a few recipes out there that allow for access to DB-API columns by their name instead of column number.. I was wondering if anyone knew of any code snippets that allow for the same thing with the CSV module? thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: spe stani collapse all method?

2005-09-21 Thread SPE - Stani's Python Editor
It shouldn't be hard to implement. If you have a bit of python knowledge you could contact me & write a patch. Otherwise file it as a feature request. Stani http://pythonide.stani.be [EMAIL PROTECTED] wrote: > hello, > > I wonder if anyone used spe stani, I'm looking for how to collapse all > cod

Re: Perl's documentation come of age

2005-09-21 Thread Måns Rullgård
This guy deserves two ascii trolls: ___ /| /| | | ||__|| | Please do | / O O\__ NOT | / \ fe

Re: wxPython Notebook crash when pressing alt key

2005-09-21 Thread Kreedz
Could Windows version have anything to do with this?? Else I've got some really weird issue... I'm on Windows 2000 Professional - Kreedz -- http://mail.python.org/mailman/listinfo/python-list

Re: Perl's documentation come of age

2005-09-21 Thread Keith Thompson
"Xah Lee" <[EMAIL PROTECTED]> writes: [ the usual ] +---+ .:\:\:/:/:. | PLEASE DO NOT |:.:\:\:/:/:.: | FEED THE TROLLS | :=.' - - '.=: | | '=(\ 9 9 /)=' | Thank yo

Re: wxPython Notebook crash when pressing alt key

2005-09-21 Thread TheSeeker
Hi, Works for me: Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] wxPython 2.6.1.0 Duane -- http://mail.python.org/mailman/listinfo/python-list

Re: Brute force sudoku cracker

2005-09-21 Thread david . blume
Bas, you and I are both a little late to the sudoku python experience. Here's my feeble attempt: http://home.earthlink.net/~daliblume/Download/sudoku/index.html Inspired by this article: http://somethinkodd.com/oddthinking/?p=21 Excellent strategies are provided by Dan Rice's blog: http://sudokubl

Re: wxPython Notebook crash when pressing alt key

2005-09-21 Thread Kreedz
Did it freeze for you too with the alt+f while focus on the tab? -- http://mail.python.org/mailman/listinfo/python-list

Re: I am not able to setup pydb2 ! Any help !

2005-09-21 Thread vincent wehren
"vj" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | Unfortunately I get another error | | Your DB2 root is: C:\Program Files\IBM\SQLLIB\ | running install | running build | running build_py | creating build | creating build\lib.win32-2.4 | copying DB2.py -> build\lib.win32-2.4

Re: Organising a python project

2005-09-21 Thread beza1e1
I don't know about a typical python way, but i'd like to know as well ;) Personally i have a project for my project foo, which has foo/__init__.py# with all the other modules doc/# documentation is always a good idea script/ # everything executable, which later goes into 'bin' director

Re: Writing a parser the right way?

2005-09-21 Thread beza1e1
Well, a declarative sentence is essentially subject-predicate-object, while a question is predicate-subject-object. This is important in further processing. So perhaps i should code this order into the classes? I need to think a little bit more about this. Thanks for your feed for thought! :) --

Re: I am not able to setup pydb2 ! Any help !

2005-09-21 Thread vj
Unfortunately I get another error Your DB2 root is: C:\Program Files\IBM\SQLLIB\ running install running build running build_py creating build creating build\lib.win32-2.4 copying DB2.py -> build\lib.win32-2.4 running build_ext error: The .NET Framework SDK needs to be installed before building ex

Re: Finding where to store application data portably

2005-09-21 Thread Trent Mick
> > > I'm using pygame to write a game called Bombz which needs to save some > > > data in a directory associated with it. In Unix/Linux I'd probably use > > > "~/.bombz", in Windows something like > > > "C:\Documents And Settings\\Applicacation Data\Bombz". > > > > In Windows, you shouldn't hard-

Re: I am not able to setup pydb2 ! Any help !

2005-09-21 Thread vincent wehren
"vj" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] |I am new to Python . Please let me where should I issue the command | "setup.py install". | | I have been using the IDLE to run Python scripts. You need to open the command prompt (e.g. by entering "cmd" in the "Run" input b

Re: I am not able to setup pydb2 ! Any help !

2005-09-21 Thread Robert Kern
vj wrote: > When I run the setup.py script , it throws an error > > Traceback (most recent call last): > File "C:\vijay\db2\utils\PyDB2-1.1.0-2.tar\PyDB2-1.1.0\setup.py", > line 57, in -toplevel- > libraries=[ db2lib ], > File "C:\Python24\lib\distutils\core.py", line 137, in setup > r

Re: C#3.0 and lambdas

2005-09-21 Thread Bill Mill
On 9/21/05, Scott David Daniels <[EMAIL PROTECTED]> wrote: > Roel Schroeven wrote: > > ... > > Christophe schreef: > >> ... > >>And what about a function which computes the line length ? > > > > That would have been a better example indeed, since the *p1 trick > > doesn't work there. > > > > def eu

Re: wxPython Notebook crash when pressing alt key

2005-09-21 Thread Steve Holden
Kreedz wrote: > I have written the "import wx" in my message. > > You press F key while holding down Alt while focusing on the tab? > > Python 2.4.1, wxPython 2.6.1.0 > Nope. Just slightly incompetent at copy-and-paste when multitasking. Looks like you might need to report a bug to the wxPython

Re: I am not able to setup pydb2 ! Any help !

2005-09-21 Thread vj
I am new to Python . Please let me where should I issue the command "setup.py install". I have been using the IDLE to run Python scripts. -- http://mail.python.org/mailman/listinfo/python-list

Re: Perl's documentation come of age

2005-09-21 Thread Steve Holden
Jeremy Jones wrote: > Ed Hotchkiss wrote: > > >>I'm new to Python, not programming. I agree with the point regarding >>the interpreter. what is that? who uses that!? Why are most examples >>like that, rather than executed as .py files? > > > I think showing examples at the Python interpreter

Re: I am not able to setup pydb2 ! Any help !

2005-09-21 Thread vincent wehren
"vj" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | When I run the setup.py script , it throws an error | | Traceback (most recent call last): | File "C:\vijay\db2\utils\PyDB2-1.1.0-2.tar\PyDB2-1.1.0\setup.py", | line 57, in -toplevel- |libraries=[ db2lib ], | File "C:\

  1   2   >