Re: first release of PyPy

2005-05-23 Thread Alex Stapleton
The question still remains, can it run it's self? ;) On 20 May 2005, at 23:50, Kay Schluehr wrote: > > holger krekel wrote: > >> Welcome to PyPy 0.6 >> >> >> *The PyPy Development Team is happy to announce the first >> public release of PyPy after two years of spare-time and

[avast! - INFECTED] hi

2005-05-23 Thread djamal . benslimane
It's the long-awaited film version of the Broadway hit. The message sent as a binary attachment. --- avast! Antivirus: message Sortant INFECTE: \readme.zip#2473510810 (Win32:Lovgate-W [Wrm]) Moved to chest Base de donnees virale (VPS): 0520-4, 20/05/2005 Teste le: 05/03/2005 08:34:45 avast

Re: first release of PyPy

2005-05-23 Thread Michael Sparks
holger krekel wrote: > The PyPy 0.6 release > > > *The PyPy Development Team is happy to announce the first > public release of PyPy after two years of spare-time and > half a year of EU funded development. The 0.6 release > is eminently a preview release.* Yay! Congratulat

Manipulating mailboxes

2005-05-23 Thread Laszlo Zsolt Nagy
Hi All, I need to create a daemon that sits on a server and forwards some e-mails. (Well not only that, it needs to change header information before forwarding and also insert messages into a database). The mailbox module is fine but I do not see a way to delete/add messages - it is ready on

Re: install python 2.4.1

2005-05-23 Thread [EMAIL PROTECTED]
Hello, I installed python 2.4.1 at last. I installed in two different computers all windows xp pro. I found the installation size in add/remove software different in size is that normal. pujo -- http://mail.python.org/mailman/listinfo/python-list

Re: Manipulating mailboxes

2005-05-23 Thread Paul Rubin
Laszlo Zsolt Nagy <[EMAIL PROTECTED]> writes: > But this looks so clumsy. Is there a way to delete/add messages to > mailboxes of different users, directly? Why not use procmail or equivalent to drop incoming messages into your daemon one at a time. Then use the smtp module to forward them to the

Re: first release of PyPy

2005-05-23 Thread Christian Tismer
Ville Vainio wrote: >>"Christian" == Christian Tismer <[EMAIL PROTECTED]> writes: > > > >> PyPy is written in python, if it can be compiled then the programs > >> can > >> be as well. > > Christian> Well, this is not really true. PyPy is written in > Christian> RPython,

Re: firebird and unicode

2005-05-23 Thread flupke
flupke wrote: I solved it by getting the latest py files from CVS and overwriting the existing ones. It gave an Attribute error but that was gone after commenting this line: #isc_info_isc_version = _k.isc_info_isc_version I'm not sure if this is a safe way of working. It's like ju

Re: firebird and unicode

2005-05-23 Thread F. Petitjean
Le Mon, 23 May 2005 09:30:31 GMT, flupke a écrit : > It's like jumping over a fence with barb wire. > You know your balls might be in danger but > sometimes you got to take a risk :) +1 QOTW > > I hope i don't end up singing with a funny voice ;) -- http://mail.python.org/mailman/listinfo/pyth

Re: Is Python suitable for a huge, enterprise size app?

2005-05-23 Thread Antoon Pardon
Op 2005-05-20, Dieter Maurer schreef <[EMAIL PROTECTED]>: > "Fredrik Lundh" <[EMAIL PROTECTED]> writes on Thu, 19 May 2005 09:54:15 +0200: >> ... >> and unless your operating system is totally braindead, and thus completely >> unfit >> to run huge enterprise size applications, that doesn't really

what is addMethod ?

2005-05-23 Thread qwejohn
Hello, I saw some python open source project with many self.addMethod() functions (with 3 paramters) What does self.addMethod() is good for ? I had looked at documnetation (downloaded and grepped all the pdf doc files) and could not find a thing about it ; nore did googling helped. Regards

Re: Python on a public library computer

2005-05-23 Thread Piet van Oostrum
There are several ssh and telnet applets on the web. Of course it depends on the Java support in your IE. -- Piet van Oostrum <[EMAIL PROTECTED]> URL: http://www.cs.uu.nl/~piet [PGP] Private email: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python suitable for a huge, enterprise size app?

