Re: Corectly convert from %PATH%=c:\\X; "c:\\a; b" TO ['c:\\X', 'c:\\a; b']

2005-04-04 Thread Chirayu Krishnappa
Its good to see what cpython did with the PATH. I now feel good about taking the simple approach. It would be crazy if that sort of quoting in the middle becomes something which works with too many applications - and others are expected to keep up with it. I guess I dont need to worry about unix P

distutils

2005-04-04 Thread Guillaume JULLIEN
Hi, New to python, I' m trying to use distutils. And I get this error # python setup.py build Traceback (most recent call last): File "setup.py", line 89, in ? from distutils import core ImportError: No module named distutils I have Python 2.3.4 installed Any advice ? How does path work in py

Last rites declaration of Ioannes Paulus PP. II (Karol Wojtyla)

2005-04-04 Thread Ioannes Paulus PP.II (Karol Wojtyla)
"The unforgiveable sins this earth must confront and overcome are Nationalism, capitalism, and hoarding. The idea of every nation should be forgot, price should be struck from the commons, and princes should be seen for the devils they are. The sins include our church, secret societies, a

Re: string goes away

2005-04-04 Thread Duncan Booth
John J. Lee wrote: > Duncan Booth <[EMAIL PROTECTED]> writes: > [...] >>str.join(sep, list_of_str) > [...] > > Doesn't work with unicode, IIRC. > > str.join won't work if sep is unicode, but generally you know what type the separator is and str.join will quite happily join a list of string

Re: re module non-greedy matches broken

2005-04-04 Thread Fredrik Lundh
"lothar" wrote: > this is a bug and it needs to be fixed. it's not a bug, and it's not going to be "fixed". search, findall, finditer, sub, etc. all scan the target string from left to right, and process the first location (or all locations) where the pattern matches. -- http://mail.pyt

Re: Change between Python 2.3 and 2.4 under WinXP

2005-04-04 Thread Fredrik Lundh
Franz Steinhäusler wrote: > My second question from my last post (PyQt on Python 2.4), I think, is > a little got under (i have installed both Python 2.3 and Python 2.4) > > Is there any possibility under WinXP, to alterntate quickly > (with batch file or similary) between python23 and python24.

GUI - Qt Designer

2005-04-04 Thread John M Bradbury
Hi I am John M Bradbury. A message for John Bradbury, I am wondering if we are related? e-mail [EMAIL PROTECTED] www.johnmbradburyart.co.uk Best wishes John M Bradbury -- http://mail.python.org/mailman/listinfo/python-list

Re: Help me dig my way out of nested scoping

2005-04-04 Thread Terry Reedy
"Brendan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >F -is- in fact an iterative optimizer that minimizes A on x (B is the > derivative of A). So yes, F will call A and B on mulitple 'x's. In > that case, it seems the mutable object trick is the way to go. Thanks. As long a

DIY Spam Filter in Python

2005-04-04 Thread Peter Ballard
Hi all, I've no idea if this will be of any use to anyone. But since I've gone to the effort of writing it, I might as well make it publicly available... Until last year, spam filtering was a source of frustration for me. Freeware packages I tried (specifically, spamassassin and dspam) were diffi

Question about Enthought python distribution

2005-04-04 Thread Oh Kyu Yoon
Hi! I have been using the python 2.3.3 distribution from Enthought Inc because it has most of the libraries I use included. Does anyone know when Enthought will release the python 2.4 distribution? Thanks. Ohkyu -- http://mail.python.org/mailman/listinfo/python-list

Tkinter - pixel or widget color

2005-04-04 Thread pavel.kosina
I would need to get at canvas pixel color under certain moving widget or better (= faster?) colors/"types" of underlying static widgets that are of polygon shape (not rectangle). How to arrange it without using higher math that must have to compute actual distance of each of point on a polygon?

Raise Error in a Module and Try/Except in a different Module

2005-04-04 Thread Issa-Ahmed SIDIBE
I Have a function FUNC1 that is define in ModuleA. This function raise an exception EXCP1 (raise EXCP1), with EXCP1 a global variable in ModuleA. In ModuleB, I have some classes that call FUNC1. I would like to catch EXCP1 and make some processing. How can I do that. I tried in Module B import M

import and scope inconsistency?

2005-04-04 Thread Jim
I would be very grateful for help on the following. I have the following modules in a program. Names changed to protect the innocent. 1.Simulation 2.Branches 3.MyFiles I import Branches, Myfiles and the publicly available module Numeric inside Simulation. Branches and MyFiles both contain class def

