Re: Get Special Folders (ie Desktop location)

2004-12-01 Thread Colin Steadman
> > You can do that in Python using the pywin32 extensions > either by using the Wshell objects as you have done: > > > > import win32com.client > WShell = win32com.client.Dispatch ("WScript.Shell") > WShell.SpecialFolders ("Desktop") > > > > or by using the shell module from the same packag

IMAP UTF-7, any codec for that anywhere?

2004-12-01 Thread Max M
Is there any codec available for handling The special UTF-7 codec for IMAP? I have searched the web for info, but there only seem to be discussions about it. Not actual implementations. This is what I am talking about: http://www.faqs.org/rfcs/rfc2060.html 5.1.3. Mailbox International Naming Con

Re: pre-PEP generic objects

2004-12-01 Thread Peter Otten
Steven Bethard wrote: > 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: >> > [snip] >> >> Whe

Re: Python 2.4 Uninstall Entry in WinXP Registry

2004-12-01 Thread "Martin v. Löwis"
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's under HKEY_LOCAL_MACHI

Re: IMAP UTF-7, any codec for that anywhere?

2004-12-01 Thread Brian Quinlan
Max M wrote: Is there any codec available for handling The special UTF-7 codec for IMAP? I have searched the web for info, but there only seem to be discussions about it. Not actual implementations. Is there something special do you need or is recipe OK? >>> u"\u00ff".encode('utf-7') '+AP8-' Cheer

2.4 or 2.3.4 for 2.3 software?

2004-12-01 Thread Jens Bloch Helmers
Can we expect the current release of 2.4 to be just as reliable as 2.3.4 for 2.3 compliant software? Thanks for any help! Jens -- http://mail.python.org/mailman/listinfo/python-list

Re: RELEASED Python 2.4 (final)

2004-12-01 Thread BJörn Lindqvist
Christmas came early this year. Thank you all nice Python developers. -- mvh Björn -- http://mail.python.org/mailman/listinfo/python-list

Re: IMAP UTF-7, any codec for that anywhere?

2004-12-01 Thread Max M
Brian Quinlan wrote: > Max M wrote: > >> Is there any codec available for handling The special UTF-7 codec for >> IMAP? > Is there something special do you need or is recipe OK? > > >>> u"\u00ff".encode('utf-7') > '+AP8-' A recipe would be excellent. Unfortunately yours is no right. It should hav

Re: 2.4 or 2.3.4 for 2.3 software?

2004-12-01 Thread Gerhard Haering
On Wed, Dec 01, 2004 at 10:23:55AM +0100, Jens Bloch Helmers wrote: > Can we expect the current release of 2.4 to be just as reliable as > 2.3.4 for 2.3 compliant software? Only time will tell. I myself had never had any problems with 2.x.0 versions of Python. Only early 2.0.x had a few problems

Re: Question on sorting

2004-12-01 Thread Lad
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. That is > > > > Filed1;Ffield2;Field3;Field4 > > > > But there may be also empty records such as > > > >

Re: decorators ?

2004-12-01 Thread BJörn Lindqvist
Some more decorator examples. How to create abstract methods using an @absractmethod decorator: http://www.brpreiss.com/books/opus7/html/page117.html Generics, property getters and setters. I don't know what these decorators are supposed to do: http://www.cis.upenn.edu/~edloper/pydecorators.html

Re: Question on sorting

2004-12-01 Thread Peter Otten
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. That is >> > >> > Filed1;Ffield2;Field3;Field4 >> > >> > But there may be also empty reco

Regular Expression Problem...

2004-12-01 Thread andrea . gavana
Hello NG, I am quite new with Python... I'm writing an application that does also some regexp things on strings, but I'm having problem about identifying/extracting a substring from another string. What I have to do is to extract all the strings that begins with a "$" character, but excluding

Re: Regular Expression Problem...

2004-12-01 Thread Jorge Godoy
[EMAIL PROTECTED] writes: > #CODE BEGIN > import re > > mystring = "This Is An \$EXAMPLE\String;" > regex = re.compile("[\$]+\S*",re.IGNORECASE) > keys = regex.findall(mystring) > > #CODE END regex = re.compile("[\$]+\w*",re.IGNORECASE) >>> import re >>> >>> mystring = "This Is An \$EXAMPLE\Stri

RE: Regular Expression Problem...

2004-12-01 Thread Doran_Dermot
You could try the following: regex = re.compile("[\$]\w+", re.IGNORECASE) I've only done a bit of testing. Maybe somebody has a better solution. Cheers!! Dermot. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 01 December 2004

Re: Help With Hiring Python Developers

