PYGTK, Google Suggest-like GUI

2005-03-02 Thread Ali
Hi there, I am using pygtk, and i am implementing a "find as you type" in a text entry. I intend for it to behave like the 'google suggest' box. So, that as you type, a list of values appear below the text box as in a list and you can use arrow keys to select a value. I can't think of a straight-

Re: What is the best way to handle a command line argument that includes an escape sequence like \n?

2005-03-02 Thread Steve Holden
Joe wrote: I'm using Python 2.4 on Windows XP SP2. I'm trying to receive a command line argument that is a newline (\n) Here is the command line to use sample.py "\n" Here is a sample.py script import sys c = sys.argv[1] # when run c is set to \\n instead of \n. I created a test batch file echo %1

Re: How to write python plug-ins for your own python program?

2005-03-02 Thread alex23
Tian wrote: > Is there any good method to > read in python code and test availability and invoke the functions > inside? You mean like 'import'? :) - alex23 -- http://mail.python.org/mailman/listinfo/python-list

Re: mx.ODBC 2.0.7 bug?

2005-03-02 Thread Steve Holden
Joe wrote: Python 2.4 Windows XP SP2 MS Access 2000 mx.ODBC 2.0.7 Problem data truncation occuring (here's the actual error message): mxODBC.Warning: ('01004', 5, '[Microsoft][ODBC Microsoft Access Driver] String data, right truncated on column number 3 (Expr1002)', 3326) I believe that have fou

Re: windows bat file question

2005-03-02 Thread Tim Roberts
Tom Willis <[EMAIL PROTECTED]> wrote: >I'm trying to get pylint running on windows and the bat file for it >seems a little screwy. I'm hoping someone may have figured this out >already. > >rem = """-*-Python-*- script >@echo off >rem DOS section >rem You c

Re: [Python-Dev] Re: OK, time to retire

2005-03-02 Thread Brett C.
[taking python-dev off of the Cc: list] Scott David Daniels wrote: Brett C. wrote: I have decided that I am going to stop doing the python-dev Summaries > after PyCon; the Summary covering the last half of March 2005 will be > it for me. I (as well as most, I'd guess) have enjoyed your voice in t

get textual content of a Xml element using 4DOM

2005-03-02 Thread frankabel
Hi all! I have the following xml file: " hi hello " and need to read all the content between and tags and saved in a string, in this case: " hi hello " Working with "xml.dom.minidom" I can use the "xml.dom.minidom.Node.toxml()" to obtain the string inside one nod

How to write python plug-ins for your own python program?

2005-03-02 Thread Tian
I am writing an audio game using Python. in this game you can apply some sound effects for the clips you have recorded. I want to make this function extensible. I want user to be able to add new sound effect plug-ins in the future. I want the plug-in to be a simple python code (text file) and a de

Re: os.stat('')[stat.ST_INO] on Windows

2005-03-02 Thread Tim Roberts
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > >Tim Roberts wrote: >>>Are inodes supported on Windows NTFS, FAT, FAT32? >> >> No. Inodes are strictly a Unix filesystem concept. > >I disagree. NTFS MFT records are so similar to inodes >that their numbers could well be used in st_ino (except >that

Re: Identify and perform actions to data within stated limits

2005-03-02 Thread Peter Hansen
Mike Meyer wrote: Peter Hansen <[EMAIL PROTECTED]> writes: It may look like an array to you, but it's a list. Python doesn't have arrays Huh? guru% pydoc array ... You got me :-), although you did prune a somewhat relevant part of my above comment, which continued "unless you count something like

TiVo HME + Jython: package access constructor

2005-03-02 Thread rt lange
I'm trying to compile a file that subclasses a Class in the TiVo HME SDK that has a package access constructor. The error I get is: 1 .\jpywork\TL.java:109: BView(com.tivo.hme.sdk.View) is not public in com.tivo .hme.bananas.BView; cannot be accessed from outside package super(arg0);

RE: How would you program this?

2005-03-02 Thread engsol
When I posted the puzzle, I typo'd the first row. It should read *5* + B + C + D = 22 instead of 3. Thanks to all with suggestions so far. Norm B -- http://mail.python.org/mailman/listinfo/python-list

Re: Need direction to kill a virus

2005-03-02 Thread Sean Blakey
On Wed, 2 Mar 2005 17:46:44 -0800, James Stroud <[EMAIL PROTECTED]> wrote: > Four steps, meant to help, really. > > 1. shut down your computer > 2. erase your hard drive > 3. install linux with a firewall > 4. reboot > > You can always run your beloved window$ under vmware. > > Alternately, get

Re: urllib2 meta-refresh

2005-03-02 Thread JanC
Artificial Life schreef: > urllib2 does not seem to be able to handle META-REFRESH in an html > document. I just get back the html to the page that is supposed to > forward me to the intended page. Any way around this? Have a look at the HTTPRefreshProcessor in ClientCookie:

Re: Closing dialog window in Tkinter

2005-03-02 Thread Harlin Seritt
Do you need this toplevel window to not be iconified--where it shows up as a separate window? You can also do this: def new_window(self, master): t = Toplevel() t.transient(master) etc... Svennglen, I put this in here because most likely you're next question may be, how in the world do

Re: Gordon McMillan installer and Python 2.4

2005-03-02 Thread Simon John
Seriously, if you're only interested in Windows, just use py2exe, or if you want Linux+Windows, try cx_Freeze. -- http://mail.python.org/mailman/listinfo/python-list

Subscription donations to PSF

2005-03-02 Thread Alan McIntyre
Hi all, I asked the PSF folks if they plan on offering a subscription donation option, and they do eventually, if there's enough interest. If you have any interest in donating a small amount (preferably >= US$5) to the PSF on a regular basis (monthly?), then please respond here in the newsgroup

Re: Need direction to kill a virus

2005-03-02 Thread James Stroud
Four steps, meant to help, really. 1. shut down your computer 2. erase your hard drive 3. install linux with a firewall 4. reboot You can always run your beloved window$ under vmware. Alternately, get a Mac. You will never have another problem like this again. The real virus is your operating

Re: What is the best way to handle a command line argument that includes an escape sequence like \n?

2005-03-02 Thread Joe
Steve, THANKS! That is exactly what I was looking for but unable to find. Joe "Steven Bethard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Joe wrote: >> It appears that Python treats the comand line string as a raw string. >> >> what is the best way to work around the issue?

mx.ODBC 2.0.7 bug?

2005-03-02 Thread Joe
Python 2.4 Windows XP SP2 MS Access 2000 mx.ODBC 2.0.7 Problem data truncation occuring (here's the actual error message): mxODBC.Warning: ('01004', 5, '[Microsoft][ODBC Microsoft Access Driver] String data, right truncated on column number 3 (Expr1002)', 3326) I believe that have found a bug

Suscribe

2005-03-02 Thread dvd
-- http://mail.python.org/mailman/listinfo/python-list

Re: What is the best way to handle a command line argument that includes an escape sequence like \n?

2005-03-02 Thread Steven Bethard
Joe wrote: It appears that Python treats the comand line string as a raw string. what is the best way to work around the issue? You probably want to use str.decode with the encoding 'string_escape'[1] py> s = r'\n\t' py> s '\\n\\t' py> s.decode('string_escape') '\n\t' STeVe [1]http://docs.python.or

Re: how to control a USB DISK?

2005-03-02 Thread Greg Fischer
I actually tried this last summer on linux and I think in order to make it work right I had to use the hotplug features AND udev. I had to use udev because I needed a specific mount path, otherwise it just picked the next in the list if there was more than one drive. I ended up skipping that proj

Re: Distributing applications

2005-03-02 Thread Stephen Thorne
On Wed, 2 Mar 2005 13:07:25 -0600, Jaime Wyant <[EMAIL PROTECTED]> wrote: > However, if you have an idea on updating py2exe bundled apps, I'm all ears... I'm working on a little project that requires remote updating. What I basically came up with is two nested applications. program/program.exe r

Re: looking for expertise

2005-03-02 Thread Neil Hodgson
Michael: > Like I said, it's only supposed to run on linux; anyway, is it likely > that problems will arise when filenames I have to handle have > basically three sources: > ... > 3. filenames created by user input Have you worked out how you want to handle user input that is not representable

What is the best way to handle a command line argument that includes an escape sequence like \n?

2005-03-02 Thread Joe
I'm using Python 2.4 on Windows XP SP2. I'm trying to receive a command line argument that is a newline (\n) Here is the command line to use sample.py "\n" Here is a sample.py script import sys c = sys.argv[1] # when run c is set to \\n instead of \n. I created a test batch file echo %1 t

Re: Distributing applications

2005-03-02 Thread Robert Kern
Jaime Wyant wrote: Sneaky! I like it. Now if there was only a subversion python module... Google, and you shall find. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman

Gordon McMillan installer and Python 2.4

2005-03-02 Thread Svein Brekke
Hi. Thank you Gordon McMillan for a very nice freeze tool for python. (I use it on Windows XP SP2 for creating a single-file self-extracting wxPython based installation script for a non-python application.) Recently I upgraded to python 2.4, and on my system any .exe file generated by the install

Python COM API binding job offer

2005-03-02 Thread Guy Robinson
Hello, I have an API I have tried to create a python binding to. It involves creating com server functions which are then registered with the parent application. I am not a professional programmer nor do I have much win programming knowledge. As such what I am wanting to do is pay someone to dow

Re: Need help running external program

2005-03-02 Thread Steve Holden
Rigga wrote: Tim Jarman wrote: Rigga wrote: Brian van den Broek wrote: Rigga said unto the world upon 2005-02-27 15:04: (snip stuff about raw strings) Thanks for all your help with this it is appreciated, one further question though, how do I pass a variable to the external program while using

Re: Need help running external program

2005-03-02 Thread Tim Jarman
Rigga wrote: (snip) >> > This is the command I am trying to run: > > feed is a list of web addresses > > output, input = popen2("wget -q %s -O - | tr '\r' '\n' | tr \' \" | sed -n > 's/.*url="\([^"]*\)".*/\1/p'" % feed[counter]) > > But it does not work, if I escape the string using r""" and

Re: passing lists

2005-03-02 Thread Steve Holden
Earl Eiland wrote: def Match(..., Raw_packet_queue, ...): ... print 'in Match, Raw_Packet_queue is', Raw_packet_queue # this returns 'Reader object at 0xaaa' ... return [Last_Passed, Last_Dropped, Raw_packet_queue] # this causes 'unsubscriptable object'error message

automating assignment of class variables

2005-03-02 Thread Martin MOKREJŠ
Hi, I need to build 3 classes for my work, but each have dozens or hundreds of variables, self bound. I have about 250 columns in about 10 mysql tables. I can squeeze everything into 10 classes, each representing single table. I happily utilize the argument checks when a class is instantiated, so t

Re: passing lists

2005-03-02 Thread Steven Bethard
Earl Eiland wrote: def Match(..., Raw_packet_queue, ...): ... print 'in Match, Raw_Packet_queue is', Raw_packet_queue # this returns 'Reader object at 0xaaa' ... return [Last_Passed, Last_Dropped, Raw_packet_queue] # this causes 'unsubscriptable object'error message

Re: passing lists

2005-03-02 Thread Earl Eiland
def Match(..., Raw_packet_queue, ...): ... print 'in Match, Raw_Packet_queue is', Raw_packet_queue # this returns 'Reader object at 0xaaa' ... return [Last_Passed, Last_Dropped, Raw_packet_queue] # this causes 'unsubscriptable object'error message #*

Re: bsddb for k, v in db.items(): do order the numbers ?

2005-03-02 Thread Christopher De Vries
On Wed, Mar 02, 2005 at 01:31:04PM +0300, Denis S. Otkidach wrote: > You are not right, records in BTree (btopen) are certainly sorted. For > positive integers you can pack keys with struct.pack('>I', value). You're right... I missed the btopen (rather a key thing to miss I know, but when you hav

Net.ObjectDays 2005 Ð Call for Papers

2005-03-02 Thread Eliot Miranda
Net.ObjectDays 2005 Ð Call for Papers Erfurt, Germany, September 19-22 www.netobjectdays.org Net.ObjectDays is one of the major international conferences on object-oriented and Internet-based technologies, concepts, and applications. Based on its strong focus on research and innovation, Net.Obje

Re: Need help running external program

2005-03-02 Thread Rigga
Tim Jarman wrote: > Rigga wrote: > >> Brian van den Broek wrote: >> >>> Rigga said unto the world upon 2005-02-27 15:04: > > (snip stuff about raw strings) > >> Thanks for all your help with this it is appreciated, one further >> question though, how do I pass a variable to the external progra

Re: Distributing applications

2005-03-02 Thread Tim Jarman
Jaime Wyant wrote: > Sneaky! I like it. Now if there was only a subversion python module... > > jw > GIYF: http://pysvn.tigris.org/ -- Website: www DOT jarmania FULLSTOP com -- http://mail.python.org/mailman/listinfo/python-list

Re: Need help running external program

2005-03-02 Thread Tim Jarman
Rigga wrote: > Brian van den Broek wrote: > >> Rigga said unto the world upon 2005-02-27 15:04: (snip stuff about raw strings) > Thanks for all your help with this it is appreciated, one further question > though, how do I pass a variable to the external program while using the > r""" > > Than

Re: substring matching

2005-03-02 Thread Roel Schroeven
M.N.A.Smadi wrote: > hi; > > say i have the following variable > > data="""XYZ dflsjdfkl sdfsdhfl > jdsflkdsjf > sldjfsldjf > """ > > i need to make sure that the first part is actually XYZ, is there an > easy way of doing that? data.startswith("XYZ") -- "Codito ergo sum" Roel Schroeven

Re: substring matching

2005-03-02 Thread Bill Mill
On Wed, 02 Mar 2005 16:43:29 -0500, M.N.A.Smadi <[EMAIL PROTECTED]> wrote: > hi; > > say i have the following variable > > data="""XYZ dflsjdfkl sdfsdhfl > jdsflkdsjf > sldjfsldjf > """ > > i need to make sure that the first part is actually XYZ, is there an > easy way of doing that? > d

substring matching

2005-03-02 Thread M.N.A.Smadi
hi; say i have the following variable data="""XYZ dflsjdfkl sdfsdhfl jdsflkdsjf sldjfsldjf """ i need to make sure that the first part is actually XYZ, is there an easy way of doing that? thanks m.smadi -- http://mail.python.org/mailman/listinfo/python-list

Re: yield_all needed in Python

2005-03-02 Thread Francis Girard
Le mercredi 2 Mars 2005 21:32, Skip Montanaro a écrit : > def f(): >     yield from (x for x in gen1(arg)) > > Skip This suggestion had been made in a previous posting and it has my preference : def f(): yield from gen1(arg) Regards Francis -- http://mail.python.org/mailman/listinfo/python

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Mar 1)

2005-03-02 Thread Richard Jones
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 2 Mar 2005 10:50 am, Cameron Laird wrote: > Also, has anyone indexed Python bloggers (that is, > webloggers of things Pythonic)? My page http://mechanicalcat.net/pyblagg.html (from the wiki http://lowlife.jp/cgi-bin/moin.cgi/PythonProgrammers

Re: Need help running external program

2005-03-02 Thread Rigga
Brian van den Broek wrote: > Rigga said unto the world upon 2005-02-27 15:04: >> Tim Jarman wrote: > > > >>>No, the r was the point - it's there to tell Python not to do any >>>escaping on the string. Try it again with the r and see what happens. >>> >> >> Brilliant!!! that works a treat than

Re: Distributing applications

2005-03-02 Thread Jaime Wyant
Sneaky! I like it. Now if there was only a subversion python module... jw On Wed, 02 Mar 2005 22:08:45 +0100, Thomas Heller <[EMAIL PROTECTED]> wrote: > "Serge Orlov" <[EMAIL PROTECTED]> writes: > > > Jaime Wyant wrote: > > > >> This becomes especially hairy when someone is updating from 1.0 t

UML modeling tools

2005-03-02 Thread Pete Brunet
What are your recommendations for a UML modeling tool with these requirements (or something that comes close): - low learning curve, easy to use, good performance, high quality - runs on Linux(FC3) and Win(XP) - or JVM - low in price <$500 - can export/print images in various formats including HTM

Re: Running Python Scripts With 'sudo'

2005-03-02 Thread Jeff Epler
Does "sudo" sanitize the environment? Imagine that the user can set PYTHONPATH, PYTHONINSPECT, etc. Beyond that, you have the same problems as with any code that runs with "extra privileges". Can the user supply any code that is fed to patently unsafe primitives (like the unpickler, eval() or th

Re: Distributing applications

2005-03-02 Thread Thomas Heller
"Serge Orlov" <[EMAIL PROTECTED]> writes: > Jaime Wyant wrote: > >> This becomes especially hairy when someone is updating from 1.0 to >> say 1.5. Then I have to keep track of all the deltas between >> 1.0/1.5. My way is much simpler because I don't have to keep up with >> *anything*. As long as

Re: HELP: Python equivalent of UNIX command "touch"

2005-03-02 Thread Wolfgang Strobl
pekka niiranen <[EMAIL PROTECTED]>: >Does anybody know Python recipe for changing the date >of the directory or files in W2K to current date and time? >In UNIX shell command "touch" does it. See below. The key is using the FILE_FLAG_BACKUP_SEMANTICS flag. #---

Re: passing lists

2005-03-02 Thread Bill Mill
Earl, Please post the smallest snippet of code you can which illustrates your problem. No list is an unsubscriptable object, so you seem to be passing something that is not a list to your function. As it stands, you don't give enough information to give an actual answer. Peace Bill Mill bill.mil

passing lists

2005-03-02 Thread Earl Eiland
I have a program in which I'm passing a list to functions. When I reference an element in a function to which it is passed, I get the error message "unsubscriptable object". When printing the list contents in that same function, I get "xxx is ". How do I pass a list? Earl Eiland -- http://mai

Re: Distributing applications

2005-03-02 Thread Serge Orlov
Jaime Wyant wrote: > This becomes especially hairy when someone is updating from 1.0 to > say 1.5. Then I have to keep track of all the deltas between > 1.0/1.5. My way is much simpler because I don't have to keep up with > *anything*. As long as I test my code against my custom built > distribut

Re: Python - what is the fastest database ?

2005-03-02 Thread km
Hi all, Google has specially designed file system 'Goolgle File System' too. KM - On Mon, Feb 28, 2005 at 01:43:53PM -0500, Terry Reedy wrote: > > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >> How is i

Re: why is http://pysqlite.org down ?

2005-03-02 Thread Gerhard Häring
[EMAIL PROTECTED] wrote: H! I'm trying things with databases and Python 2.4 for windows2000. And now I want to try pysqlite. but http://pysqlite.org/ is down It is in the process of being made an alias for the real new home: http://initd.org/projects/pysqlite and http://pysqlite.sourceforge

Re: yield_all needed in Python

2005-03-02 Thread Skip Montanaro
Jeremy> At first I liked this, but the reason that is a syntax error is Jeremy> that it is "supposed" to be Jeremy> def f(): Jeremy> yield (x for x in gen1(arg)) Jeremy> which today on 2.4 returns a generator instance which will in Jeremy> turn yield one generator ins

Re: Faster way to do this...

2005-03-02 Thread Robert Kern
Will McGugan wrote: Warren Postma wrote: Will McGugan wrote: Isn't that equivalent to simply.. nums= range(100) I remember the day I first realized that 900 lines of some C++ program I was working on could be expressed in three lines of python. Ahh. Lately I've found myself commenting C++ code

COM programming with Excel

2005-03-02 Thread Bruce Jewell
I have been accessing Excel data with win32com.  It seems to work well until I get to cells that are formatted for Currency or Accounting.  With these, I get a text string that looks like “(0, 2500)” where the 2500 is actually $25.00, but it cannot be parsed or separated.  Can anyone help m

Re: Distributing applications

2005-03-02 Thread Serge Orlov
Phillip Mills wrote: > First, thanks to all the people who have answered so far for the > suggestions. > > In article <[EMAIL PROTECTED]>, > André Søreng <[EMAIL PROTECTED]> wrote: > > > Phillip Mills wrote: > > > > My problems are: > > [...] > > > http://starship.python.net/crew/theller/py2exe/ >

Re: yield_all needed in Python

2005-03-02 Thread Jeremy Bowers
On Wed, 02 Mar 2005 22:54:14 +1000, Nick Coghlan wrote: > Douglas Alan wrote: >> Steve Holden <[EMAIL PROTECTED]> writes: >>>Guido has generally observed a parsimony about the introduction of >>>features such as the one you suggest into Python, and in particular >>>he is reluctant to add new keywo

Re: How would you program this?

2005-03-02 Thread Bill Mill
This should have said "time python linalg_brute.py" . I changed the name, but didn't rerun the test. linalg.py is the same as linalg_brute.py. > > 02:42 PM /d/code/Python$ time python linalg.py > 3 3 8 8 > 9 3 8 6 > 9 5 9 8 > 3 7 6 9 > - > 3 3 9 7 > 8 3 8 7 > 9 5 9 8 > 4 7 5 9 > ---

Re: How would you program this?

2005-03-02 Thread Roel Schroeven
Paul Rubin wrote: > "Carl Banks" <[EMAIL PROTECTED]> writes: > >>No kidding--it's a constrained integer programming problem. Those can >>be pretty nasty. This one is pretty simple, being linear with only 12 >>unknowns. However, they get very difficult very fast. There are whole >>optimization

Re: Distributing applications

2005-03-02 Thread Mitch Amiano
I'm fairly new to python myself (with about 16 years of various languages); I found py2exe fairly straightforward to use. The instructions are ok, but if you care to see it I took some notes and threw them into an article on my company site.

Re: How would you program this?

2005-03-02 Thread Bill Mill
On Wed, 02 Mar 2005 10:23:33 -0800, engsol <[EMAIL PROTECTED]> wrote: > There is a number puzzle which appears in the daily paper. > Because I'm between Python projects, I thought it might be > fun to write a program to solve it20 minute job, max. > > On closer inspection, it became apparent t

Re: How would you program this?

2005-03-02 Thread Paul Rubin
"Carl Banks" <[EMAIL PROTECTED]> writes: > No kidding--it's a constrained integer programming problem. Those can > be pretty nasty. This one is pretty simple, being linear with only 12 > unknowns. However, they get very difficult very fast. There are whole > optimization textbooks written on th

Re: yield_all needed in Python

2005-03-02 Thread Douglas Alan
Nick Coghlan <[EMAIL PROTECTED]> writes: > If you do write a PEP, try to get genexp syntax supported by the > yield keyword. > That is, the following currently triggers a syntax error: >def f(): > yield x for x in gen1(arg) Wouldn't yield *(x for x in gen1(arg)) be sufficient, and

Re: ANN: xsdbXML python release with C#/.NET port

2005-03-02 Thread aaronwmail-usenet
Yikes... A couple people pointed out that the upload had no csharp code. That was because sourceforge was uploading the wrong file (but reporting the right filesize). I think it's fixed now (uploaded from paris and minnesota). Sorry!!! --- Aaron Watters -- http://mail.python.org/mailman/l

Re: yield_all needed in Python

2005-03-02 Thread Steven Bethard
Terry Reedy wrote: "Steven Bethard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] My suspicion is that if he doesn't like the * syntax when there's a close parallel to the argument parsing usage, he's not likely to like it when there isn't one. Hmm. My impression is that Guido did

ANN: PyDev 0.9.1 released

2005-03-02 Thread Fabio Zadrozny
Hi All, PyDev - Python IDE (Python development enviroment for Eclipse) version 0.9.1 has just been released. You can check the homepage (http://pydev.sourceforge.net/) or my blog (http://pydev.blogspot.com/) for more details. -- COMMENTS ON RE

Re: How would you program this?

2005-03-02 Thread Carl Banks
engsol wrote: > There is a number puzzle which appears in the daily paper. > Because I'm between Python projects, I thought it might be > fun to write a program to solve it20 minute job, max. > > On closer inspection, it became apparent that it's not a > simple thing to program. No kidding--i

Re: Distributing applications

2005-03-02 Thread Jaime Wyant
On 2 Mar 2005 10:43:38 -0800, Serge Orlov <[EMAIL PROTECTED]> wrote: > Jaime Wyant wrote: > > I chose not to use py2exe because it made updating my app a bit > > messier. For instance, suppose I don't use the smtplib module in > > version 1 of my software. Py2exe realizes that and doesn't 'packag

Mail System Error - Returned Mail

2005-03-02 Thread imre . adam
The original message was received at Wed, 2 Mar 2005 20:06:59 +0100 from 87.26.243.56 - The following addresses had permanent fatal errors - - Transcript of session follows - ... while talking to python.org.: 554 Service unavailable; [188.60.170.174] blocked using relays.osirusof

Re: Distributing applications

2005-03-02 Thread Phillip Mills
First, thanks to all the people who have answered so far for the suggestions. In article <[EMAIL PROTECTED]>, André Søreng <[EMAIL PROTECTED]> wrote: > Phillip Mills wrote: > > My problems are: [...] > http://starship.python.net/crew/theller/py2exe/ Apparently I had more problems than I men

Re: What's the cost of using hundreds of threads?

2005-03-02 Thread Aahz
In article <[EMAIL PROTECTED]>, =?ISO-8859-2?Q?Przemys=B3aw_R=F3=BFycki?= <[EMAIL PROTECTED]> wrote: > >I don't spawn them because of computional reasons, but due to the fact >that it makes my code much more simpler. I use built-in tcp features >to achieve loadbalancing - every flow (directed thr

Re: java crashes in python thread

2005-03-02 Thread Dieter Maurer
Easeway wrote: > I use os.system invoking java VM, when running in python thread, the > java application crashes. Andreas Jung has reported similar behaviour. He suggested that Java 1.4 and the threads of Linux 2.6 do not work reliably together. He tried Java 1.5 and this combination crashes only

Re: ZoDB's capabilities

2005-03-02 Thread Dieter Maurer
Larry Bates <[EMAIL PROTECTED]> writes on Mon, 28 Feb 2005 18:48:39 -0600: > There is a VERY large website that uses Zope/ZODB that takes up to > 9000 hits per second when it gets busy. ZODB is very fast and > holds up well under load. But, you will not get 9000 hits per second from the ZODB (unl

Re: Non-blocking input on windows, like select in Unix

2005-03-02 Thread Jonathan Fine
fraca7 wrote: Jonathan Fine a écrit : Paul Rubin wrote: As I recall, some posts to this list say that Windows provides non-blocking i/o for sockets but not for files. No, Windows does provide non-blocking I/O for regular files, but it's a completely different mechanism than the one used by winso

Re: How would you program this?

2005-03-02 Thread James Stroud
> > Rows: > 3 + B + C + D = 22 > E + F + 8 + H = 26 > I + J + K + 8 = 31 > M + 7 + O + P = 25 > > Col sums: > 24, 18, 31, 31 > > Diag sums: > 3 + F + K + P = 24 > M + J + 8 + D = 24 > > > This is a system of 12 variables and 10 equations. Looks like there will be more than one solution (if I rem

Re: How would you program this?

2005-03-02 Thread Russell Blau
"engsol" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > There is a number puzzle which appears in the daily paper. > Because I'm between Python projects, I thought it might be > fun to write a program to solve it20 minute job, max. > > On closer inspection, it became apparent tha

Re: Distributing applications

2005-03-02 Thread Serge Orlov
Jaime Wyant wrote: > I chose not to use py2exe because it made updating my app a bit > messier. For instance, suppose I don't use the smtplib module in > version 1 of my software. Py2exe realizes that and doesn't 'package' > smtplib with my executable. Now, if I release version 1.1 which does >

Re: Help- Recursion v. Iter Speed comparison

2005-03-02 Thread Kent Johnson
Roy Smith wrote: I believe Edouard Manet said it best, "Damn your recursion, Henri. Iteration, however complex, is always more efficient." (extra points if you can identify the source of that quote). It's not clear what language Manet was talking about when he said that, but it's pretty much a

How would you program this?

2005-03-02 Thread engsol
There is a number puzzle which appears in the daily paper. Because I'm between Python projects, I thought it might be fun to write a program to solve it20 minute job, max. On closer inspection, it became apparent that it's not a simple thing to program. How would you approach it? The puzzle:

Re: Python Online Programming Contest

2005-03-02 Thread Varun
Hi, The results of OPC (online programming contest) is out. The statistics of python usage is available at http://www.samhita.info/opc/status.php. Regards, -OPC Team -- http://mail.python.org/mailman/listinfo/python-list

Re: Identify and perform actions to data within stated limits

2005-03-02 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I found the len(*) obscurely mentioned on someones webpage. *All* the built functions are prominently listed and described in Library Reference 2.1Built-in Functions. I urge you and any beginner to at least read the whole of chapte

Re: Need some simple coding help

2005-03-02 Thread Terry Reedy
"mx2k" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Now you enter a value by which the initiative should be increased, > then adding reaction time to that value and then adding the result to > reaction time. Now soring again by lowest,next,'n'th, etc. and then > again showing th

Re: looking for expertise

2005-03-02 Thread klappnase
"Neil Hodgson" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Michael: > > > 5. file operations seem to be delicate; at least I got an error when I > > passed a filename that contains special characters as unicode to > > os.access(), so I guess that whenever I do file operation

Re: possible python/linux/gnome issue!!

2005-03-02 Thread JanC
bruce schreef: > i'm running rh8.0 with gnome.. i'm not sure of the version (it's > whatever rh shipped). > > i've recently updated (or tried to update) python to the latest > version. when i try to run the 'Server Settings/Services' Icon within > gnome, nothing happens... > > i tried to run the

Re: yield_all needed in Python

2005-03-02 Thread Terry Reedy
"Steven Bethard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Douglas Alan wrote: >> In this case, that is great, since I'd much prefer >> >>yield *gen1(arg) >> >> than >> >>yield_all gen1(arg) > > I'm guessing the * syntax is pretty unlikely to win Guido's approval. > T

Re: What's the cost of using hundreds of threads?

2005-03-02 Thread Przemysław Różycki
> In article <[EMAIL PROTECTED]>, > Przemysław Różycki <[EMAIL PROTECTED]> wrote: > >> Thanks for your comments on winXP threads implementation. You confirmed me in conviction that I shouldn't use windows. >> Personally I use linux with 2.6.10 kernel, so hopefully I don't have to share your grie

Re: What's the cost of using hundreds of threads?

2005-03-02 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Przemys³aw Ró¿ycki <[EMAIL PROTECTED]> wrote: >Thanks for your comments on winXP threads implementation. You confirmed >me in conviction that I shouldn't use windows. >Personally I use linux with 2.6.10 kernel, so hopefully I don't have to >share your grief. ;) ?

Re: Problem in Dictionaries

2005-03-02 Thread Terry Reedy
"Glauco Silva" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I would like to know if the dictionary can sort with a function that i >give to then! No. You have to either make a list of key,value items and sort that, possibly with a cmp or key parameter items = d.items() items.

Re: any Python equivalent of Math::Polynomial::Solve?

2005-03-02 Thread konrad . hinsen
Carl Banks wrote: > If you don't have a great need for speed, you can accomplish this > easily with the linear algebra module of Numeric/numarray. Suppose > your quintic polynomial's in the form > >a + b*x + c*x**2 + d*x**3 + e*x**4 + x**5 > > The roots of it are equal to the eigenvalues of

Re: Distributing applications

2005-03-02 Thread André Søreng
Phillip Mills wrote: I've learned enough of the Python language to be mildly dangerous and have used it in a few personal projects. All my development of commercial (or production) products over the past dozen years have been done with C++ or Java. For a program I'm planning -- to begin during

ANNOUNCE: Kamaelia 0.1.1 Released

2005-03-02 Thread Michael Sparks
Kamaelia 0.1.1 has been released! This is the initial release version of Kamaelia. What is it? === Kamaelia is a collection of Axon components designed for network protocol experimentation in a single threaded, select based environment. Axon components are python generators are augmented

[ANN] IPython 0.6.12 is out.

2005-03-02 Thread Fernando Perez
Hi all, I'm glad to announce the release of IPython 0.6.12. This is mainly a bugfix release. IPython's homepage is at: http://ipython.scipy.org and downloads are at: http://ipython.scipy.org/dist I've provided RPMs (for Python 2.3 and 2.4, built under Fedora Core 3), plus source downloads (.

Re: HELP: Python equivalent of UNIX command "touch"

2005-03-02 Thread Roy Smith
In article <[EMAIL PROTECTED]>, pekka niiranen <[EMAIL PROTECTED]> wrote: >Roy Smith wrote: >> pekka niiranen <[EMAIL PROTECTED]> wrote: >> >>>Does anybody know Python recipe for changing the date >>>of the directory or files in W2K to current date and time? >>>In UNIX shell command "touch" does

Re: HELP: Python equivalent of UNIX command "touch"

2005-03-02 Thread pekka niiranen
Roy Smith wrote: pekka niiranen <[EMAIL PROTECTED]> wrote: Does anybody know Python recipe for changing the date of the directory or files in W2K to current date and time? In UNIX shell command "touch" does it. You want os.utime() Nope, it does not work for directories in Windows -- http://mail.p

Re: rearrange text

2005-03-02 Thread Daniel Skinner
ah thanks I couldn't figure out how to join it up very appropriately, had this loop ... yeeeaah .. :) Thanks for both comments -- http://mail.python.org/mailman/listinfo/python-list

Re: rearrange text

2005-03-02 Thread Simon Brunning
On 2 Mar 2005 07:36:48 -0800, Daniel Skinner <[EMAIL PROTECTED]> wrote: > If I have the following text > > var = '1,2,3,4' > > and I want to use the comma as a field delimeter That bit's easy: C:\WINNT\system32>python Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on win32

  1   2   >