Re: Pythons Mcmillan Installer : cannot load shared lib

2004-12-01 Thread Irit
Hi I have the same problem Have you found out what is the reason for this error message, and how it can be solved ? -- http://mail.python.org/mailman/listinfo/python-list

Re: database questions ala newbie pythonist

2004-12-01 Thread Weinhandl Herbert
chris wrote: ... This works fine using the literals 0 (For Delstatus) and 1190 (for ProductID) But when I try to use a variable such as: ### ... varA = '0' varB = '1190' mycursor.execute('Update Categories Set DelStatus = ' varA 'Wher

Re: pre-PEP generic objects

2004-12-01 Thread Nick Craig-Wood
Steven Bethard <[EMAIL PROTECTED]> wrote: > Nick Craig-Wood wrote: > > Steven Bethard <[EMAIL PROTECTED]> wrote: > > > >> I promised I'd put together a PEP for a 'generic object' data type for > >> Python 2.5 that allows one to replace __getitem__ style access with > >> dotted-attribute style a

Re: ANN: IPython 0.6.5 is out

2004-12-01 Thread CarlosRivera
Looks cool. I will have to check it out. -- http://mail.python.org/mailman/listinfo/python-list

Delphi/Kylix and Python

2004-12-01 Thread John Tiedeman
Translating to Kylix might be quite easy. There have been articles about writing code so that it will run on either by sensing whether Windows or Linux and automatically using the appropriate directives. My problem with both Delphi and Kylix is in getting them to connect with PostgreSQL

Re: Python Win32 Silent Install

2004-12-01 Thread David Ascher
Luke Skywalker wrote: On Wed, 01 Dec 2004 17:15:38 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: You are right about ActiveState, the copy you download from their web site is licensed to prohibit redistribution. They might be prepared to cut you a special license, but you'd have to ask them abou

Re: Python 2.4 and Tkinter

2004-12-01 Thread Jean Brouwers
Here is how we understand this (which may be incomplete and/or incorrect). The _tkinter module is a shared library _tkinter.o and that is built from C source file _tkinter.c. That C file and a few other tk related C files are included in the Python distribution. But the Tcl/Tk libraries to buil

Re: recombination variations