2004-12-01 Thread Bill McClain
On 2004-12-01, fuego <[EMAIL PROTECTED]> wrote: > My company (http://primedia.com/divisions/businessinformation/) has > two job openings that we're having a heckuva time filling. Allow offsite workers and you'll have all the candidates you want. -Bill -- Sattre Press

Re: Regular Expression Problem...

2004-12-01 Thread Peter Otten
[EMAIL PROTECTED] wrote: > identifying/extracting a substring from another string. What I have to do > is to extract all the strings that begins with a "$" character, but > excluding characters like "." (point) and "'" (single quote) and "\" "/" > (slashes). For example I have: > > 1) This Is An

RE: 2.4 or 2.3.4 for 2.3 software?

2004-12-01 Thread Batista, Facundo
Title: RE: 2.4 or 2.3.4 for 2.3 software? [Jens Bloch Helmers] #- Can we expect the current release of 2.4 to be just as reliable as #- 2.3.4 for 2.3 compliant software? Actually, you can expect to be more reliable, a lot of bugs were fixed. .   Facundo -- http://mail.python.org/

Re: decorators ?

2004-12-01 Thread Jacek Generowicz
BJörn Lindqvist <[EMAIL PROTECTED]> writes: > I think the essence of decorators is that it makes it possible to do > in Python what you in other languages do with method qualifiers. I find it fascinating that the addition of a bit of syntax sugar gives the perception that a whole range of new and

Setting namespace using SOAPpy

2004-12-01 Thread Nello Polesello
I'm trying to use a Web Service written in C# from Python (using SOAPpy), and I don't know how to set namespace. I'd like to add the attribute xmlns="http://www.uniud.it/email/"; in the tag or in my method tag . I don't want the syntax http://servizi.amm.uniud.it/email/";> used by SOAPpy because

Semaphore or what should I use?

2004-12-01 Thread Bastian Hammer
Hi I´m wondering why there are so few examples with Semaphore. Is it obsolete? I´ve got a Class Data. It offers 2 Threads methods for updating, editing, .. a private dictionary. Now I have to make sure, that both threads are synchronal, 1 thread edits something and the other is blocked until th

Re: Help With Hiring Python Developers

2004-12-01 Thread Skip Montanaro
fuego> We've posted at Monster, Dice, jobs.perl.org and fuego> python.jobmart.com. Can anyone advise other job boards that fuego> might be helpful? http://www.python.org/Jobs-howto.html Skip -- http://mail.python.org/mailman/listinfo/python-list

Regexp question

2004-12-01 Thread Philippe C. Martin
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 xx [yy yy yy yy yy yy yy] (zz zz zz zz) I currently can retrieve the three group

Re: 2.4 or 2.3.4 for 2.3 software?

2004-12-01 Thread Peter Hansen
Jens Bloch Helmers wrote: Can we expect the current release of 2.4 to be just as reliable as 2.3.4 for 2.3 compliant software? Yes, you can expect it. Whether it *will be* just as reliable is of course a different story. The best way to find out is to install it and use it with your 2.3 software.

Re: IMAP UTF-7, any codec for that anywhere?

2004-12-01 Thread Jp Calderone
On Wed, 01 Dec 2004 10:35:59 +0100, Max M <[EMAIL PROTECTED]> wrote: >Brian Quinlan wrote: > > Max M wrote: > > > >> Is there any codec available for handling The special UTF-7 codec for > >> IMAP? > > > Is there something special do you need or is recipe OK? > > > > >>> u"\u00ff".encode('

Re: decorators ?

2004-12-01 Thread Skip Montanaro
Jacek> Anything you can do with decorators, you could do before (with Jacek> the exception of rebinding the __name__ of functions). And while that feature was added because we realized it would be nice if the decorated function could have the same name as the original function, it seems l

Re: RELEASED Python 2.4 (final)

2004-12-01 Thread Anthony Baxter
On 30 Nov 2004 12:09:37 -0800, Chang LI <[EMAIL PROTECTED]> wrote:. > > On behalf of the Python development team and the Python community, I'm > > happy to announce the release of Python 2.4. > > > > Is there Windows 64-bit edition available? If you went to the 2.4 page, you'd see that there is i

Re: Semaphore or what should I use?

2004-12-01 Thread Jeremy Jones
Bastian Hammer wrote: Hi I´m wondering why there are so few examples with Semaphore. Is it obsolete? I´ve got a Class Data. It offers 2 Threads methods for updating, editing, .. a private dictionary. Now I have to make sure, that both threads are synchronal, 1 thread edits something and the other

Re: Regexp question

2004-12-01 Thread Miki Tebeka
Hello Philippe, > What I would rather do is. > > "get the data block that is _not_ between brackets or parenthesis i.e; 'xx > xx > xx xx xx xx xx' knowing that the intial string could be: See http://docs.python.org/lib/re-syntax.html and search for "negative lookahead" HTH. -- ---

Re: Struggling with struct.unpack() and "p" format specifier

2004-12-01 Thread Geoffrey
Thanks for your response. I guess the documentation on the p format wasn't clear to me ... or perhaps I was just hoping to much for an easy solution ! The data is part of a record structure that is written to a file with a few "int"'s and "longs" mixed in. The pattern repeats through the file wi

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

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: 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

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: 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 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: 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: 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: 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: 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: 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

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

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

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

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: 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

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)]

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

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

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

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: 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 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

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: 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

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: 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 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: 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

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: 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

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 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: 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 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: 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 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: 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 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

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

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

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

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: 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: 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: 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: 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: 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 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

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: 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

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: 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: 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: 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

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: 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)

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: 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: 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

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: 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

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

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

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) > >>

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: 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: 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 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: 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)

  1   2   >