2005-05-23 Thread Paul Rubin
Antoon Pardon <[EMAIL PROTECTED]> writes: > Well nothing. But how do you want to return memory back > to the O.S. when the residual memory use isn't compact > and evenly spread across the address space? All large-scale language implementations with automatic storage management that I know of use c

Re: how to config a comserver in a customize dll?

2005-05-23 Thread Giles Brown
But just to muddy the waters, using py2exe you can package your COM server as a .dll in its own right. Cheers, Giles Brown -- http://mail.python.org/mailman/listinfo/python-list

Re: what is addMethod ?

2005-05-23 Thread F. Petitjean
Le 23 May 2005 02:40:57 -0700, [EMAIL PROTECTED] a écrit : > Hello, > >I saw some python open source project with many > self.addMethod() functions (with 3 paramters) Which "open source project" ? Which class in which module ? > > What does self.addMethod() is good for ? > Find where this m

Re: what is addMethod ?

2005-05-23 Thread Leif K-Brooks
[EMAIL PROTECTED] wrote: >I saw some python open source project with many > self.addMethod() functions (with 3 paramters) > > What does self.addMethod() is good for ? It's not a standard method, so it's good for whatever the particular class you were looking at was using it for. We might be a

Com object questions

2005-05-23 Thread Gijs Korremans
Hi, I'm still figuring out how I can use the win32com for the use of a com object which I think is made in VB First I've created a file with MakePy Then I used the following code to init the com object: import win32com.client Client = win32com.client.Dispatch("ClientModule.Client

Re: Manipulating mailboxes

2005-05-23 Thread Maksim Kasimov
change header information, insert messages into a database, delete/add messages, should not store passwords for all users, ... and any things else you wish to do - if your OS is UNIX - just forward mail messages of some users to your python script (you don't need to write a daemon for this) All

Test

2005-05-23 Thread Test
Its only test. Please klick on a link to test: http://www.surf-tipps.info/fclick/fclick.php?03 Thanks -- http://mail.python.org/mailman/listinfo/python-list

What are OOP's Jargons and Complexities?

2005-05-23 Thread Xah Lee
What are OOP's Jargons and Complexities Xah Lee, 20050128 The Rise of Classes, Methods, Objects In computer languages, often a function definition looks like this: subroutine f (x1, x2, ...) { variables ... do this or that } In advanced languages such as LISP family, it is not uncommon to d

What are OOP's Jargons and Complexities?

2005-05-23 Thread Xah Lee
What are OOP's Jargons and Complexities Xah Lee, 20050128 The Rise of Classes, Methods, Objects In computer languages, often a function definition looks like this: subroutine f (x1, x2, ...) { variables ... do this or that } In advanced languages such as LISP family, it is not uncommon to d

Re: Manipulating mailboxes

2005-05-23 Thread Laszlo Zsolt Nagy
Maksim Kasimov wrote: >change header information, insert messages into a database, delete/add >messages, should not store passwords for all users, ... and any things else >you wish to do - if your OS is UNIX - just forward mail messages of some users >to your python script (you don't need to wr

minidom and DTD

2005-05-23 Thread Laszlo Zsolt Nagy
Hi All, How can I put the thing into an XML created by xml.dom.minidom? Of course I can parse the generated XML file and insert the DOCTYPE string but there must be a standard way to do this... Best, Laci 2.0 -- http://mail.python.org/mailman/listinfo/python-list

Re: what is addMethod ?

2005-05-23 Thread qwejohn
Thnks, I wrongly took it for a standard method; I found where it is defined (it's part of the project); Tnnks. John -- http://mail.python.org/mailman/listinfo/python-list

Strange behaviour of floating point constants in imported modules

2005-05-23 Thread Tomasz Lisowski
Hi, We are distributing our Python application as the short main script (.py file) and a set of modules compiled to the .pyc files. So far, we have always treated .pyc files as portable between platforms, but recently we have discovered an annoying problem. In a module, there is the following

overhead of starting threads

2005-05-23 Thread Will McGugan
Hi, What is the overhead of starting threads in Python? Currently my app starts around 20 threads per second, but I'm considering creating a pool of a fixed number of threads and keeping them fed with data. But only if it would give me a noticeable performance boost. Has anyone got any any exp

Re: What are OOP's Jargons and Complexities?

2005-05-23 Thread Wibble
You're point being...? I'm an old lisp hacker too, and lisp developed objects too, because they're cool and useful (Flavors & CLOS). Java has inner classes also, and nobody misses FLET & LABELS. Limiting responsiblity and enhanced type safety, as well as improved readablity are a win hands down

Access lotus notes using Python

2005-05-23 Thread Sateesh
Hi, Is it possible to access Lotus notes using Python? Can anyone provide me some pointers? Thanks Sateesh -- http://mail.python.org/mailman/listinfo/python-list

Re: Com object questions

2005-05-23 Thread Roger Upole
Does IPADDRESSSTRUCT appear anywhere in the makepy-generated module ? Specifically, there should be a RecordMap dict containing any defined Records and their GUID's. Roger "Gijs Korremans" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, I'm still figuring out how I can

Re: Shift-JIS to UTF-8 conversion

2005-05-23 Thread Jeff Epler
On Fri, May 20, 2005 at 12:16:15AM -0700, [EMAIL PROTECTED] wrote: > Hello, I think the answer is basically correct but shift-jis is not a > standard part of Python 2.3. Ah, I was fooled --- I tested on Python 2.3, but my packager must have included the codecs you went on to mention. Jeff pgp4q

Re: Access lotus notes using Python

2005-05-23 Thread Simon Brunning
On 5/23/05, Sateesh <[EMAIL PROTECTED]> wrote: > Hi, > Is it possible to access Lotus notes using Python? Can anyone provide me > some pointers? http://www.google.com/search?q=python+lotus+notes&btnI=Lucky -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http:

Re: Access lotus notes using Python

2005-05-23 Thread Kartic
The Great 'Sateesh' uttered these words on 5/23/2005 7:14 AM: > Hi, > Is it possible to access Lotus notes using Python? Can anyone provide me > some pointers? > > Thanks > Sateesh > > Yes, you can... You need the win32all distribution installed and you can access Notes using the COM interface

Re: Access lotus notes using Python

2005-05-23 Thread Peter Dembinski
"Sateesh" <[EMAIL PROTECTED]> writes: > Hi, > Is it possible to access Lotus notes using Python? Can anyone > provide me some pointers? jython + LN Java bindings may be usable -- http://www.peter.dembinski.prv.pl -- http://mail.python.org/mailman/listinfo/python-list

Re: Strange behaviour of floating point constants in imported modules

2005-05-23 Thread Jeff Epler
This may be relevant to the problems you're seeing: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=774665&group_id=5470 The short story, as the tracker item paints it, is that setting LC_NUMERIC to anything other than 'C' can give results like the ones you describe---Python itse

Re: Strange behaviour of floating point constants in imported modules

2005-05-23 Thread John Machin
On Mon, 23 May 2005 12:39:00 +0200, Tomasz Lisowski <[EMAIL PROTECTED]> wrote: >Hi, > >We are distributing our Python application as the short main script (.py >file) and a set of modules compiled to the .pyc files. So far, we have >always treated .pyc files as portable between platforms, Ther

Re: Multiple selections in Tix Hlist

2005-05-23 Thread Peter Saffrey
To answer my own question: HList(selectmode="extended") does all the work for you. Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: I want to ask you the most important question of your life. The question is: Are you saved? It is not a question of how good you are, nor if you are a church member, but are you saved? Are you sure you will go to Heaven when you die? The reason some people don't know for sure if they are going to Heaven when they die is because they just don't know. The good news is that you can know for sure you are going to Heaven. May 22, 2005 12:10:55 pm

2005-05-23 Thread Linønut
[EMAIL PROTECTED] poked his little head through the XP firewall and said: > THE MOST IMPORTANT QUESTION OF YOUR LIFE > > This is the most important question of your life. > > The question is: Are you saved? Yeah! I'm saved! I use Linux! Hallelujah! -- When all you have is a hammer, everythin

Re: problem uploading ZIP file tp PyPI

2005-05-23 Thread John Machin
On Mon, 23 May 2005 15:04:27 +1000, richard <[EMAIL PROTECTED]> wrote: >John Machin wrote: >> FYI, there are a few unreconstructed diehards out here who neither run >> on a *x platform nor run bleeding-edge Python straight out of last >> night's CVS. > >I think you need to pull your head in, mate.

ANNOUNCE: twill v0.7, scriptable Web testing

2005-05-23 Thread C. Titus Brown
ANNOUNCING twill v0.7. twill is a simple Web scripting language built on top of Python and mechanize. It's designed for automated testing of Web sites, but it may be useful for anybody who needs to deal with Web sites (with e.g. logins and cookies) in a non-interactive manner. twill is a reimple

Re: Binding the names in a module in a class instance

2005-05-23 Thread Neal Norwitz
Jacob H wrote: > Hello all, > > I would like to be able to take a module full of class instances, > functions, etc and bind all its names to a separate container class in > a different module. I have come up with the following way to do it.. [snip] > I feel uneasy about this method. I foresee bad

Re: minidom and DTD

2005-05-23 Thread "Martin v. Löwis"
Laszlo Zsolt Nagy wrote: > How can I put the > > > > thing into an XML created by xml.dom.minidom? You should put a DocumentType node into your DocumentNode, and pass a qualifiedName of "collection" and a systemId of "recipes.dtd" to the createDocumentType call. Regards, Martin -- http://mail

re[2]: Com object questions

2005-05-23 Thread Gijs Korremans
> Does IPADDRESSSTRUCT appear anywhere in the makepy-generated module ? Specifically, there should be a RecordMap dict containing any defined Records and their GUID's. No it's not in the genereted module, but it is in the COM Browser so I'm sure the struct is in the com object Maybe I can find

Re: minidom and DTD

2005-05-23 Thread Laszlo Zsolt Nagy
Martin v. Löwis wrote: >Laszlo Zsolt Nagy wrote: > > >>How can I put the >> >> >> >>thing into an XML created by xml.dom.minidom? >> >> > >You should put a DocumentType node into your >DocumentNode, and pass a qualifiedName of >"collection" and a systemId of "recipes.dtd" >to the createDocum

Re: first release of PyPy

2005-05-23 Thread Rocco Moretti
Alex Stapleton wrote: > The question still remains, can it run it's self? ;) > I think they try, every once in a while, to self host. The only problem at this stage of the game is the ~2000x speed slowdown. Using that figure, a five second startup time for PyPy on CPython would take about 3 ho

Re: What are OOP's Jargons and Complexities?

2005-05-23 Thread Mike Meyer
"Xah Lee" <[EMAIL PROTECTED]> writes: So now we find out that Xah Lee is as ignorant of other programming languages as he is of Python and Perl. > In advanced languages such as LISP family, it is not uncommon to define > functions inside a function. For example: > subroutine f (x1, x2, ...) { >

detached subprocess

2005-05-23 Thread Robin Becker
After struggling with os.spawnxxx to get a detached process I tried using Pyhton2.4's new subprocess module. I struggled with that as well even when trying to use the creation flags for DETACHED_PROCESS 0x8 and CREATE_NEW_PROCESS_GROUP = 0x200 I am using the following cgi script parent.cgi #!c

Re: blabla

2005-05-23 Thread Peter Maas
Noud Aldenhoven schrieb: > Python rulz and sorry for this spam... news.test is made for testing :) -- --- Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0 E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64') -

Re: Optimise Europython competition

2005-05-23 Thread Jacob Hallen
In article <[EMAIL PROTECTED]>, Carl Friedrich Bolz <[EMAIL PROTECTED]> wrote: >Jacob Hallen wrote: >> 2. A track should be continuous. Each track that is continuous gives you >>10 points. > >What exactly do you mean by "continuous track"? Continuous means that from the time of the first talk

Re: python24.zip

2005-05-23 Thread Scott David Daniels
Martin v. Löwis wrote: > Dieter Maurer wrote: > >>Really? >> >>Is the interpreter unable to call "C" functions ("stat" for example) >>to determine whether an object exists before it puts it on "path". > > What do you mean, "unable to"? It just doesn't. In fact, the interpreter doesn't necessarily

Re: detached subprocess

2005-05-23 Thread Robin Becker
Robin Becker wrote: . > before the child ends its sleep. Of course it may be that it's just the > handles > that are being held. After further tests with procexp it seems that the parent is allowed to die, but its output is held up (perhaps apache is waiting on an eof) until the child die

No encodings after freezing

2005-05-23 Thread mmf
Hi. I have the following script (for example): #!/usr/bin/python text = 'Hallo' text_new = text.encode('utf_8') print text_new The I tried to "freeze" this script with cx_freeze 3.0.1 (command ./FreezePython example.py). Everything worked finde, a binary was created correctly. But everytime I r

Re: SQL Query via python

2005-05-23 Thread Scott David Daniels
Steve Holden wrote: > Jeff Elkins wrote: >>... cursor.execute("SELECT name, month, day ,category, city " >> " FROM bday WHERE %s = %s", (arg1,arg2)) >> No results. However, if I hardcode the WHERE argument with a field name: >>cursor.execute("SELECT name, month, da

Re: None module reference

2005-05-23 Thread Peter Hansen
Stefan Seefeld wrote: > In a python module of mine I import system modules > ('sys', say) and then use them from within some functions. > > However, during program termination I'm calling > one such function and the module reference ('sys') > is 'None' ! Are you running any daemon threads? This

Error sending message [1116860878726.2800.mailserver_papl] from [www.pansegroup.com]

2005-05-23 Thread www.pansegroup.com PostMaster
[<00>] V-POP3bounce: [EMAIL PROTECTED];Error=[550 Error: Invalid Attachment] [<01>] Error sending message [1116860878726.2800.mailserver_papl] from [www.pansegroup.com]. ID: Mail From: Rcpt To: <[EMAIL PROTECTED]> Server: [209.120.245.170] [<02>] The reason of the delivery fail

Re: What are OOP's Jargons and Complexities?

2005-05-23 Thread Jonathan Bartlett
Mike Meyer wrote: > "Xah Lee" <[EMAIL PROTECTED]> writes: > > So now we find out that Xah Lee is as ignorant of other programming > languages as he is of Python and Perl. I think you're misreading some of what is being said. > Nested subroutines date back to Algol, which was first specified in >

Re: SQL Query via python

2005-05-23 Thread Austyn Bontrager
How about: cursor.execute(""" SELECT name, month, day ,category, city FROM bday WHERE %(col_name)s = %%s """ % dict(col_name=arg1), (arg2) ) The "%(col_name)s" will be replaced by normal Python string substitution, while the "%%s" will be quoted by the db

Re: Memory errors with large zip files

2005-05-23 Thread Marcus Lowland
Thank for the detailed reply John! I guess it turned out to be a bit tougher than I originally thought :-) Reading over your links, I think I better not attempt rewriting the zipfile.py program... a little over my head :-). The best solution, from everything I read seems to be calling an unzip

Re: SQL Query via python

2005-05-23 Thread Gerhard Haering
On Mon, May 23, 2005 at 04:12:31PM +, Austyn Bontrager wrote: > How about: > > cursor.execute(""" > SELECT name, month, day ,category, city FROM bday > WHERE %(col_name)s = %%s > """ % dict(col_name=arg1), > (arg2) > ) > > The "%(col_name)s" will be replaced by n

line-by-line output from a subprocess

2005-05-23 Thread Chermside, Michael
I am using the subprocess module to invoke a command-line utility and process the output. However, I would like to process the output line-by-line as it is generated rather than running the subprocess to completion and THEN processing the results. So, for instance, I'd like to write code like this

concurrent access to object file

2005-05-23 Thread Frank Abel
Hi all! I will build a HTTPServer and dislike that one request is handled at a time (synchronous). So I write: class MyHTTPServer(SocketServer.ThreadingMixIn, BaseHTTPServer.HTTPServer): For log the request and error I create a file and atteched it to the server instance. Then t

Re: first release of PyPy

2005-05-23 Thread Carl Friedrich Bolz
Rocco Moretti wrote: > Alex Stapleton wrote: > >>The question still remains, can it run it's self? ;) >> This allready worked in the past, though it doesn't at the moment. > > > I think they try, every once in a while, to self host. The only problem > at this stage of the game is the ~2000x s

execution error

2005-05-23 Thread Ximo
Hello, I'm programing an advanced calculator, and I have many problems with the execution errors, specually with the division by 0. And my question is how can show the execution error whitout exit of the program, showing it in the error output as >>2+2 >>4 >>3*4 >>12 >>6/0 >>"Error: Division pe

Terminating a thread from the parent

2005-05-23 Thread DE
Hello, I have an app with embedded Python. Python scripts create their own threads and I need to terminate these threads at the point where the user wants to leave the application. I use threading.Thread as base classes. I have tried to use call the join method of the python thread objects from C

Re: execution error

2005-05-23 Thread Paul Rubin
"Ximo" <[EMAIL PROTECTED]> writes: > And my question is how can show the execution error whitout exit of the > program, showing it in the error output as... > >>6/0 > >>"Error: Division per 0" Trap the ArithmeticError exception and go by the name of the exception class. See the language ref manu

Re: execution error

2005-05-23 Thread Skip Montanaro
Ximo> And my question is how can show the execution error whitout exit Ximo> of the program, showing it in the error output as You need to catch ZeroDivisionError. Here's a trivial example: >>> try: ... 6/0 ... except ZeroDivisionError: ... print "whoops! divide by z

Re: Running a python program during idle time only

2005-05-23 Thread los
Thanks for all the replies. I did try using nice under windows. I created a java program that would just loop and print numbers on the screen. Even when I ran that simple program with nice, (lets call it program A) as soon as I started the program the cpu went all the way to 100% usage. Then wh

Re: python24.zip

2005-05-23 Thread "Martin v. Löwis"
Scott David Daniels wrote: >>> Is the interpreter unable to call "C" functions ("stat" for example) >>> to determine whether an object exists before it puts it on "path". >> >> >> What do you mean, "unable to"? It just doesn't. > > In fact, the interpreter doesn't necessarily know when it is > aff

Re: No encodings after freezing

2005-05-23 Thread "Martin v. Löwis"
mmf wrote: > text_new = text.encode('utf_8') [...] > But everytime I run this binary the utf-8 encoding cannot be found. > (Also any other encoding like iso8859_15 cannot be found...) > > What am I doing wrong? Codecs are modules (in the encodings package). So if the codecs you need aren't frozen

Re: What are OOP's Jargons and Complexities?

2005-05-23 Thread Paul McGuire
Is this supposed to be some sort of wake-up call or call-to-arms to all the CS lemmings who have been hoodwinked by Sun into the realm of jargon over substance? Please do some informed research and homework before spouting off with such blather. Sun Microsystems is hardly The Great Satan of OOP,

Re: execution error

2005-05-23 Thread Paul McNett
Ximo wrote: > Hello, I'm programing an advanced calculator, and I have many problems with > the execution errors, specually with the division by 0. > > And my question is how can show the execution error whitout exit of the > program, showing it in the error output as Wrap the math in a try/ex

MUD Client and Python Plugin Framework

2005-05-23 Thread Discipulus
Hey, I'm contemplating starting a MUD client in Python, and I would like to make it so that people can write their own plugins, but I need ideas on the framework. Any suggestions? -- http://mail.python.org/mailman/listinfo/python-list

Problems installing SOAPpy.

2005-05-23 Thread Amitpython5
Hello,     I'm having some problems installing SOAPpy module on my host, which has python 2.1 First when it attempts it import logging, it complains that classmethod is not defined. When I commented out (import logging), I got a different errror, about missing module thread. Specifically: Tra

Re: MUD Client and Python Plugin Framework

2005-05-23 Thread Jack Diederich
On Mon, May 23, 2005 at 10:51:47AM -0700, Discipulus wrote: > Hey, > I'm contemplating starting a MUD client in Python, and I would like to > make it so that people can write their own plugins, but I need ideas on > the framework. Any suggestions? Use Lyntin? (http://lyntin.sourceforge.net/) An ex

Re: What are OOP's Jargons and Complexities?

2005-05-23 Thread Thomas G. Marshall
Paul McGuire coughed up: > Is this supposed to be some sort of wake-up call or call-to-arms to > all the CS lemmings who have been hoodwinked by Sun into the realm of > jargon over substance? ...[rip]... > You certainly seem to have a lot of energy and enthusiasm for these > topics. It would be

Re: Running a python program during idle time only

2005-05-23 Thread James Carroll
I think you can keep your sleep commands in your program to keep it from hogging the cpu even when you are running it as nice. You know, even more important than cpu load (since your indexer is accessing the hard drive, is hard drive access..) You can monitor the bytes / second going to the hard

Fwd: Running a python program during idle time only

2005-05-23 Thread James Carroll
I think you can keep your sleep commands in your program to keep it from hogging the cpu even when you are running it as nice. You know, even more important than cpu load (since your indexer is accessing the hard drive, is hard drive access..) You can monitor the bytes / second going to the hard

Re: python24.zip

2005-05-23 Thread Robin Becker
Martin v. Löwis wrote: > > > Now I remember what makes this stuff really difficult: PEP 302 > introduces path hooks (sys.path_hooks), allowing imports from > other sources than files. So the items on sys.path don't have > to be directory or file names at all, and importing from them > may st

how do you return an exit code with out exiting

2005-05-23 Thread Matthew Thorley
I wrote a simple python program that scrapes a web page every 30 secons and dumps the result in a data base. I want to use my linux distros build in init tools to run the script in the back ground as a daemon. The problem is when I call the daemon script to background the program I wrote it just ha

Re: Access lotus notes using Python

2005-05-23 Thread Michael Ströder
Kartic wrote: > The Great 'Sateesh' uttered these words on 5/23/2005 7:14 AM: > >> Is it possible to access Lotus notes using Python? Can anyone provide me >> some pointers? > > Yes, you can... You need the win32all distribution installed and you can > access Notes using the COM interface (win32c

Re: how do you return an exit code with out exiting

2005-05-23 Thread Grant Edwards
On 2005-05-23, Matthew Thorley <[EMAIL PROTECTED]> wrote: > I wrote a simple python program that scrapes a web page every > 30 secons and dumps the result in a data base. I want to use > my linux distros build in init tools to run the script in the > back ground as a daemon. The problem is when I

Re: What are OOP's Jargons and Complexities?

2005-05-23 Thread Peter Dembinski
"Xah Lee" <[EMAIL PROTECTED]> writes: [snap] put it on your blog -- http://www.peter.dembinski.prv.pl -- http://mail.python.org/mailman/listinfo/python-list

Re: Terminating a thread from the parent

2005-05-23 Thread Peter Hansen
DE wrote: > I have an app with embedded Python. Python scripts create their own > threads and I need to terminate these threads at the point where the > user wants to leave the application. I use threading.Thread as base > classes. > > I have tried to use call the join method of the python thread

Re: first release of PyPy

2005-05-23 Thread Shane Hathaway
Mike Meyer wrote: > Basically, there's a *lot* of history in programming languages. I'd > hate to see someone think that we went straight from assembler to C, > or that people didn't understand the value of dynamic languages very > early. Yes, although I wasn't following historical events; I was f

Re: ANNOUNCE: twill v0.7, scriptable Web testing

2005-05-23 Thread Alex Stapleton
This is exactly the sort of thing ive been trying to avoid implementing my self for ages :) I will take it for a spin and see how it behaves, looks great though. On 23 May 2005, at 05:07, C. Titus Brown wrote: > ANNOUNCING twill v0.7. > > twill is a simple Web scripting language built on top

Re: how do you return an exit code with out exiting

2005-05-23 Thread Matthew Thorley
thanks thats perfect! Grant Edwards wrote: > On 2005-05-23, Matthew Thorley <[EMAIL PROTECTED]> wrote: > > >>I wrote a simple python program that scrapes a web page every >>30 secons and dumps the result in a data base. I want to use >>my linux distros build in init tools to run the script in th

Re: what is addMethod ?

2005-05-23 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > Thnks, > I wrongly took it for a standard method; > I found where it is defined (it's part of the project); Then it would be nice to fully answer your question, so everyone may know what's this method and what it does (and what project it comes from). -- http://ma

Re: blabla

2005-05-23 Thread Jwaixs
Peter Maas wrote: > Noud Aldenhoven schrieb: >> Python rulz and sorry for this spam... > > news.test is made for testing :) > I really should appoligize for this spam, I though I couldn't post it but actually it did. I was trying to get Pan running, but I couldn't find a place where I could put m

Re: Newbie python design question

2005-05-23 Thread Bruno Desthuilliers
Michael a écrit : > Hi, > I'm trying to write a script to parse a .cpp file and begin to create a > 'translational unit'. > To do this i need to: > > Go through the file and remove all 'C' comments as > /* Comment 1*/ > (can be on multiple lines) > > Go through and remove all 'C++' comments, anyt

no win32com.client

2005-05-23 Thread plsullivan
In 2.4.1 the following is generated from a script that ran in 2.2: import sys, string, os, win32com.client ImportError: No module named win32com.client thanks for any input, Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: Memory errors with large zip files

2005-05-23 Thread John Machin
On 23 May 2005 09:28:15 -0700, "Marcus Lowland" <[EMAIL PROTECTED]> wrote: >Thank for the detailed reply John! I guess it turned out to be a bit >tougher than I originally thought :-) > >Reading over your links, I think I better not attempt rewriting the >zipfile.py program... a little over my

Re: no win32com.client

2005-05-23 Thread Matt
plsullivan wrote: > In 2.4.1 the following is generated from a script that ran in 2.2: > > import sys, string, os, win32com.client > ImportError: No module named win32com.client > > thanks for any input, > Phil Have you downloaded the win32com extensions? http://starship.python.net/crew/mhammond

Problem with DispatchWithEvents

2005-05-23 Thread ccahoon
Traceback (most recent call last): File "windowedfax.py", line 223, in OnClick self.iexplore = DispatchWithEvents("InternetExplorer.Application", eventHandling) File "C:\Python24\Lib\site-packages\win32com\client\__init__.py", line 268, in DispatchWithEvents user_event_class.__init__(in

Re: What are OOP's Jargons and Complexities?

2005-05-23 Thread Erik Max Francis
Jonathan Bartlett wrote: > I think you're misreading some of what is being said. I think you're giving the author too much credit. -- Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/ San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis Love is the true price of lov

Re: line-by-line output from a subprocess

2005-05-23 Thread Simon Percivall
Okay, so the reason what you're trying to do doesn't work is that the readahead buffer used by the file iterator is 8192 bytes, which clearly might be too much. It also might be because the output from the application you're running is buffered, so you might have to do something about that as well.

Re: no win32com.client

2005-05-23 Thread Do Re Mi chel La Si Do
Hi ! Or : http://sourceforge.net/project/showfiles.php?group_id=78018 @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: first release of PyPy

2005-05-23 Thread Kay Schluehr
Carl Friedrich Bolz wrote: > Rocco Moretti wrote: > > Alex Stapleton wrote: > > > >>The question still remains, can it run it's self? ;) > >> > > This allready worked in the past, though it doesn't at the moment. > > > > > > > I think they try, every once in a while, to self host. The only problem

Re: Access lotus notes using Python

2005-05-23 Thread Kartic
The Great 'Michael Ströder' uttered these words on 5/23/2005 2:43 PM: > Kartic wrote: > >>The Great 'Sateesh' uttered these words on 5/23/2005 7:14 AM: >> >> >>>Is it possible to access Lotus notes using Python? Can anyone provide me >>>some pointers? >> >>Yes, you can... You need the win32all dis

Re: overhead of starting threads

2005-05-23 Thread Simon Percivall
How much you gain by starting threads is also determined by what you're doing in those threads. Remember (or learn): In CPython only one thread at a time can execute python code, so depending on your task threading might gain you little. If you're doing I/O or calling functions written in C (and if

Re: python24.zip

2005-05-23 Thread "Martin v. Löwis"
Robin Becker wrote: > ie if we have N importers and F leading failure syspath entries before > the correct one is found do we get order N*F failed stats/opens etc etc? No. Each path hook is supposed to provide a decision as to whether this is a useful item on sys.path only once; the importer objec

Re: line-by-line output from a subprocess

2005-05-23 Thread Jp Calderone
On 23 May 2005 13:22:04 -0700, Simon Percivall <[EMAIL PROTECTED]> wrote: >Okay, so the reason what you're trying to do doesn't work is that the >readahead buffer used by the file iterator is 8192 bytes, which clearly >might be too much. It also might be because the output from the >application you

  1   2   >