Re: Raise Error in a Module and Try/Except in a different Module

2005-04-04 Thread Simon Brunning
On 4 Apr 2005 03:11:23 -0700, Issa-Ahmed SIDIBE <[EMAIL PROTECTED]> wrote: > I Have a function FUNC1 that is define in ModuleA. This function raise > an exception EXCP1 (raise EXCP1), with EXCP1 a global variable in > ModuleA. > > In ModuleB, I have some classes that call FUNC1. I would like to ca

Re: Raise Error in a Module and Try/Except in a different Module

2005-04-04 Thread Jim
Issa-Ahmed SIDIBE wrote: I Have a function FUNC1 that is define in ModuleA. This function raise an exception EXCP1 (raise EXCP1), with EXCP1 a global variable in ModuleA. In ModuleB, I have some classes that call FUNC1. I would like to catch EXCP1 and make some processing. How can I do that. I trie

Re: Raise Error in a Module and Try/Except in a different Module

2005-04-04 Thread Heiko Wundram
Am Montag, 4. April 2005 12:11 schrieb Issa-Ahmed SIDIBE: Try: > import ModuleA > ... > class(): >... >try: a = ModuleA.FUNC1() ^^ <-- Actually call the method. >except ModuleA.EXCP1: print 'catch' HTH! -- --- Heiko. see you at: http://www.stud.mh-hann

Re: Raise Error in a Module and Try/Except in a different Module

2005-04-04 Thread Jim
You're not *calling* FUNC1 here, you're just assigning a reference to it to the name 'a'. Try FUNC1() instead. Oh yeah. -- http://mail.python.org/mailman/listinfo/python-list

Re: DIY Spam Filter in Python