2004-12-01 Thread Hung Jung Lu
alphabet = { 'A': 'A', 'T': 'T', 'C': 'C', 'G': 'G', 'W': 'AT', 'M': 'AC', 'R': 'AG', 'Y': 'TC', 'K': 'TG', 'S': 'CG', 'H': 'ATC', 'D': 'ATG', 'V': 'AGC', 'B': 'CTG', 'N': 'ATCG'

Re: wxPython to build an HTML analyser/displayer?

2004-12-01 Thread Luke Skywalker
On Wed, 1 Dec 2004 16:57:45 -0800, "Roger Binns" <[EMAIL PROTECTED]> wrote: (snip) Thx the links. Luke. -- http://mail.python.org/mailman/listinfo/python-list

Weekly Python Patch/Bug Summary

2004-12-01 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 258 open ( +4) / 2701 closed ( +1) / 2959 total ( +5) Bugs: 812 open (+28) / 4642 closed (+13) / 5454 total (+41) RFE : 160 open ( +4) / 136 closed ( +1) / 296 total ( +5) New / Reopened Patches __ #1074261

Re: [PIL] import error

2004-12-01 Thread Egor Bolonev
On Thu, 02 Dec 2004 13:10:25 +1000, Egor Bolonev <[EMAIL PROTECTED]> wrote: ho error is bad case. there must be import Image import image gives Traceback (most recent call last): File "image1.py", line 7, in ? import image ImportError: No module named image i've installed python 2.3.4 and P

[PIL] import error

2004-12-01 Thread Egor Bolonev
import image gives Traceback (most recent call last): File "image1.py", line 7, in ? import image ImportError: No module named image i've installed python 2.3.4 and PIL for python 2.3 -- http://mail.python.org/mailman/listinfo/python-list

Re: Video Catalogue

2004-12-01 Thread Tom B.
"Rodney Dangerfield" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greetz! > > Recently I started creating a CGI application for my gf that > she would use for indexing and keeping track of her video > collection. > > I am relatively new to python so I started with the basics. > I

Re: non blocking read()

2004-12-01 Thread Greg Ewing
Steve Holden wrote: When access is made to a file object in non-blocking mode it will return whatever data there are immediately available in the buffers, up to the number of bytes requested. If the buffers are currently empty the process will generate an error Are you sure that's right? If so,

Re: non blocking read()

2004-12-01 Thread Greg Ewing
Donn Cave wrote: If we are indeed talking about a pipe or something that really can block, and you call fileobject.read(1024), it will block until it gets 1024 bytes. No, it won't, it will block until *some* data is available, and then return that (up to a maximum of 1024). If the fd has just been

Re: database questions ala newbie pythonist

2004-12-01 Thread [EMAIL PROTECTED]
chris wrote: > Hello, > Just started with python and databases. > I am making a small script to update a local database. > Looked around and couldn't find to many links with info about python with > databases. > Any links or other resources anyone can recommend is appreciated. > > My que

Re: wxPython to build an HTML analyser/displayer?

2004-12-01 Thread Roger Binns
"Luke Skywalker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does wxWidgets offer an HTML displayer widget, Yes. In general it is highly recommended to download wxPython and the associated demo app. The demo app shows every single widget so you get an idea of what is available

Re: Python 2.4 and Tkinter

2004-12-01 Thread Jeffrey Barish
Jean Brouwers wrote: > > FWIW, we just installed Python 2.4 (on RH Linx 8), rebuilt it from > scratch and everything is fine. Tkinter is there, _tkinter as well > and idle comes up as expected. > > /Jean Brouwers > > > > In article <[EMAIL PROTECTED]>, > Jeffrey Barish <[EMAIL PROTECTED]> wr

Dr. Dobb's Python-URL! - weekly Python news and links (Dec 2)

2004-12-01 Thread Cameron Laird
QOTW: "... why does Microsoft try so hard to protect its sources?" "To avoid embarrassment." -- Peter Maas and Grant Edwards http://groups.google.com/groups?frame=left&th=9a599152d8b23b54 "Sufficiently advanced cluelessness is indistinguishable from malice." -- Alex Martelli 2.4 is fina

Re: Python Win32 Silent Install

2004-12-01 Thread Brad Tilley
Peter Hansen wrote: ... innocent and ignorant users who are concerned about finding this thing called "Python" on their new machines, and most of them seem curiously more interested in removing it than in discovering what it actually is there for. This has been my experience as well. I don't have m

Re: M2Crypto for 2.4

2004-12-01 Thread Ng Pheng Siong
According to Elbert Lev <[EMAIL PROTECTED]>: > Have somebody build M2Crypto for 2.4 on windows? If yes, please tell > if there are any problems. I will do it in the next day or two. (Remember, this is a programmer telling you his plan. ;-) Did you try doing it? Did you encounter a problem? Chee

Re: Python 3000 and "Python Regrets"

2004-12-01 Thread Peter Hansen
Dave Benjamin wrote: Steve Holden wrote: from __past__ import __mistakes__ LOL! Better yet: import __past__ del __past__.__mistakes__ You can't change the past, as everyone knows, so the names in that module are constants, like None is in Python 2.4. It's better simply not to spend time looking at

Re: Python 2.4 and Tkinter

2004-12-01 Thread Jean Brouwers
FWIW, we just installed Python 2.4 (on RH Linx 8), rebuilt it from scratch and everything is fine. Tkinter is there, _tkinter as well and idle comes up as expected. /Jean Brouwers In article <[EMAIL PROTECTED]>, Jeffrey Barish <[EMAIL PROTECTED]> wrote: > http://www.python.org/moin/TkInter -

Re: Python Win32 Silent Install

2004-12-01 Thread Peter Hansen
Matt Gerrans wrote: You guessed correctly. Python is on HP (and Compaq now) PCs because I put it there. Do you think you could expand on the brief description about this that is to be found in the following page? http://www.python.org/doc/faq/installed.html The python.org webmaster email address

database questions ala newbie pythonist

2004-12-01 Thread chris
Hello, Just started with python and databases. I am making a small script to update a local database. Looked around and couldn't find to many links with info about python with databases. Any links or other resources anyone can recommend is appreciated. My question is in the following sma

Re: Delphi underrated, IDE clues for Python

2004-12-01 Thread Colin J. Williams
John wrote: "Caleb Hattingh" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... thx, I already have and use PythonForDelphi (and am on the mailing list). It works very well indeed, my impression is that Python-Delphi connection is even easier than Python-C integration (e.g. via SWI

xml.sax in Python 2.3.4

2004-12-01 Thread Gustaf Liljegren
After a long break with Python I'm trying to get started again. I need to do some SAX processing, but it seems things have changed, and I can't find any docs describing how to make things work *today*. The SAX example in the XML HOWTO [1] doesn't work anymore. I get this error: D:\Test>python c

Re: Python Win32 Silent Install

2004-12-01 Thread Matt Gerrans
You guessed correctly. Python is on HP (and Compaq now) PCs because I put it there. And yes, I did get the "I've found Python on my computer, what does it do and can I remove it" from the support group. How to answer that?You have a computer with Windows Script Host (JScript & VBScript)

Re: Python 3000 and "Python Regrets"

2004-12-01 Thread Dave Benjamin
Steve Holden wrote: Brad Tilley wrote: Matt Gerrans wrote: Anyway, what's to worry about?When the time comes just whip out a little script that converts Python 1.6 (or whatever you like) to Python3K; it will only take seven lines of P3K code. How about 'import classic' ... or from __past__

ANN: IPython 0.6.5 is out

2004-12-01 Thread Fernando Perez
Hi all, I'm glad to announce that IPython 0.6.5 is finally out. 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.2 and 2.3, plus source downloads (.tar.gz and .zip). Debian, Fink and BSD packages for this ve

Re: non blocking read()

2004-12-01 Thread Steve Holden
Donn Cave wrote: In article <[EMAIL PROTECTED]>, Gustavo Córdova Avila <[EMAIL PROTECTED]> wrote: David Bolen wrote: Jp Calderone <[EMAIL PROTECTED]> writes: def nonBlockingReadAll(fileObj): bytes = [] while True: b = fileObj.read(1024) bytes.append(b)

Re: Python Win32 Silent Install

2004-12-01 Thread Steve Holden
Luke Skywalker wrote: On Wed, 01 Dec 2004 17:15:38 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: You are right about ActiveState, the copy you download from their web site is licensed to prohibit redistribution. They might be prepared to cut you a special license, but you'd have to ask them abo

Re: Time zones

2004-12-01 Thread David Bolen
Timothy Hume <[EMAIL PROTECTED]> writes: > I want to ensure that all my time calculations are done in UTC. This is > easy with Python on UNIX machines. I simply set the TZ environment > variable to "UTC", and it ensures that the time functions use UTC. > > My question is, how do I get similar

Re: Python Win32 Silent Install

2004-12-01 Thread Luke Skywalker
On Wed, 01 Dec 2004 17:15:38 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: >You are right about ActiveState, the copy you download from their web >site is licensed to prohibit redistribution. They might be prepared to >cut you a special license, but you'd have to ask them about that. Does it m

Re: String operations

2004-12-01 Thread Steve Holden
Anoop Rajendra wrote: Hi. I'm trying to resolve an issue with strings. The command(inclusive of the back-slashes) condor_q -l -constraint "ProjectId==\"anoopr_samadams.fnal.gov_161903_30209\"" is the only way the command returns the right result. I'm trying to run this command from inside a python

Re: non blocking read()

2004-12-01 Thread Donn Cave
In article <[EMAIL PROTECTED]>, Gustavo Córdova Avila <[EMAIL PROTECTED]> wrote: > David Bolen wrote: > > >Jp Calderone <[EMAIL PROTECTED]> writes: > > > >>def nonBlockingReadAll(fileObj): > >>bytes = [] > >>while True: > >>b = fileObj.read(1024) > >>

wxPython to build an HTML analyser/displayer?

2004-12-01 Thread Luke Skywalker
Hi, Currently, I use filters in Privoxy followed by a JavaScript embedded script to further filter a web page that is restricted to IE (because of incompatibilities of the DOM), and was wondering if it'd be feasible to write a Python GUI app with wxPython that would do the same, ie. fetch a web pa

String operations

2004-12-01 Thread Anoop Rajendra
Hi. I'm trying to resolve an issue with strings. The command(inclusive of the back-slashes) condor_q -l -constraint "ProjectId==\"anoopr_samadams.fnal.gov_161903_30209\"" is the only way the command returns the right result. I'm trying to run this command from inside a python program. The way I

Re: Python Win32 Silent Install

2004-12-01 Thread Steve Holden
Matt Gerrans wrote: That sounds easy enough, but I imagine the Acive State package requires some kind of licensing.I'm pre-installing on millions of consumer PCs. Ah, so your group is responsible for all the "I've found Python on my computer, what does it do and can I remove it" messages w

Python 2.4 and Tkinter

2004-12-01 Thread Jeffrey Barish
Since upgrading to python 2.4 yesterday, I am no longer able to use Tkinter. From http://www.python.org/moin/TkInter I learned that I need to edit Modules/Setup to include Tkinter during the make. However, it isn't clear to me what modifications to make. I am supposed to specify directories in w

Re: non blocking read()

2004-12-01 Thread Gustavo Córdova Avila
David Bolen wrote: Jp Calderone <[EMAIL PROTECTED]> writes: def nonBlockingReadAll(fileObj): bytes = [] while True: b = fileObj.read(1024) bytes.append(b) if len(b) < 1024: break return ''.join(bytes) Wouldn't this still block

Re: Identifying exceptions that can be raised

2004-12-01 Thread Andrew Dalke
Tim Jarman wrote: OK, I'm an arts graduate[1] so this is probably a really stupid question, but what kind(s) of science would be non-experimental? Astronomy. Archaeology. Paleontology. Seismology. Cosmic ray research. There have been a few experiments in environmental science, like tenting a s

Re: Python 3000 and "Python Regrets"

2004-12-01 Thread Gustavo Córdova Avila
Brad Tilley wrote: Matt Gerrans wrote: Anyway, what's to worry about?When the time comes just whip out a little script that converts Python 1.6 (or whatever you like) to Python3K; it will only take seven lines of P3K code. How about 'import classic' from past import python23 :-) -- Gustavo Có

Re: non blocking read()

2004-12-01 Thread Jp Calderone
On 01 Dec 2004 15:55:18 -0500, David Bolen <[EMAIL PROTECTED]> wrote: >Jp Calderone <[EMAIL PROTECTED]> writes: > > > def nonBlockingReadAll(fileObj): > > bytes = [] > > while True: > > b = fileObj.read(1024) > > bytes.append(b) > > if len(b)

Time zones

2004-12-01 Thread Timothy Hume
Hi, I want to ensure that all my time calculations are done in UTC. This is easy with Python on UNIX machines. I simply set the TZ environment variable to "UTC", and it ensures that the time functions use UTC. My question is, how do I get similar functionality using Python on Windows? Thanks

Re: Regular Expression Problem...

2004-12-01 Thread Caleb Hattingh
Obviously, Peter and Jorge are hardcore, but below is what a beginner like me hacked up: My point, I guess, is that it is possible to quickly get a solution to a specific problem like this without being a total expert. The code below was typed out once, and with only one minor correction be

Re: PIL for Python 2.4 ?

2004-12-01 Thread Simon John
Michel Claveau - abstraction méta-galactique non triviale en fuite perpétuelle. wrote: > Hi ! > > I can't install PIL on Python 2.4 ; the soft search Python 2.3 ; gh > ! > Do you know if the great F.L. want to make, soon, a P24 version ? Yes, this kind of thing is stopping me trying 2.4 fo

Re: Python 2.4 Uninstall Entry in WinXP Registry

2004-12-01 Thread Brad Tilley
Martin v. Löwis wrote: Brad Tilley wrote: I found the documentation here: http://python.fyxm.net/2.4/msi.html The original, of course, is at http://python.org/2.4/msi.html Regards, Martin Thanks Martin... going to a .msi was a great move... we can do fully automated, unattended installs now. I ap

Re: Python 2.4 Uninstall Entry in WinXP Registry

2004-12-01 Thread "Martin v. Löwis"
Brad Tilley wrote: I found the documentation here: http://python.fyxm.net/2.4/msi.html The original, of course, is at http://python.org/2.4/msi.html Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: assymetry between a == b and a.__eq__(b) (WAS: pre-PEP genericobjects)

2004-12-01 Thread Steven Bethard
Terry Reedy wrote: "Steven Bethard" <[EMAIL PROTECTED]> wrote in message >>>def __eq__(self, other): """x.__eq__(y) <==> x == y""" return (isinstance(other, self.__class__) Since an instance of a subclass is an instance of a parent class, but not vice versa, I believe you introduce here the

PIL for Python 2.4 ?

2004-12-01 Thread Michel Claveau - abstraction méta-galactique non triviale en fuite perpétuelle.
Hi ! I can't install PIL on Python 2.4 ; the soft search Python 2.3 ; gh ! Do you know if the great F.L. want to make, soon, a P24 version ? Thanks ! -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Win32 Silent Install

2004-12-01 Thread Matt Gerrans
That sounds easy enough, but I imagine the Acive State package requires some kind of licensing.I'm pre-installing on millions of consumer PCs. -- http://mail.python.org/mailman/listinfo/python-list

Re: assymetry between a == b and a.__eq__(b) (WAS: pre-PEP genericobjects)

2004-12-01 Thread Terry Reedy
"Steven Bethard" <[EMAIL PROTECTED]> wrote in message >>>def __eq__(self, other): >>>"""x.__eq__(y) <==> x == y""" >>>return (isinstance(other, self.__class__) Since an instance of a subclass is an instance of a parent class, but not vice versa, I believe you introduce here the assymetr

Re: Python Win32 Silent Install

2004-12-01 Thread Trent Mick
Matt Gerrans wrote: Maybe there is a better way to do an unattended install of the Win32 extensions (that is, perhaps without using the binary)? You could use the ActivePython MSI package, which includes the PyWin32 extensions and offers a silent install option: http://aspn.activestate.com/ASPN/

Re: recombination variations

2004-12-01 Thread Peter Otten
David Siedband wrote: > The problem I'm solving is to take a sequence like 'ATSGS' and make all > the DNA sequences it represents. The A, T, and G are fine but the S > represents C or G. I want to take this input: > > [ [ 'A' ] , [ 'T' ] , [ 'C' , 'G' ], [ 'G' ] , [ 'C' , 'G' ] ] > > and make

Re: non blocking read()

2004-12-01 Thread David Bolen
Jp Calderone <[EMAIL PROTECTED]> writes: > def nonBlockingReadAll(fileObj): > bytes = [] > while True: > b = fileObj.read(1024) > bytes.append(b) > if len(b) < 1024: > break > return ''.join(bytes) Wouldn't this still

Re: non blocking read()

2004-12-01 Thread Donn Cave
In article <[EMAIL PROTECTED]>, Uwe Mayer <[EMAIL PROTECTED]> wrote: > Hi, > > I use select() to wait for a file object (stdin) to become readable. In that > situation I wanted to read everything available from stdin and return to > the select statement to wait for more. > > However, the file o

Re: Python 3000 and "Python Regrets"

2004-12-01 Thread Steve Holden
Brad Tilley wrote: Matt Gerrans wrote: Anyway, what's to worry about?When the time comes just whip out a little script that converts Python 1.6 (or whatever you like) to Python3K; it will only take seven lines of P3K code. How about 'import classic' ... or from __past__ import __mistakes__ l

Re: Python xmlrpc servers?

2004-12-01 Thread ted holden
Skip Montanaro wrote: > If so, you need to qualify the reference to the handler class like > > SimpleXMLRPCServer.CGIXMLRPCRequestHandler Again thanks, that works. If I weren't worried about jinxing myself I'd say I seem to be in pretty good shape at this point... Ted -- http://mail.pyth

M2Crypto for 2.4

2004-12-01 Thread Elbert Lev
People! Have somebody build M2Crypto for 2.4 on windows? If yes, please tell if there are any problems. -- http://mail.python.org/mailman/listinfo/python-list

ANN: pyMinGW support for Python 2.4 (final) is available

2004-12-01 Thread A. B., Khalid
This is to inform those interested in compiling Python in MinGW that an updated version of pyMinGW is now available. Get it from here: http://jove.prohosting.com/iwave/ipython/pyMinGW.html Regards Khalid -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3000 and "Python Regrets"

2004-12-01 Thread Brad Tilley
Matt Gerrans wrote: Anyway, what's to worry about?When the time comes just whip out a little script that converts Python 1.6 (or whatever you like) to Python3K; it will only take seven lines of P3K code. How about 'import classic' -- http://mail.python.org/mailman/listinfo/python-list

Re: Python xmlrpc servers?

2004-12-01 Thread Jaime Wyant
Check these out -> http://server3.sleekcom.com/~jaime/webservice.html (syntax highlighted version) http://server3.sleekcom.com/~jaime/webservice.txt (savable text version) HTH, jw On Wed, 01 Dec 2004 20:04:46 GMT, ted holden <[EMAIL PROTECTED]> wrote: > Jaime Wyant wrote: > > > Mark Pilgrim wro

Re: Python xmlrpc servers?

2004-12-01 Thread Skip Montanaro
>> Have you looked in your web server's error log file? ted> Shoulda thought of that It's telling me that the name ted> CGIXMLRPCRequestHandler is not found. In other words, it is trying ted> to execute the proper file at least. I'd have that that importing ted> SimpleX

Re: Converting String to Class

2004-12-01 Thread Matt Gerrans
You didn't specify exactly how the string is parsed, so this is a guess: class Thingy(object): def __init__(self,rawinfo): self.StructId, vq,self.ProcessName = rawinfo.split() self.Version,self.QName = vq.split('.') def __str__(self): return '' % (self.StructId, self.Versio

Re: Python Win32 Silent Install

2004-12-01 Thread Thomas Heller
"Matt Gerrans" <[EMAIL PROTECTED]> writes: > Looks like the installer for the Win32 extensions has changed from Wise to > distutils, so now my automated silent installations don't work anymore. > Anyone know if the distutils binary installer can be run silently?I > haven't been able find a

Re: non blocking read()

2004-12-01 Thread Jp Calderone
On Wed, 01 Dec 2004 19:39:45 +0100, Uwe Mayer <[EMAIL PROTECTED]> wrote: >Hi, > > I use select() to wait for a file object (stdin) to become readable. In that > situation I wanted to read everything available from stdin and return to > the select statement to wait for more. > > However, the file

Re: Python xmlrpc servers?

2004-12-01 Thread ted holden
Jaime Wyant wrote: > Mark Pilgrim wrote a really neat piece of python code that did XML-RPC > over CGI. It seems to have disappeared from his website, though > (http://diveintomark.org/public/webservices.txt). > > If you can't dig it up, I have a working copy that I use. I'll post > it / email

Re: Python 3000 and "Python Regrets"

2004-12-01 Thread Matt Gerrans
Anyway, what's to worry about?When the time comes just whip out a little script that converts Python 1.6 (or whatever you like) to Python3K; it will only take seven lines of P3K code. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python xmlrpc servers?

2004-12-01 Thread Jaime Wyant
Mark Pilgrim wrote a really neat piece of python code that did XML-RPC over CGI. It seems to have disappeared from his website, though (http://diveintomark.org/public/webservices.txt). If you can't dig it up, I have a working copy that I use. I'll post it / email it if you want. jw On Wed, 1

Python Win32 Silent Install

2004-12-01 Thread Matt Gerrans
Looks like the installer for the Win32 extensions has changed from Wise to distutils, so now my automated silent installations don't work anymore. Anyone know if the distutils binary installer can be run silently?I haven't been able find a command line reference for distutils binaries (I'm

Re: pickle and py2exe

2004-12-01 Thread Johan Lindberg
> Im trying to compile a script with py2exe. The pickle module is causing the > program to give an error. > > Traceback (most recent call last): > File "SETIstat.pyw", line 330, in ? > File "SETIstat.pyw", line 84, in start_up > File "SETIstat.pyw", line 79, in config_load > File "pickle.p

Re: Python xmlrpc servers?

2004-12-01 Thread Skip Montanaro
ted> The only other real question is what about the cgi servers? I'd ted> assume I'd take the example given: ted> class MyFuncs: ted> def div(self, x, y) : return div(x,y) ted> handler = CGIXMLRPCRequestHandler() ted> handler.register_function(pow) ted> handler.re

Re: Python xmlrpc servers?

2004-12-01 Thread Skip Montanaro
ted> Would several web services on the same server listen on different ted> ports (, 8889, 8890...) or on the same port? Port numbers are never implicit. You need to provide a listen port each time you start the server. Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Python xmlrpc servers?

2004-12-01 Thread ted holden
Skip Montanaro wrote: > ted> I don't see what "lambda" is or how a lambda function is supposed > ted> to be construed as adding two numbers together. > > Lambda is a keyword in Python used to create and return very simple > (single-expression) functions. Lambda expressions can be used a

Re: module imports and memory usage

2004-12-01 Thread Carlos Ribeiro
On Tue, 30 Nov 2004 16:46:43 -0500, Brad Tilley <[EMAIL PROTECTED]> wrote: > I discovered that when I wrap my code up in a function def and call it > that it uses around 4.6 MB of RAM all the time... even while sleeping. > However, when I don't put it in a function def it uses around 2.6MB of > dat

non blocking read()

2004-12-01 Thread Uwe Mayer
Hi, I use select() to wait for a file object (stdin) to become readable. In that situation I wanted to read everything available from stdin and return to the select statement to wait for more. However, the file object's read method blocks if the number of bytes is 0 or negative. Is there no way

Re: Python 3000 and "Python Regrets"

2004-12-01 Thread Tim Peters
[EMAIL PROTECTED] > I just came across the slides for Guido van Rossum's "Python > Regrets" talk, given in 2002. It worries me that much of my Python > code would be broken if all of his ideas were implemented. Actually, none of it would break, provided you don't change the Python implementation y

Re: Python xmlrpc servers?

2004-12-01 Thread Skip Montanaro
ted> The example given in the Python documentation for ted> SimpleXMLRPCServer is more or less incomprehensible. Agreed, there is a doc fix needed. Try mentally adding from math import * to the start of the example. That will get you the pow function. It's still incorrect thoug

Re: Python 3000 and "Python Regrets"

2004-12-01 Thread Ian Bicking
[EMAIL PROTECTED] wrote: I just came across the slides for Guido van Rossum's "Python Regrets" talk, given in 2002. It worries me that much of my Python code would be broken if all of his ideas were implemented. He doesn't even like 'print'. Of course, I am not qualified to argue with Van Rossum ab

Re: Help With Hiring Python Developers

2004-12-01 Thread Miklós P
"fuego" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > My company (http://primedia.com/divisions/businessinformation/) has > two job openings that we're having a heckuva time filling. We've > posted at Monster, Dice, jobs.perl.org and python.jobmart.com. Can > anyone advise other j

Python 3000 and "Python Regrets"

2004-12-01 Thread beliavsky
I just came across the slides for Guido van Rossum's "Python Regrets" talk, given in 2002. It worries me that much of my Python code would be broken if all of his ideas were implemented. He doesn't even like 'print'. Of course, I am not qualified to argue with Van Rossum about the direction of Pyth

Python xmlrpc servers?

2004-12-01 Thread ted holden
I have a project for which being able to write xmlrpc server code in python would be vastly preferable to the second choice solution for a number of reasons. Unfortunately, pretty much everything I see on the net in the way of documentation appears either insufficient or outdated. The example gi

Re: Syntax for extracting multiple items from a dictionary

2004-12-01 Thread Peter Hansen
Dave Merrill wrote: "anton muhin" wrote: Or dict((key, row[key]) for key in cols). I'm on Py 2.3.3, and neither of these appear to work. You're probably getting the error shown. Try the change in the line following it instead. Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)]

Re: A little threading problem

2004-12-01 Thread Jeremy Jones
Alban Hertroys wrote: Hello all, I need your wisdom again. I'm working on a multi-threaded application that handles multiple data sources in small batches each time. The idea is that there are 3 threads that run simultaneously, each read a fixed number of records, and then they wait for e

Converting String to Class

2004-12-01 Thread michael
Hello, I have a script that is called by the shell this way : mqtrigger.py "TMC2TEST.QUEUE LV1871.MQPROCESS" So argv[1] is the string "TMC2TEST.QUEUE LV1871.MQPROCESS" I would like to construct a class with that string that contains the attributes -StrucId -VersionId -QName -Pr

Re: Regexp question

2004-12-01 Thread Mitja
On Wed, 1 Dec 2004 07:48:24 -0600, Philippe C. Martin <[EMAIL PROTECTED]> wrote: I realize this is more a regexp question than a python question, but maybe one of the re object could help me: I have wish to know how to _no_ match: This is but an example of the data I handle: xx xx xx xx xx xx

Drawing Cogwheels and Combinatoric diagrams

2004-12-01 Thread Andrew James
Gentlemen, I'm looking for a graphing or drawing python package that will allow me to draw complex geometric shapes. I need to be able to create shapes like cogwheels and Venn diagrams: http://encyclopedia.thefreedictionary.com/Venn The library must support alpha blending and the ability to retu

assymetry between a == b and a.__eq__(b) (WAS: pre-PEP generic objects)

2004-12-01 Thread Steven Bethard
Peter Otten wrote: Steven Bethard wrote: def __eq__(self, other): """x.__eq__(y) <==> x == y""" return (isinstance(other, self.__class__) and self.__dict__ == other.__dict__) This results in an asymmetry: from bunch import Bunch class B(Bunch): pass ... B().__eq__(Bunch()) False B

Re: Python 2.4 Uninstall Entry in WinXP Registry

2004-12-01 Thread Brad Tilley
Brad Tilley wrote: Martin v. Löwis wrote: Brad Tilley wrote: Python 2.3 placed a registry key under: 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Python2.3' [...] Python 2.4 does not use this registry entry on the two machines I have installed it on... any tips on how

Re: Question on sorting

2004-12-01 Thread Lad
Peter Otten <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Lad wrote: > > > wes weston <[EMAIL PROTECTED]> wrote in message > > news:<[EMAIL PROTECTED]>... > >> Lad wrote: > >> > Hi, > >> > I have a file of records of 4 fields each. > >> > Each field is separated by a semicolon

Re: RELEASED Python 2.4 (final)

2004-12-01 Thread Klaus Meyer
Anthony Baxter schrieb: happy to announce the release of Python 2.4. Thanks! minor remarks: First line from C:\Python24\README.txt This is Python version 2.4 alpha 3 In C:\Python24\Tools in various subdirs the README.TXT files disappeared. -- regards kgm -- http://mail.python.org/mailman/listinfo/p

Re: SOAPpy/ZSI/Twisted SOAP over stdin/stdout?

2004-12-01 Thread Harry George
Harry George <[EMAIL PROTECTED]> writes: > Normally the SOAP Servers are designed to take control of a port and > run their own sockets via inheritance from SocktServer. > > But under inetd and xinetd, the port is controlled elsewhere and the > service just gets the stdin/stdout. I need to config

Re: Syntax for extracting multiple items from a dictionary

2004-12-01 Thread Jean Brouwers
The correct syntax is: dict([(key, row[key]) for key in cols]) i.e. the list must be enclosed in [...]. /Jean Brouwers In article <[EMAIL PROTECTED]>, Dave Merrill <[EMAIL PROTECTED]> wrote: > "anton muhin" wrote: > > Stefan Behnel wrote: > > > > > > > > > shark schrieb: > > > > > >> ro

Re: Syntax for extracting multiple items from a dictionary

2004-12-01 Thread Simon Brunning
On Wed, 1 Dec 2004 10:23:28 -0500, Dave Merrill <[EMAIL PROTECTED]> wrote: > "anton muhin" wrote: > > Or dict((key, row[key]) for key in cols). > > I'm on Py 2.3.3, and neither of these appear to work. Can someone confirm? I > can't see anything in the 2.4 release notes that point to where this wo

Re: Python 2.4 Uninstall Entry in WinXP Registry

2004-12-01 Thread Brad Tilley
Martin v. Löwis wrote: Brad Tilley wrote: Python 2.3 placed a registry key under: 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Python2.3' [...] Python 2.4 does not use this registry entry on the two machines I have installed it on... any tips on how to locate this? It

Re: Syntax for extracting multiple items from a dictionary

2004-12-01 Thread Dave Merrill
"anton muhin" wrote: > Stefan Behnel wrote: > > > > > > shark schrieb: > > > >> row = {"fname" : "Frank", "lname" : "Jones", "city" : "Hoboken", > >> "state" : > >> "Alaska"} > >> cols = ("city", "state") > >> > >> Is there a best-practices way to ask for an object containing only the > >> keys > >

Re: pdb with emacs

2004-12-01 Thread Benjamin Rutt
"Yuri Shtil" <[EMAIL PROTECTED]> writes: > I am trying to learn python and use the gud/pdb from emacs. The > functionality that I am used to under gud/gdb and gud/perldb is missing, or > I don't know how to make it work. > Specifically: when I start pdb on a script file, the source does not show i

A little threading problem

2004-12-01 Thread Alban Hertroys
Hello all, I need your wisdom again. I'm working on a multi-threaded application that handles multiple data sources in small batches each time. The idea is that there are 3 threads that run simultaneously, each read a fixed number of records, and then they wait for eachother. After that the main

Re: Semaphore or what should I use?

2004-12-01 Thread Ville Vainio
> "Bastian" == Bastian Hammer <[EMAIL PROTECTED]> writes: Bastian> Now I have to make sure, that both threads are Bastian> synchronal, 1 thread edits something and the other is Bastian> blocked until the first thread is ready. Bastian> Isn´t it a good idea to do this with a se

  1   2   >