Re: Suggesion for an undergrad final year project in Python

2005-02-01 Thread David Fraser
Sridhar wrote: Hi, I am doing my undergrade CS course. I am in the final year, and would like to do my project involving Python. Our instructors require the project to have novel ideas. Can the c.l.p people shed light on this topic? You could write a Python program that writes novels. -- http://

Re: Redirecting stdout/err under win32 platform

2005-02-01 Thread David Douard
redirecting the stdout/stderr from my C lib). But I still have a problem with this solution (well, 2): - it is *much* more complicated than any solution available on Unix like systems (not really a problem, but), - it not synchronous at all. And I'd like it to be so (or almost so). David

Re: continuous plotting with Tkinter

2005-02-02 Thread David Douard
Martin Blume wrote: > I have a number-crunching application that spits out > a lot of numbers. Now I'd like to pipe this into a python > app and plot them using Tkinter, such as: > $ number_cruncher | myplot.py > But with Tkinter once I call Tkinter's mainloop() I > give up my control of the app

Re: Basic file operation questions

2005-02-02 Thread David Douard
k at the excellent Gnosis book on the subject (and very much more further, but...): http://gnosis.cx/TPiP/ which is freely available in text format. David -- http://mail.python.org/mailman/listinfo/python-list

Re: Basic file operation questions

2005-02-02 Thread David Douard
David Douard wrote: > Marcel van den Dungen wrote: > >> alex wrote: >>> Hi, >>> >>> I am a beginner with python and here is my first question: >>> How can I read the contents of a file using a loop or something? I open >>> the file wit

Re: Redirecting stdout/err under win32 platform

2005-02-03 Thread David Bolen
tem would have with these calls) -- David -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a market for python developers?

2005-02-03 Thread David Fraser
Mabon Dane wrote: I am new to python and took my first attempts at working with this language today. Is there a market for people who work with Python? Slavery is outlawed in most parts of the world these days :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Weekly Python Patch/Bug Summary

2005-02-04 Thread David Fraser
include the status of the closed bugs ... if a patch has been refused thats very different to it being included. I usually end up opening the page to see what has happened, would be nice if it was in the mail... David -- http://mail.python.org/mailman/listinfo/python-list

reading a list from a file

2005-06-20 Thread David Bear
r = " ' " Well, reading character by char until I have the list and then parse it all myself. I was hoping there was a pythonic way of doing this.. -- David Bear -- let me buy your intellectual property, I want to own your thoughts -- -- http://mail.python.org/mailman/listinfo/python-list

getting an object name

2005-06-21 Thread David Bear
Let's say I have a list called, alist. If I pass alist to a function, how can I get the name of it? alist = range(10) def afunction(list): listName = list.__name__ (fails for a list object) -- http://mail.python.org/mailman/listinfo/python-list

a dictionary from a list

2005-06-24 Thread David Bear
ctionary, and the value of the keys set to null? -- David Bear -- let me buy your intellectual property, I want to own your thoughts -- -- http://mail.python.org/mailman/listinfo/python-list

rsync protocol in python

2005-06-27 Thread David Bear
I was wondering if anyone has implemented the rsync protocol in python. -- David Bear -- let me buy your intellectual property, I want to own your thoughts -- -- http://mail.python.org/mailman/listinfo/python-list

Python JavaScript solution to hold vertical scroll bar

2005-06-27 Thread David Pratt
l scroll position as a parameter to a JavaScript. Does anyone have such a solution or other advice for solving this? Regards, David -- http://mail.python.org/mailman/listinfo/python-list

Splitting string into dictionary

2005-06-30 Thread David Pratt
I have string text with language text records that looks like this: 'en' | 'the brown cow' | 'fr' | 'la vache brun' Two or more language records can exist in each string (example above shows 2 - but could contain more) The second vertical line character in the example above is the record break

Re: Splitting string into dictionary

2005-06-30 Thread David Pratt
Wow Robert that is incredible python magic! I am trying to figure out what this is doing since my attempts were regex and some long string splitting and collection. Ok. So it is a list comprehension and then collection. What is zip doing in the second line? Regards David On Friday, July 1

Re: Splitting string into dictionary

2005-06-30 Thread David Pratt
Pretty amazing Devan! Great regex! Thank you. Regards, David On Friday, July 1, 2005, at 02:29 AM, Devan L wrote: > One line solution. > dict(re.findall(r"'(.+?)' \| '(.+?)'(?:\s\||$)",yourtexthere)) > > -- > http://mail.python.org/mailman/list