2005-04-04 Thread Tim Churches
Peter Ballard wrote: > I've no idea if this will be of any use to anyone. But since I've gone > to the effort of writing it, I might as well make it publicly > available... > > Until last year, spam filtering was a source of frustration for me. > Freeware packages I tried (specifically, spamassass

Re: import and scope inconsistency?

2005-04-04 Thread Heiko Wundram
Am Montag, 4. April 2005 12:23 schrieb Jim: > I can call MyFiles methods inside methods of the Brances classes. > I cannot call Numeric methods inside methods of the Brances classes. > > 1. I was surprised I could call MyFiles methods in Branches methods. > 2. Since I was used to using modules impo

Re: import and scope inconsistency?

2005-04-04 Thread Heiko Wundram
You're putting a Reply-To header in your posts to the mailing-list, but the Reply-To address bounces. Please correct: on't put in a Reply-To header, or at least put in some address that doesn't bounce. -- --- Heiko. listening to: aenima_15_Third Eye.mp3 see you at: http://www.stud.mh-hannove

What's up with the PyFX Project??? (ex PyCG nVidia CG implementation)

2005-04-04 Thread tc
Does anyone know why there's no progress on the pyfx project?? (http://graphics.cs.lth.se/pyfx) What are the pro and con's for such an implementation to actually program a 3d game (engine)?? I started off a while ago in c++ to play around a bit with directx opengl and cg but I'd rather like to pr

Sending keytrokes to Windows app

2005-04-04 Thread Marten Hedman
Hello, I am trying to control a Windows application from a python script with SendKeys and Python 2.3. My problem is that the characters ':' and '\' are sent to the application as ';' and '+'. See code example below. I suspect that the problem has to do with the regional and keyboard settings i

Testing for EOF ?

2005-04-04 Thread Pete Moscatt
I am reasonably new to python and am trying to read several lines of text from an open file. Typically in other languages I used to use code like: while not EOF() read_text_in ... How is this achieved with python ? Regards Pete -- http://mail.python.org/mailman/listinfo/python-list

Text file to SDE

2005-04-04 Thread JustMe
We have recently purchased ARCSDE 9. I have attended the ARCSDE administrator for Oracle course, but it did not cover how to write data without an the arcgis interfaces. I was told however that I could write data say from a text file directly to the sde using python. Does anyone have a sample sc

Re: import and scope inconsistency?

2005-04-04 Thread Jim
Heiko Wundram wrote: You're putting a Reply-To header in your posts to the mailing-list, but the Reply-To address bounces. Please correct: on't put in a Reply-To header, or at least put in some address that doesn't bounce. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Sending keytrokes to Windows app

2005-04-04 Thread Simon Brunning
On Apr 4, 2005 12:04 PM, Marten Hedman <[EMAIL PROTECTED]> wrote: > I am trying to control a Windows application from a python script with > SendKeys and Python 2.3. WATSUP might be worth a look, instead... http://www.tizmoi.net/watsup/intro.html -- Cheers, Simon B, [EMAIL PROTECTED], http://ww

Re: Testing for EOF ?

2005-04-04 Thread Simon Brunning
On Apr 4, 2005 12:21 PM, Pete Moscatt <[EMAIL PROTECTED]> wrote: > I am reasonably new to python and am trying to read several lines of text > from an open file. my_file = open('whatever.txt', 'r') for line in my_file: print line # Or whatever -- Cheers, Simon B, [EMAIL PROTECTED], http://ww

Re: Queue.Queue-like class without the busy-wait

2005-04-04 Thread Nick Craig-Wood
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Thinking about cross-platform issues. I found this, from the venerable > Tim Peters to be enlightening for python's choice of design: > > "It's possible to build a better Queue implementation that runs only on > POSIX systems, or only on Windows s

Re: Testing for EOF ?

2005-04-04 Thread Simon Brunning
On Apr 4, 2005 12:36 PM, Peter Moscatt <[EMAIL PROTECTED]> wrote: > Thanks Simon, > > So the code should look like: > > f=open(myfile,"r") > > for some_var in f: > text=f.readline() > print text > > Do I have this correct ? Nearly - you don't need the text=f.readline() bit. A file object (

Re: Change between Python 2.3 and 2.4 under WinXP

2005-04-04 Thread Lucas Raab
Fredrik Lundh wrote: Franz Steinhäusler wrote: My second question from my last post (PyQt on Python 2.4), I think, is a little got under (i have installed both Python 2.3 and Python 2.4) Is there any possibility under WinXP, to alterntate quickly (with batch file or similary) between python23 and

Re: (win32) speedfan api control

2005-04-04 Thread Simon Brunning
On Apr 3, 2005 1:52 AM, Claudio Grondi <[EMAIL PROTECTED]> wrote: > May I ask how did you get the > "TJvXPCheckbox" and the other > values necessary to access the program > GUI ? (as I can see, there is no source > code of SpeedFan available) ? Winspector is good for this kind of thing. http://ww

Re: (win32) speedfan api control

2005-04-04 Thread Simon Brunning
On Apr 2, 2005 3:22 AM, tlviewer <[EMAIL PROTECTED]> wrote: (Snip Windows GUI automation stuff.) WATSUP includes a module for Windows GUI automation. It's probably worth a look - it might save you from doing all the research that I had to do! http://www.tizmoi.net/watsup/intro.html -- Cheers, S

Re: Silly question re: 'for i in sys.stdin'?

2005-04-04 Thread Jeff Epler
On Sun, Apr 03, 2005 at 09:49:42PM -0600, Steven Bethard wrote: > Slick. Thanks! does isatty() actually work on windows? I'm a tiny bit surprised! Jeff pgp2TeZpqhdyV.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

boolean -> DNF

2005-04-04 Thread Alex Polite
I need to transform boolean expressions to Disjunctive Normal Form. Right now I'm using BoolStuff[1], a small C program to this end. I'd like to skip BoolStuff and do it all in python but I have no idea where to start. Anyone out there with a PhD in computer science that can give me a starting p

Re: DIY Spam Filter in Python

2005-04-04 Thread pballard
Tim Churches wrote: > Peter Ballard wrote: [snip] > > Source code, and a bit of documentation, is at: > > http://members.ozemail.com.au/~pballard/diyspamfilter.html > Pete mate, > > Nice work, but your Web page on your DIY Spam Filter doesn't mention > SpamBayes, which is surely the definitive Pyt

Re: What's up with the PyFX Project??? (ex PyCG nVidia CG implementation)

2005-04-04 Thread Lucas Raab
tc wrote: Does anyone know why there's no progress on the pyfx project?? (http://graphics.cs.lth.se/pyfx) What are the pro and con's for such an implementation to actually program a 3d game (engine)?? I started off a while ago in c++ to play around a bit with directx opengl and cg but I'd rather li

Re: Tkinter - pixel or widget color

2005-04-04 Thread Jeff Epler
On Mon, Apr 04, 2005 at 10:43:11AM +0200, pavel.kosina wrote: > I would need to get at canvas pixel color under certain moving widget or > better (= faster?) colors/"types" of underlying static widgets that are > of polygon shape (not rectangle). I don't believe this information is available any

Europython 2005 is now accepting talk submissions

2005-04-04 Thread Jacob Hallen
Europython 2005 is now accepting talk submissions! Find out more at http://www.europython.org Just as last year, we have a Refereed Paper Track. Last day for proposing a refereed paper is 22 April 2005. For regular talks, we have the following tracks: Business Education Python Frameworks Python

Re: Queue.Queue-like class without the busy-wait

2005-04-04 Thread Antoon Pardon
Op 2005-04-02, Paul Rubin schreef : > Have you looked at this? A paper about adding asynchronous exceptions > to Python. > > http://www.cs.williams.edu/~freund/papers/02-lwl2.ps Looks interresting, but I doubt python will have it in the near future. I'm very pessimitic about python development in

Re: unittest vs py.test?

2005-04-04 Thread Peter Hansen
Raymond Hettinger wrote: [Peter Hansen] (I'm not dissing py.test, and intend to check it out. Not to be disrepectful, but objections raised by someone who hasn't worked with both tools equate to hot air. Not to be disrespectful either, but criticism by someone who has completely missed my point (an

Problems compiling PIL under Cygwin

2005-04-04 Thread Martin Magnusson
Hi group, I'm trying to build PIL under Cygwin (for use with the Skencil vector graphics program), and I couldn't find a better forum for questions than this. I'm using Python 2.3.4, and when I run "python setup.py build_ext -i" I get the following output: running build_ext building '_imaging'

Re: Some notes about float approximations in mxNumber

2005-04-04 Thread M.-A. Lemburg
Kay Schluehr wrote: > Hi Marc, > > I was a bit surprised to find the very slow Farey approximation by > means of the class in the mxNumber package. If the goal > was to reconstruct a rational from a float it is not a good choice and > should be replaced by a continued fractions approximation. T

adodbapi return value

2005-04-04 Thread Nikolai Kirsebom
I'm trying to use the adodbapi module, but run into the following problem: After initalization (connection, cursor) I have the following call to a stored procedure (SQL Server, using SQLOLEDB.1 provider). m = u'BrReg' rs = u'' msg = u'' x = self.cur.callproc('__DocFetchBaseCategories', (0, 0, m,

Re: redundant importr

2005-04-04 Thread Peter Hansen
max(01)* wrote: Peter Hansen wrote: No it doesn't. I thought I was clear, but I can reword it for you: the files are compiled *in-memory* and the results are never written to disk. > *if* they are compiled, where are they put, if the corresponding *.py files are on a non-writeable directory? They

Re: redundant imports

2005-04-04 Thread Peter Hansen
Serge Orlov wrote: Mike Meyer wrote: The semantic behavior of "include" in C is the same as "from module import *" in python. Both cases add all the names in the included namespace directly to the including namespace. This usage is depreciated in Python ... Did you mean discouraged? Or it's real

Re: unittest vs py.test?

2005-04-04 Thread Roy Smith
Peter Hansen <[EMAIL PROTECTED]> wrote: >It seems possible to me that I might have helped him >solely by pointing out that unittest might not be so >"heavy" as some people claimed. I got the impression >that he might be swayed by some unfounded claims not >even to look further at unittest, which

Re: Change between Python 2.3 and 2.4 under WinXP

2005-04-04 Thread Fredrik Lundh
Lucas Raab wrote: > not to be biased toward your own products at all, or course :-) I'm not aware of any other tool that solves that specific problem. -- http://mail.python.org/mailman/listinfo/python-list

Re: adodbapi return value

2005-04-04 Thread Nikolai Kirsebom
Found out what's wrong. The "Output Parameter Availablity" property of the connection has the value DBPROPVAL_OA_ATROWRELEASE. By closing the record set (reading out the result set first) the output parameters were correct. Made the modification directly in the executeHelper method of the Cursor

playing with pyGoogle - strange codec error

2005-04-04 Thread Brian Blazer
Hello, I am playing around with pyGoogle and encountered an error that I have never seen, and I am unsure how to correct for it. Here is a code snippet: for r in data.results: print 'Title: ',r.title print 'URL: ',r.URL print 'Summary: ',r.snippet print Everything works fine until I

Re: How to reload local namespace definitions in the python interpreter?

2005-04-04 Thread Steve Holden
Tim Jarman wrote: [EMAIL PROTECTED] wrote: Hi, I am a beginner using the python interpreter. To reduce typing effort, I created a module called "aliases.py" containing some aliases for objects I commonly use like - aliases.py : import filecmp, os, commands op = os.path go = commands.getoutput dc =

Re: boolean -> DNF

2005-04-04 Thread Heiko Wundram
Am Montag, 4. April 2005 15:08 schrieb Alex Polite: > I'd like to skip BoolStuff and do it all in python but I have no idea > where to start. Anyone out there with a PhD in computer science that > can give me a starting point? I once wrote a library which implemented parsing boolean expressions (w

Re: (win32) speedfan api control

2005-04-04 Thread Claudio Grondi
>>It makes me curious if I can get also the >>temperatures into Python script for >>further processing > Winspector is good for this kind of thing. Thanks for the link to Winspector - with this tool it's really easy to find out the names required to get down to the window elements of a running ap

Re: Newsgroup Programming

2005-04-04 Thread Steve Holden
Chuck wrote: I've found and used the nntplib module for newgroup programming. Can anyone suggest a library, technique or reference on how to combine mutliple messages with attachments such as mp3's, .wmv, *.avi, etc.? Are you talking about reconstructing a long post like a .avi that has been

Re: Silly question re: 'for i in sys.stdin'?

2005-04-04 Thread Steven Bethard
Jeff Epler wrote: On Sun, Apr 03, 2005 at 09:49:42PM -0600, Steven Bethard wrote: Slick. Thanks! does isatty() actually work on windows? I'm a tiny bit surprised! Hmm... I was just talking about using iter(f.readline, ''), but it does appear that isatty returns True for sys.stdin in the interac

Re: Python Cookbook, 2'nd. Edition is published

2005-04-04 Thread robin
Cameron Laird wrote: >IT'S IN THERE. The answer to all questions--well, to >surprisingly many questions--is in the Second Edition. >Even questions about the Second Edition itself are >answered therein. So, the summary: if in doubt, as- >sume that the Second Edition has what you want. It even

Re: "specialdict" module

2005-04-04 Thread Georg Brandl
Michael Spencer wrote: > Georg Brandl wrote: > >> >> I think I like Jeff's approach more (defaultvalues are just special >> cases of default factories); there aren't many "hoops" required. >> Apart from that, the names just get longer ;) > > Yes Jeff's approach does simplify the implementation a

Re: TOC of Python Cookbook now online (was Re: author index for Python Cookbook 2?)

2005-04-04 Thread robin
[EMAIL PROTECTED] wrote: >I emailed the O'Reilly webmaster, and the table of contents are now >online at http://www.oreilly.com/catalog/pythoncook2/toc.html and also >listed below. Unfortunately there is no list of authors for the sections in the book. This is likely its only shortcoming! -- rob

Re: distutils

2005-04-04 Thread Robert Kern
Guillaume JULLIEN wrote: Hi, New to python, I' m trying to use distutils. And I get this error # python setup.py build Traceback (most recent call last): File "setup.py", line 89, in ? from distutils import core ImportError: No module named distutils I have Python 2.3.4 installed Any advice ?

Extracting Font Outline informations

2005-04-04 Thread Gabriele *Darkbard* Farina
Hi, there is a Python library that makes me able to extract outline informations from font files? I'd like to manage TrueType and FreeType fonts ... I searched for som wrappers, but I didn't find anything ... bye -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about Enthought python distribution

2005-04-04 Thread Robert Kern
Oh Kyu Yoon wrote: Hi! I have been using the python 2.3.3 distribution from Enthought Inc because it has most of the libraries I use included. Does anyone know when Enthought will release the python 2.4 distribution? The next release will be based on Python 2.3.5. They probably won't release a 2.

Semi-newbie, rolling my own __deepcopy__

2005-04-04 Thread [EMAIL PROTECTED]
Hi, folks, First, the obligatory cheerleading -- then, my questions... I love Python! I am only an occasional programmer. Still, the logic of the language is clear enough that I can retain pretty much all that I have learned from one infrequent programming session to the next. That's quite an a

(no subject)

2005-04-04 Thread python-list-bounces+archive=mail-archive . com
#! rnews 2776 Newsgroups: comp.lang.python Path: news.xs4all.nl!newsspool.news.xs4all.nl!transit.news.xs4all.nl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!central.cox.net!east.cox.net!filt02.cox.net!peer01.cox.net!cox.net!attga1!attga2!attws2!ip.att.net!NetNews1!xyzzy!nntp From: Harry George

Re: Extracting Font Outline informations

2005-04-04 Thread Mike C. Fletcher
TTFQuery, built on top of FontTools, allows you to do this. You can see use of the extraction in the OpenGLContext/scenegraph/text package, which uses TTFQuery to implement 3D text rendering. http://ttfquery.sourceforge.net/ http://pyopengl.sourceforge.net/context/ HTH, Mike Gabriele *Darkbard*

Re: "specialdict" module

2005-04-04 Thread Michele Simionato
Michael Spencer: > Alternatively, you could provide factory functions to construct the defaultdict. > Someone (Michele?) recently posted an implementation of this Yes, here is the link for the ones who missed that thread: http://groups-beta.google.com/group/comp.lang.python/browse_frm/thread/a0b

Re: "specialdict" module

2005-04-04 Thread Michele Simionato
About not using super: you might have problems in multiple inheritance. Suppose I want to use both your defaultdict and a thirdpartdict. A subclass class mydict(defaultdict, thirdpartdict): pass would not work if thirdpartdict requires a non-trivial __init__ , since without super in defaultdic

Re: re module non-greedy matches broken

2005-04-04 Thread lothar
how then, do i specify a non-greedy regex <1st-pat>*? that is, such that non-greedy part *? excludes a match of <1st-pat> in other words, how do i write regexes for my examples? what book or books on regexes or with a good section on regexes would you recommend? Hopcroft and Ullman? "André M

Re: re module non-greedy matches broken

2005-04-04 Thread Terry Reedy
> what book or books on regexes A standard is Mastering Regular Expressions, 2nd ed, by xxx (sorry, forget) TJR -- http://mail.python.org/mailman/listinfo/python-list

Re: Semi-newbie, rolling my own __deepcopy__

2005-04-04 Thread Michael Spencer
[EMAIL PROTECTED] wrote: Hi, folks, First, the obligatory cheerleading -- then, my questions... I love Python! I am only an occasional programmer. Still, the logic of the language is clear enough that I can retain pretty much all that I have learned from one infrequent programming session to the

Re: "specialdict" module

2005-04-04 Thread Georg Brandl
Michele Simionato wrote: > About not using super: you might have problems in multiple inheritance. > Suppose I want to use both your defaultdict and a thirdpartdict. A > subclass > > class mydict(defaultdict, thirdpartdict): >pass > > would not work if thirdpartdict requires a non-trivial __i

Re: "specialdict" module

2005-04-04 Thread Georg Brandl
Georg Brandl wrote: > Michele Simionato wrote: >> About not using super: you might have problems in multiple inheritance. >> Suppose I want to use both your defaultdict and a thirdpartdict. A >> subclass >> >> class mydict(defaultdict, thirdpartdict): >>pass >> >> would not work if thirdpartd

Dr. Dobb's Python-URL! - weekly Python news and links (Apr 4)

2005-04-04 Thread Simon Brunning
QOTW: "Paraphrasing Occam, I would say 'don't multiply base classes without necessity'. ;)" - Michele Simionato "The world diversifies, the world congeals." - Raymond Hettinger (commenting on the fact that py.test happily runs unittest test suites) "I can think of no better reason for a programm

setup distributed computing for two computer only

2005-04-04 Thread [EMAIL PROTECTED]
Hello, Is there any one who has experiance about how to setup distributed computing for 2 computer only. I really want to know from the start. Any suggestion appreciated. Sincerely Yours, Pujo -- http://mail.python.org/mailman/listinfo/python-list

Dr. Dobb's Python-URL! - weekly Python news and links (Apr 4)

2005-04-04 Thread Simon Brunning
QOTW: "Paraphrasing Occam, I would say 'don't multiply base classes without necessity'. ;)" - Michele Simionato "The world diversifies, the world congeals." - Raymond Hettinger (commenting on the fact that py.test happily runs unittest test suites) "I can think of no better reason for a programm

Re: Sending keytrokes to Windows app

2005-04-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Simon Brunning <[EMAIL PROTECTED]> wrote: >On Apr 4, 2005 12:04 PM, Marten Hedman <[EMAIL PROTECTED]> wrote: >> I am trying to control a Windows application from a python script with >> SendKeys and Python 2.3. > >WATSUP might be worth a look, instead... > >http://w

Re: re module non-greedy matches broken

2005-04-04 Thread Swaroop C H
On Apr 4, 2005 10:06 PM, Terry Reedy <[EMAIL PROTECTED]> wrote: > > what book or books on regexes > A standard is Mastering Regular Expressions, 2nd ed, by xxx (sorry, forget) Mastering Regular Expressions, by Jeffrey Friedl See http://www.regex.info/ Regards, -- Swaroop C H Blog: http://www.swa

Symbol Referencing Error in Fortran 90

2005-04-04 Thread student
while compiling on: SunOS 5.8 Generic_108528-27 sun4u sparc SUNW,Sun-Fire-280R I get the following error: Undefined first referenced symbol in file matrixi_tst.o ld: fatal: Symbol referencing errors. No output written

Re: LD_LIBRARY_PATH - how to set?

2005-04-04 Thread TZOTZIOY
On Fri, 01 Apr 2005 01:13:03 GMT, rumours say that Joal Heagney <[EMAIL PROTECTED]> might have written: >>> $* >>>--- >> >> >> And you should change that last line to: >> >>"$@" >> > >Ah yes, because we want the arguments passed in as

Re: DIY Spam Filter in Python

2005-04-04 Thread Damien Wyart
* [EMAIL PROTECTED] (Peter Ballard) in comp.lang.python: > Source code, and a bit of documentation, is at: > http://members.ozemail.com.au/~pballard/diyspamfilter.html BTW, 2 of the 3 files are links, so missing from the tar archive... -- DW -- http://mail.python.org/mailman/listinfo/python-lis

Re: re module non-greedy matches broken

2005-04-04 Thread John Ridley
--- lothar <[EMAIL PROTECTED]> wrote: > how then, do i specify a non-greedy regex > <1st-pat>*? > > that is, such that non-greedy part *? > excludes a match of <1st-pat> > > in other words, how do i write regexes for my examples? Not sure if I completely understand your explanation, but does

Re: terminating an inactive process

2005-04-04 Thread Trent Mick
[Earl Eiland wrote] > I'm running a PyWin program that executes another program using > subprocess.Popen(). Unfortunately, this other program isn't well > behaved, and frequently terminates without terminating its process. > After this happens enough times, all my memory is tied up, and the > mac

Re: Semi-newbie, rolling my own __deepcopy__

2005-04-04 Thread Steven Bethard
Michael Spencer wrote: def __deepcopy__(self, memo={}): from copy import deepcopy result = self.__class__() memo[id(self)] = result result.__init__(deepcopy(tuple(self), memo)) return result I know this is not your recipe, but is there any reason to use

dynamic partial mirror, apt-get fails

2005-04-04 Thread barbaros
Hi everybody, I am trying to implement a cgi script for mirroring a small part of a large collection of files (the debian distribution). The idea is to mirror only those files which are requested, by downloading them "on the fly" when the clients request them. Requests in the form "wget http://loc

Re: Symbol Referencing Error in Fortran 90

2005-04-04 Thread beliavsky
This message was also posted and replied to on comp.lang.fortran -- I think it's presence here is an accident. -- http://mail.python.org/mailman/listinfo/python-list

Re: setup distributed computing for two computer only

2005-04-04 Thread Irmen de Jong
[EMAIL PROTECTED] wrote: > Is there any one who has experiance about how to setup distributed > computing for 2 computer only. I really want to know from the start. > Any suggestion appreciated. Please be more specific about "distributed computing"... --Irmen -- http://mail.python.org/mailman/li

Re: help with python-devel!!!

2005-04-04 Thread John Ridley
* Michele Simionato wrote: > Just give (as root) > > # urpmi python-devel The OP mentioned that urpmi couldn't find a package by that name. So it might be worth querying for "libpython" if that fails: [EMAIL PROTECTED] urpmq libpython The following packages contain libpython: libpython2.3 libpyth

Eric3 under WinXP

2005-04-04 Thread Franz Steinhäusler
Hello NG, (Win XP) I have successfully installed pyqt, but not qtext, which I need to run Eric3. The PyQT demo files run fine. I've downloaded QScintilla, compiled via MS-VC, but (I suppose I need the SIG), to translate or provide the Python interface with pyd Files. Eric complains, that qtext

Re: Semi-newbie, rolling my own __deepcopy__

2005-04-04 Thread Michael Spencer
Steven Bethard wrote: Michael Spencer wrote: def __deepcopy__(self, memo={}): from copy import deepcopy result = self.__class__() memo[id(self)] = result result.__init__(deepcopy(tuple(self), memo)) return result I know this is not your recipe, but is th

Re: How to reload local namespace definitions in the python interpreter?

2005-04-04 Thread Bill Mill
On Apr 4, 2005 11:10 AM, Steve Holden <[EMAIL PROTECTED]> wrote: > Tim Jarman wrote: > > [EMAIL PROTECTED] wrote: > > > > > >>Hi, > >> > >>I am a beginner using the python interpreter. To reduce typing effort, > >>I created a module called "aliases.py" containing some aliases for > >>objects I comm

Re: setup distributed computing for two computer only

2005-04-04 Thread [EMAIL PROTECTED]
Hello, There are two computer. For example one computer ask other computer to run function, procedure or object then receive the result. I want to know about what should I do to setup such system and what software I need to implement it. Sincerely Yours, Pujo -- http://mail.python.org/mailman/

Status of Chaco?

2005-04-04 Thread Tim Lesher
I recently had reason to look up Chaco again, but after searching the SciPy and Enthought websites, I see it seems to have gone missing. Looking over c.l.p, I can find only one quasi-recent message from Eric about at, from almost a year ago: > Chaco has moved to a new package. We hope to have it

Re: setup distributed computing for two computer only

2005-04-04 Thread Heiko Wundram
Am Montag, 4. April 2005 21:27 schrieb [EMAIL PROTECTED]: > Google for: Python Remote Objects or Python XMLRPC -- --- Heiko. listening to: Nine Inch Nails - The Downward Spiral see you at: http://www.stud.mh-hannover.de/~hwundram/wordpress/ pgpbsPKhjKOEY.pgp Description: PGP signature --

Re: help with python-devel!!!

2005-04-04 Thread Heiko Wundram
Am Montag, 4. April 2005 20:54 schrieb John Ridley: > The OP mentioned that urpmi couldn't find a package by that name. So it > might be worth querying for "libpython" if that fails: This is why why I don't use a binary distribution... :-) (Differences in) Naming makes getting at devel-packages a