Re: Splitting string into dictionary

2005-06-30 Thread David Pratt
Thanks George! You guys are great! I am always learning. Python is awesome!! On Friday, July 1, 2005, at 02:33 AM, George Sakkis wrote: > "Robert Kern" wrote: > >> Ignore the last message. >> >> translations = [x.strip(" '") for x in line.split('|')] >> d = dict(zip(translations[::2], transla

Re:

2005-07-05 Thread David Bolen
run your unit test suite under its control. There's also http://www.softwareverify.com/pythonCoverageValidator which is commercial. -- David -- http://mail.python.org/mailman/listinfo/python-list

Re: debugger?

2005-07-06 Thread David Bolen
;s seems to be a tough requirement for many of the existing debuggers because the exceptions occur in code that has been called out to from within a C++ layer, and thus have to be caught before the C++ layer gets a chance to clear the exception. -- David -- http://mail.python.org/mailman/listinfo/python-list

Compatibility of recent GCC/Python versions

2005-07-06 Thread David Abrahams
Recently people testing Boost.Python with GCC on Linux have reported that the extensions being tested have to be compiled with exactly the same version of GCC as the Python they're being loaded into, or they get mysterious crashes. That doesn't correspond to my past experience; it has always been

Re: map/filter/reduce/lambda opinions and background unscientific mini-survey

2005-07-06 Thread David Abrahams
Tom Anderson <[EMAIL PROTECTED]> writes: > Comrades, > > During our current discussion of the fate of functional constructs in > python, someone brought up Guido's bull on the matter: > > http://www.artima.com/weblogs/viewpost.jsp?thread=98196 > > He says he's going to dispose of map, filter, red

Re: map/filter/reduce/lambda opinions and background unscientific mini-survey

2005-07-06 Thread David Abrahams
Bruno Desthuilliers <[EMAIL PROTECTED]> writes: > I discovered FP with David Mertz's papers about FP in Python. I had > never read nor write a line of lisp, scheme, haskell, caml etc before. > And I'd certainly start thinking of choosing another MYFL if anonymous >

pyo contains absolute paths

2005-07-09 Thread David Siroky
Hi! When I "compile" my python files with "python -OO " into pyo files then they still contain absolute paths of the source files which is undesirable for me. How can I deal with that? Thank you. David -- http://mail.python.org/mailman/listinfo/python-list

Re: pyo contains absolute paths

2005-07-11 Thread David Siroky
V Sat, 09 Jul 2005 10:22:06 -0400, Peter Hansen napsal(a): > David Siroky wrote: >> When I "compile" my python files with "python -OO " into pyo files >> then they still contain absolute paths of the source files which is >> undesirable for me. How

Re: pyo contains absolute paths

2005-07-11 Thread David Siroky
ths of my modules which have btw. the same base path as the main module so I would expect only relative paths in the compiled files. David -- http://mail.python.org/mailman/listinfo/python-list

tuple.index(item)

2005-07-11 Thread David Isaac
Why don't tuples support an index method? It seems natural enough ... Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Odd behaviour of regexp module

2005-07-13 Thread David Veerasingam
Hello It seems the grouping feature isn't behaving correctly. In [1]: a = 'dfsf.oct.ocfe' In [2]: b = re.match(r'^(.*?)\.', a); b.group() 'dfsf.' The expected result is 'dfsf'. Why did the regexp grab that period at the end? David -- http://mail.python.org/mailman/listinfo/python-list

Newbie question: Explain this behavior

2005-07-14 Thread David Smith
Why does code snippet one work correctly, but not two. The only difference is the placement of the "else". I know that indentation affects execution, but how does it change behavior in the following examples? Thank you. 1. for n in range(2, 10): for x in range(2, n): if n % x =

Re: Newbie question: Explain this behavior - a followup

2005-07-15 Thread David Smith
First, thanks to those who offered answers. They didn't really answer my question, only because I had not worked through the example sufficiently well. Doing this, I believe I understand what is happening, and, if my understanding is correct, have discovered that for other beginning and ending va

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-20 Thread David Trudgett
oked into it any time in the last couple of years, though, so I don't know its status. I really would suggest a serious look at Ada, though, if you want to develop fast, industrial strength applications, or take advantage of built-in concurrency support and lots of other goodies. David -- D

Re: Newbie question: Explain this behavior - a followup

2005-07-20 Thread David Smith
max wrote: > David Smith <[EMAIL PROTECTED]> wrote in > news:[EMAIL PROTECTED]: > > >>range statements, the example doesn't work. >> >>Given that the beginning and ending values for the inner range >>statement are the same, the inner range stateme

looking for an introduction to python book

2005-07-20 Thread David Fickbohm
People, I am looking for an introduction to python book.  Hopefully with a windows orientation ThanksDaveDave FickbohmUse Technology to the Fullest1250 45th st suite 200Emeryville, CA, 94608510 594 4151 voice Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard.-- http://mail.pyth

looking for a book on python

2005-07-21 Thread David Fickbohm
People, could someone please recommend a book on python. Ideally a windows oriented one ? Thanks DaveDave FickbohmUse Technology to the Fullest1250 45th st suite 200Emeryville, CA, 94608510 594 4151 voice__Do You Yahoo!?Tired of spam? Yahoo! Mail has

Setting environment variables for tcsh session

2005-07-21 Thread David Durkee
command printed the value of the variable I had just set! Success, or so I thought. However, a subsequent echo command from the command prompt still returned the old value of the variable. I think running the script must start a new session and that variables set in that session are only current a

Re: Returning histogram-like data for items in a list

2005-07-22 Thread David Isaac
"Ric Deez" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a list: > L1 = [1,1,1,2,2,3] > How can I easily turn this into a list of tuples where the first element > is the list element and the second is the number of times it occurs in > the list (I think that this is referred

Re: Software needed

2005-07-22 Thread David Isaac
"niXin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can anyone direct me to where I can find free software to do the following: > Document Management Software > --- > 1. Written in PHP or Python > 2. scanning feature - where I can scan a document http://

Re: Setting environment variables for tcsh session

2005-07-22 Thread David Durkee
I didn't get much from the discussion of Command Substitution. Any tips on how to do that? David On Jul 21, 2005, at 10:12 PM, Dan Sommers wrote: > On Thu, 21 Jul 2005 21:39:01 -0500, > David Durkee <[EMAIL PROTECTED]> wrote: > > > > >> I'm trying

Re: How to run python script in background after i logout

2005-07-24 Thread James David
"Harlin Seritt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a remote linux server where I can only access it via ssh. I have > a script that I need to have run all the time. I run like so: > > python script.py & > > It runs fine. When I log off ssh I notice that the script

can list comprehensions replace map?

2005-07-27 Thread David Isaac
Newbie question: I have been generally open to the proposal that list comprehensions should replace 'map', but I ran into a need for something like map(None,x,y) when len(x)>len(y). I cannot it seems use 'zip' because I'll lose info from x. How do I do this as a list comprehension? (Or, more gen

Application Error (referenced error)

2005-08-01 Thread David Blomstrom
This is my first post on this list, and I'm new to Python. I downloaded a content management system called Plone and get the following error message when I try to start it: Plone Controller - [Plone Status]: pythonw.exe - Application Error The instruction at "0x009d3f09" referenced memory at "0x0

Re: Dabo in 30 seconds?

2005-08-01 Thread David Cuthbert
Ed Leafe wrote: > Should we have defensive code for every possible broken installation? We use > a lot of the Python standard library modules, many dbapi-compliant modules, > and, of course, wxPython. If someone mis-installs one of the pre-requisites, > do you expect Dabo to catch that and pres

Re: How to determine that if a folder is empty?

2005-08-08 Thread David Cuthbert
Mike Meyer wrote: > Just out of curiosity, is there an OS out there where you can have the > permissions needed to delete a directory without having the > permissions needed to create it appropriately? Not an OS, but AFS has a wider set of permissions (RLIDWKA - which, if I remember correctly, ar

Re: python for microcontrollers

2005-08-08 Thread David Cuthbert
Paul Rubin wrote: > I don't think you want to do this. Runtime type tags and the overhead > of checking them on every operation will kill you all by themselves. > Processors like that haven't been used much as Lisp targets either, > for the same reasons. Pick a different language. I was thinking

MultiFile object does not iterate

2005-08-09 Thread David Isaac
Why is a MultiFile object not an iterator? For example if mfp = multifile.MultiFile(fp)I cannot dofor line in mfp: do_somethingRelated:MultiFile.next seems badly named.(Something like next_section would be better.)Is this just historical accident or am I missing the point?Thanks,Alan Isaac -- ht

FTP over SSL (explicit encryption)

2005-08-10 Thread David Isaac
I am looking for a pure Python secure ftp solution. Does it exist? I would have thought that the existence of OpenSSL would imply "yes" but I cannot find anything. ftplib does not seem to provide any secure services. I know about fptutil http://codespeak.net/mailman/listinfo/ftputil but that doe

Re: FTP over SSL (explicit encryption)

2005-08-10 Thread David Isaac
"Eric Nieuwland" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Do you want SFTP or FTP/S? The latter. > I'm having a look at FTP/S right now. That's a little > more complicated, but it seems doable. > If I succeed, I guess I'll donate the stuff as an extension to ftplib. Great!

Re: FTP over SSL (explicit encryption)

2005-08-11 Thread David Isaac
> David Isaac wrote: > > I am looking for a pure Python secure ftp solution. > > Does it exist? "Andrew MacIntyre" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I recall coming across an extension package (pretty sure it wasn't pure > Pyt

Re: FTP over SSL (explicit encryption)

2005-08-12 Thread David Isaac
"Alan Isaac" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > http://www.lag.net/paramiko/ > However it requires the PyCrypto module. > http://www.amk.ca/python/code/crypto > > Can you briefly outline how to use this as a client > to upload and down files from a server using SFTP? OK

Re: Bug on Python2.3.4 [FreeBSD]?

2005-08-12 Thread David Bolen
cat test" would produce output where the "testing" was on the same line as your next command prompt, and can sometimes be missed visually. > Can anyone confirm that? Is there any other way of opening a file for > appending instead of a+? Well, if you really just want appending, I'd just use "a". It creates the file if necessary but always appends to the end. Of course, it's not set up for reading, but you wouldn't need that for appending. -- David -- http://mail.python.org/mailman/listinfo/python-list

new PEP type: Process

2005-08-12 Thread David Goodger
For more information, please see PEP 1 (http://www.python.org/peps/pep-0001.html) -- the type of which has also been changed to Process. Other good examples of Process PEPs are the release schedule PEPs, and I understand there may be a new one soon. (Please cc: any PEP-related mail to [EMAIL PROTECTED]

Re: Permutation Generator

2005-08-13 Thread David Isaac
"Talin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I wanted to share > this: a generator which returns all permutations of a list: Try this instead: def permuteg(lst): return ([lst[i]]+x for i in range(len(lst)) for x in permute(lst[:i]+lst[i+1:])) \ or [[]

Re: Permutation Generator

2005-08-14 Thread David Isaac
"Casey Hawthorne" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It's hard to make "complete" permutation generators, Knuth has a whole > fascicle on it - "The Art of Computer Programming - Volume 4 Fascicle > 2 - Generating All Tuples and Permutations" - 2005 Can you elaborate a

Re: FTP over SSL (explicit encryption)

2005-08-14 Thread David Isaac
"Eric Nieuwland" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm having a look at FTP/S right now. That's a little > more complicated, but it seems doable. > If I succeed, I guess I'll donate the stuff as an extension to ftplib. Just found this: http://trevp.net/tlslite/ I haven

Re: FTP over SSL (explicit encryption)

2005-08-14 Thread David Isaac
> > http://www.lag.net/paramiko/ "Alan Isaac" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > sock.settimeout(20) > sock.connect((hostname, port)) > my_t = paramiko.Transport(sock) > my_t.connect(hostkey=None ,username=userna

trying to check the creation date of a file

2005-08-19 Thread David Fickbohm
People, I am trying to determine the creation date of files in a folder. I am using the following code to find the folder and confirm that files exist in the folder. If someone could give me an idea how to check a creation date it would be appreciated. Thanks dave def delete_old_files (t:\dm\~

Re: Gimp-Python

2005-08-21 Thread David Trudgett
ng list to find out more? http://www.gimp.org/mail_lists.html Saluti, David -- David Trudgett http://www.zeta.org.au/~wpower/ Così uno, il quale fin dalla nascita avesse avuto le gambe legate e pure avesse trovato modo di camminare alla men peggio, potrebbe attribuire la sua facoltà di muoversi preci

setup install question

2005-08-22 Thread David Pratt
m 2.4.1 site-packages to 2.3.5's to make rdflib available to 2.3.5 python? Many thanks David -- http://mail.python.org/mailman/listinfo/python-list

How to execute python script in Windows

2005-08-23 Thread David Fickbohm
People, Can someone please tell me how to execute a python script in windows? Thanks DaveDave FickbohmUse Technology to the Fullest1250 45th st suite 200Emeryville, CA, 94608510 594 4151 voice-- http://mail.python.org/mailman/listinfo/python-list

Fighting Spam with Python

2005-08-24 Thread David MacQuigg
Are you as mad about spam as I am? Are you frustrated with the pessimism and lack of progress these last two years? Do you have faith that an open-source project can do better than the big companies competing for a lock-in solution? If so, you might be interested in the Open-Mail project. I'm w

Re: Fighting Spam with Python

2005-08-25 Thread David MacQuigg
On Thu, 25 Aug 2005 10:18:37 -0400, Peter Hansen <[EMAIL PROTECTED]> wrote: >David MacQuigg wrote: >> Are you as mad about spam as I am? Are you frustrated with the >> pessimism and lack of progress these last two years? Do you have >> faith that an open-source pro

Re: Fighting Spam with Python

2005-08-26 Thread David MacQuigg
On Thu, 25 Aug 2005 13:22:53 -0400, François Pinard wrote: >[David MacQuigg] > >> The key new features needed in a spam filter are the ability to >> extract the sender's identity (not that of the latest forwarder), and >> to factor into the spam score the reputation o

Re: Fighting Spam with Python

2005-08-26 Thread David MacQuigg
On Fri, 26 Aug 2005 10:36:28 -0400, François Pinard <[EMAIL PROTECTED]> wrote: >[David MacQuigg] > >> Getting these methods widely and effectively used is our big >> challenge, and one that I hope to accomplish with my efforts. > >I wish one of these methods, ei

Re: Licensing and Other Questions

2005-08-26 Thread David MacQuigg
is to provide an open-source version of what big companies are now paying millions for - spam appliances with proprietary methods. On Fri, 26 Aug 2005 23:20:05 GMT, [EMAIL PROTECTED] (John J. Lee) wrote: >[David, in an earlier email] >> reject. 15% will get an immediate accept withou

Re: Newbie question: Sub-interpreters for CAD program

2005-08-27 Thread David MacQuigg
On 24 Aug 2005 13:48:13 -0700, "sonicSpammersGoToHellSmooth" <[EMAIL PROTECTED]> wrote: >Hi all, > >I'm a newbie to Python, so I have a question about writing an >application that also has a scripting ability. I'm thinking of Eric3 >as an example. It's written in Python, but it also has an inter

Re: Newbie question: Sub-interpreters for CAD program

2005-08-29 Thread David MacQuigg
On Sat, 27 Aug 2005 16:56:03 -0500, Terry Hancock <[EMAIL PROTECTED]> wrote: >On Saturday 27 August 2005 03:21 am, David MacQuigg wrote: >> There is a similar lack of interest in the academic community. None >> of this is likely to lead to publications in scholarly journal

Re: Newbie question: Sub-interpreters for CAD program

2005-08-29 Thread David MacQuigg
On 27 Aug 2005 17:00:07 -0700, "sonicSpammersGoToHellSmooth" <[EMAIL PROTECTED]> wrote: >Cool, I went to the UofA for my MS in ECE, 2000. I did my theses under >Chuck Higgins. -- >http://neuromorph.ece.arizona.edu/pubs/ma_schwager_msthesis.pdf > >The tools we had were constantly underwhelming me,

To Python List Moderator

2005-08-31 Thread David Fickbohm
Can you please remove me from the list starting tomorrow I am going an a weeks vacation. I do not want people to get the "Dave Fickbohm is out of the office" message over and over If I could be reinstated as of 9/12/05  it would be appreciated. Thanks DaveDave FickbohmUse Technology to the Fullest1

Migrate PYD Files

2005-09-08 Thread David Duerrenmatt
Is there a way to use old pyd files (Python 1.5.2) with a newer version of Python without recompiling them? Because the source code is not available anymore, I'm wondering whether it's possible or not to change few bytes with a hex editor (version number?). I'd like to give it a try since the modu

Python on AIX 4.3.

2005-09-14 Thread David Gutierrez
1-317 ERROR: Undefined symbol: .pthread_detach ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1. Has anyone seen this before. Thanks in Advance! David -- http://mail.pytho

Re: Python on AIX 4.3.

2005-09-14 Thread David Gutierrez
Alessandro, No, Im not trying to install a posix thread. I was just doing a straight forward installation in AIX 4..3.3. David From: Alessandro Bottoni <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [email protected] Subject: Re: Python on AIX 4.3. Date: Wed, 14 Sep 2005 16:32:

Re: Pre-PEP Proposal: Codetags

2005-09-14 Thread David Goodger
Also, please update the Post-History header, adding the date(s) you posted the PEP to the mailing lists and/or newsgroups. And this time I'll remember to attach the file :-) -- David Goodger <http://python.net/~goodger> PEP: XXX Title: Codetags Version: $Revision$ Last-Modified: $D

Hello everything

2005-09-14 Thread David Pantoja
I have an application in tkinter, one button call to another window, but the position of this window is random, i' whish to ask at the list, if exist a function to put the window in x position of the screen, if exist, which function is it?... thanks in advanced... david --

Re: Python in C integration and WxPython

2005-09-15 Thread David Wilson
your C program natively on Windows should solve the problem. Alternatively, if wxPython is available for cygwin (possibly via cygwin's X server) then installing it would also help. David. Alain Paschoud wrote: > Hi all, > > I made a small dialog in WxPython. I can run the python

Re: MySQLdb UPDATE does nothing

2005-09-15 Thread David Wilson
s: cursor.execute("UPDATE product_attribute SET col1 = %s WHERE id = %s", (index, record2[0])) As for why the UPDATE has no effect, which version of MySQL are you using? David. -- http://mail.python.org/mailman/listinfo/python-list

Re: python optimization

2005-09-15 Thread David Wilson
, IronPython and PyPy are two projects which you might be interested in if execution performance is of interest to you. http://www.ironpython.com/ http://codespeak.net/pypy/ David. -- http://mail.python.org/mailman/listinfo/python-list

Example of signaling and creating a python daemon

2005-09-15 Thread David Pratt
have no experience daemonizing a script so this help would be much appreciated. I have found a couple of scripts googling on creating a deemon but not work in this way. Regards, David -- http://mail.python.org/mailman/listinfo/python-list

Re: Example of signaling and creating a python daemon

2005-09-15 Thread David Pratt
Hi jepler! This is a nice example. I will study it so I can better see what each part is doing. I may have a couple of questions once I have done this because I have not yet daemonized a process and I want to be sure I understand before I attempt to run anything I create. Many thanks. David

Re: Brute force sudoku cracker

2005-09-17 Thread David Durkee
ike cheating, though. I wrote it recursively, as making one guess can lead to another situation where the puzzle is still solvable but strategies one and two get stuck. I've never seen it recurse more than twice with a real puzzle. With a really gross test I call "ones test",

win32com.client.GetActiveObject()

2005-09-18 Thread David Nicolson
with iTunes' COM server? I have seen other 'Operation unavailable' messages in a few other mailing lists but was unable to find any solutions to this problem. Regards, David -- http://mail.python.org/mailman/listinfo/python-list

Re: QCheckListItem signal question

2005-09-20 Thread David Boddie
You could connect the currentChanged() or clicked() signals in your QListView to a slot in some other object (perhaps the parent of the QListView). When the signal is emitted, you can examine the state of the item passed to the slot. Hope this helps, David -- http://mail.python.org/mailman

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: Looking for system/network monitoring tool written in Python

2005-09-22 Thread David Wilson
See http://pynms.sourceforge.net/ Also see Google. :) David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling python scripts from C# programs

2005-09-22 Thread David Wilson
You should also be aware of IronPython, although it is not suitable for production use due to its reliance on a beta version of the .NET runtime. In some future time, IronPython will probably be the cleanest and simplest way to integrate Python with existing .NET code. http://www.ironpython.com/

Re: win32 service and sockets

2005-02-09 Thread David Bolen
any of it's built-in firewall support be enabled, and perhaps blocking access to your server's port? -- David -- http://mail.python.org/mailman/listinfo/python-list

Re: [perl-python] combinatorics fun

2005-02-10 Thread David Eppstein
'2,4': (2, 4), '3,4': (3, 4)} Note I'm using 0-based indexing, use range(1,n+1) and range(1,j+1) instead if you really need it to be 1-based. Also I'm using Python 2.3, I think in 2.4 you can take out the square brackets and it would still work. -- David Eppstein Computer Science Dept., Univ. of California, Irvine http://www.ics.uci.edu/~eppstein/ -- http://mail.python.org/mailman/listinfo/python-list

Re: a sequence question

2005-02-10 Thread David Isaac
"Nick Coghlan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Using zip(*[iter(l)]*N) or zip(*(iter(l),)*N) simply extends the above to the > general case. Clearly true. But can you please go into much more detail for a newbie? I see that [iter(l)]*N produces an N element list with

Re: a sequence question

2005-02-11 Thread David Isaac
> Alan Isaac wrote: > > I see that [iter(l)]*N produces an N element list with each element being > > the same iterator object, but after that > > http://www.python.org/doc/2.3.5/lib/built-in-funcs.html > > just didn't get me there. "Nick Coghlan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL P

Re: Iteration over two sequences

2005-02-11 Thread David Isaac
"Scott David Daniels" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]: > Numarray is the future, Numeric is the "past", This statement is not obviously true. See the recent discussion on the developer lists. (Search for Numeric3.) Alan Isaac -- h

Re: a sequence question

2005-02-12 Thread David Isaac
"Nick Coghlan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > A bug report on Sourceforge would help in getting the problem fixed for the 2.5 > docs Done. > For the 'left-to-right' evaluation thing, that's technically an implementation > artifact of the CPython implementation, si

Re: Commerical graphing packages?

2005-02-14 Thread David Fraser
Erik Johnson wrote: I am wanting to generate dynamic graphs for our website and would rather not invest the time in developing the code to draw these starting from graphics primitives. I am looking for something that is... "fairly robust" but our needs are relatively modest: X-Y scatter plots w

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread David Fraser
ore of an argument for having them included David -- http://mail.python.org/mailman/listinfo/python-list

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread David Fraser
tself. Actually compiling extensions with mingw seems to work fine. Have you tried it? David -- http://mail.python.org/mailman/listinfo/python-list

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread David Fraser
works for Python 2.4 as well. But please just download it, try it out, and report any problems in a separate thread here - I'm sure you'll find people more than willing to help. The actual error messages etc will yield more valuable discussion than any speculation now - or you might find it

subprocess problem on Windows in IDLE and PythonWin

2005-02-15 Thread David S.
Python 2.4 on Windows XP In the python command-line the following works fine: >>> from subprocess import * >>> p = Popen('dir', stdout=PIPE) >From within IDLE or PythonWin I get the following exception: Traceback (most recent call last): File "", line 1, in -toplevel- p = Popen('dir', stdo

Re: [newbie]How to install python under DOS and is there any Wxpython can be installed under dos?

2005-02-15 Thread David S.
john san att.net> writes: > > How to install python under DOS and is there any Wxpython-like can be > installed under dos? > > Thanks. > If you are looking for Windows installers then, yes. See: http://www.wxpython.org/ http://www.wxpython.org/download.php#binaries If you are really looking f

huge help for interactive python

2005-02-16 Thread David S.
If you are using ipython on Windows then you will have made sure you have Gary Bishop's readline library as instructed in the ipython install directions found at: http://ipython.scipy.org/ Even if you use the standard commandline tool, installing readline makes the basic command line a lot eas

Re: huge help for interactive python

2005-02-16 Thread David S.
David S. alumni.tufts.edu> writes: > I am sure it can be improved, but it was easy. By the > way, it generates LaTeK. LaTeX, rather. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why doesn't join() call str() on its arguments?

2005-02-16 Thread David Eppstein
r e.g. > user-defined classes that have a __str__() defined. That would be the wrong thing to do when the arguments are unicodes. -- David Eppstein Computer Science Dept., Univ. of California, Irvine http://www.ics.uci.edu/~eppstein/ -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E02 - ULTIMATE RECIPE TO RESOLVE ALL ISSUES

2005-02-18 Thread David Fraser
carry out his own sort of 'survey' on how various communities respond to questions asked in the kind of way he asked them ... See his web site. David -- http://mail.python.org/mailman/listinfo/python-list

Re: exercise: partition a list by equivalence

2005-02-18 Thread David Eppstein
ns before all the finds, as in this algorithm, union-find is O(n). However it might be easier to treat the input pairs as the edges of a graph and apply a depth-first-search based graph connected components algorithm. -- David Eppstein Computer Science Dept., Univ. of California, Irvine http://www.i

<    6   7   8   9   10   11   12   13   14   15   >