Re: re module non-greedy matches broken

2005-04-04 Thread lothar
with respect to the documentation, the module is broken. the module does not necessarily deliver a "minimal length" match for a non-greedy pattern. "Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "lothar" wrote: > > > this is a bug and it needs to be fixed. > > it's

Re: StopIteration in the if clause of a generator expression

2005-04-04 Thread Raymond Hettinger
[Steven Bethard] > and I often find myself alternating > between the two when I can't decide which one seems more Pythonic. Both are pythonic. Use a genexp when you need a generator and use a listcomp when you need a list. Raymond Hettinger -- http://mail.python.org/mailman/listinfo/python-l

Re: mini_httpd (ACME Labs) & Python 2.4.1 integration

2005-04-04 Thread Venkat B
We found the answer, just in case one was looking for it... I turns out that setting the environment params (CGI_PATH & CGI_LD_LIB_PATH) is not sufficient. One has to still add the path entry to the script itself... like so: #! /python2.4 May also work with ensuring env variable PYTHONPATH is set

Re: How to reload local namespace definitions in the python interpreter?

2005-04-04 Thread Steve Holden
Bill Mill wrote: On Apr 4, 2005 11:10 AM, Steve Holden <[EMAIL PROTECTED]> wrote: Tim Jarman wrote: [EMAIL PROTECTED] wrote: Hi, I am a beginner using the python interpreter. To reduce typing effort, I created a module called "aliases.py" containing some aliases for objects I commonly use like - a

Re: How to execute a cmd line program without invoking console window?

2005-04-04 Thread Tian
this is very useful, thanks very much! -- http://mail.python.org/mailman/listinfo/python-list

Changing TEXT color from python

2005-04-04 Thread GujuBoy
so i am writing a program in Python and i want to print out a few statements in Different colors for example "Print hello world in RED, and "GOOD BYE in blue" " how can i do this...and hopefully without including any external modules. thanks in advance -- http://mail.python.org/mailman/listinf

Re: Changing TEXT color from python

2005-04-04 Thread Grant Edwards
On 2005-04-04, GujuBoy <[EMAIL PROTECTED]> wrote: > so i am writing a program in Python and i want to print out a few > statements in Different colors > > for example "Print hello world in RED, and "GOOD BYE in blue" " > > how can i do this... Depends on what you're printing on. tty? curses

Re: re module non-greedy matches broken

2005-04-04 Thread lothar
no - in the non-greedy regex <1st-pat>*? <1st-pat>, and are arbitrarily complex patterns. with character classes and negative character classes you do not need non-greediness anyway. "John Ridley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > --- lothar <[EMAIL PROTECTED]>

  1   2   >