[ANN] Release 0.52 of Task Coach

2005-11-30 Thread Frank Niessink
Hi all, I'm pleased to announce release 0.52 of Task Coach. New in this release: Bugs fixed: * For completed tasks, the number of days left for a task is now the number of days between the completion date and the due date. This prevents that the number of days left of completed tasks keeps

ANNOUNCE: Last chance to register for OSDC 2005

2005-11-30 Thread Simon Taylor
OSDC 2005 is almost upon us. If you haven't already registered, then you have until 4pm this Friday to do so. See http://www.osdc.com.au/registration/ Don't miss out on this unique and exciting Australian Open Source event! - Simon Taylor --

ANN: DecInt 0.3 - Arithmetic for very large decimal integers

2005-11-30 Thread casevh
DecInt is a class that support arithmetic on very large decimal integers. For example, it can calculate the decimal form of the 42nd Mersenne prime, all 7,816,230 digits, in less than 21 seconds. And less than 6 seconds if gmpy 1.01 is available. This version is significantly faster than the

Re: Computer Language Shootout

2005-11-30 Thread malv
Hi bearophileH, Thank you for the code example. Could you post some more information about ShedSkink? malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Computer Language Shootout

2005-11-30 Thread igouy
[EMAIL PROTECTED] wrote: Bengt Richter wrote: On 29 Nov 2005 14:08:12 -0800, [EMAIL PROTECTED] wrote: We don't scrape programs from news-groups, if you'd like the program to be shown on the shootout then please attach the source code to a tracker item. You asked for something, got a

[Announce] boost.date_time library Python bindings

2005-11-30 Thread Roman Yakovenko
Hi. I am pleased to announce a new Python package - date_time. date_time package is a Python bindings for the boost.date_time C++ library. boost.date_time is a cross-platform and open source C++ library which is designed to provide a basis for performing efficient time calculations. The

Re: Nested loop

2005-11-30 Thread Juho Schultz
viewcharts wrote: I am reading two text files comparing the values in one to the other, this requires two loops. The problem is that when the inner loop is finished, it never goes back into the loop. Any suggestions? for refSymbol in symbols.readlines(): for lookupSymbol in

Re: Nested loop

2005-11-30 Thread bonono
viewcharts wrote: I am reading two text files comparing the values in one to the other, this requires two loops. The problem is that when the inner loop is finished, it never goes back into the loop. Any suggestions? for refSymbol in symbols.readlines(): for lookupSymbol in

Re: Death to tuples!

2005-11-30 Thread Duncan Booth
Mike Meyer wrote: An object is compatible with an exception if it is either the object that identifies the exception, or (for exceptions that are classes) it is a base class of the exception, or it is a tuple containing an item that is compatible with the exception. Requiring a tuple here

Re: Why I need to declare import as global in function

2005-11-30 Thread didier . doussaud
I think I understand my problem, but first the sample code extracted to my project. Rq : it's an automatic run of unitary test, the names of unitary test are parameter of main program imported file via the execfile function (an usage of import instead may be a solution) : file run.py :

Re: newbie question concerning formatted output

2005-11-30 Thread Thomas Liesner
Hi all, thanks for all your answers. Is see that there are - as ususal - several ways to accomplish this. I decided to go for the way Frederik suggested, because it looked as the most straight forward method for that kind of data. Thanks again, ./Tom --

Re: Why I need to declare import as global in function

2005-11-30 Thread didier . doussaud
lot's of solutions proposed in the discussion works fine : file run.py : def run_ut( test ) : # to have the problem the execfile MUST be in a function # execfile( test ) # ERROR execfile( test, globals() ) # OK exec import ut_00 # OK exec file(test).read() #

Re: Why I need to declare import as global in function

2005-11-30 Thread didier . doussaud
yes I have imported math in the file I want to use it. But the imported module math is not visible in function without a global instruction. But the solutions already proposed seems to work file for my sample program. I will try on my project soon :) --

Re: an intriguing wifi http server mystery...please help

2005-11-30 Thread Timothy Smith
Paul McNett wrote: [EMAIL PROTECTED] wrote: 1) Laptop wired, client Desktop wired, server GREAT! webpage served in 2 seconds 2) Laptop wired, server Deskop wired, client GREAT! webpage served in 2 seconds 3) Laptop wireless, client Desktop wireless, server GREAT! webpage served in 2 seconds

Re: Why I need to declare import as global in function

2005-11-30 Thread didier . doussaud
sample and solution posted in another branch of this thread -- http://mail.python.org/mailman/listinfo/python-list

Debugging functionality for embedded Python

2005-11-30 Thread Thomas Korimort
Hi, i have embedded the Python 2.3 engine into a C++ framework. Now i want to add to the basic editing features that are provided by this C++ framework also some debug functionality. Until now i did not find any documentation on how to do this. The Python C/API manual does not say much about

Re: unicode speed

2005-11-30 Thread David Siroky
V Tue, 29 Nov 2005 10:14:26 +, Neil Hodgson napsal(a): David Siroky: output = '' I suspect you really want output = u'' here. for c in line: if not unicodedata.combining(c): output += c This is creating as many as 5 new string objects of

Re: Why I need to declare import as global in function

2005-11-30 Thread Duncan Booth
[EMAIL PROTECTED] wrote: I think I understand my problem, but first the sample code extracted to my project. Rq : it's an automatic run of unitary test, the names of unitary test are parameter of main program imported file via the execfile function (an usage of import instead may be a

sha1,256,512 on files

2005-11-30 Thread [EMAIL PROTECTED]
Hi ! I have a problem in Windows. I need to get the filelist in HDD-s, with sha-N value for every file (to see what changed in the past). 1. I see that Python supports the sha-1. But I need to make sha value in big files to (swap file, iso-s, etc.). Possible that file size more than 2 GB, so

Debugging of Python code in embedded interpreter

2005-11-30 Thread Thomas Korimort
Hi! I have embedded a Python interpreter into a C++ framework. When running some Python code in the interpreter, how can i get a traceback with line number file..., when an exception occurs? Greetings, Thomas Korimort. -- http://mail.python.org/mailman/listinfo/python-list

Re: Death to tuples!

2005-11-30 Thread Antoon Pardon
On 2005-11-29, Duncan Booth [EMAIL PROTECTED] wrote: Antoon Pardon wrote: The question is, should we consider this a problem. Personnaly, I see this as not very different from functions with a list as a default argument. In that case we often have a list used as a constant too. Yet python

Re: sha1,256,512 on files

2005-11-30 Thread Paul Rubin
[EMAIL PROTECTED] [EMAIL PROTECTED] writes: I see that Python supports the sha-1. But I need to make sha value in big files to (swap file, iso-s, etc.). Possible that file size more than 2 GB, so I cannot read as string... How to get the sha value of a file ? Use the sha.update method.

Re: General question about Python design goals

2005-11-30 Thread Antoon Pardon
On 2005-11-29, Bengt Richter [EMAIL PROTECTED] wrote: On 29 Nov 2005 08:27:43 GMT, Antoon Pardon [EMAIL PROTECTED] wrote: On 2005-11-28, Duncan Booth [EMAIL PROTECTED] wrote: Antoon Pardon wrote: No I gave an example, you would implement differently. But even if you think my example is

Newbie question: Getting unstaisfied error while installing scipy

2005-11-30 Thread Kaizer
Hello! I'm trying to install scipy_core_0.6.1-1.i586 on my Mandrake Linux (via RPM) 10.2 machine. I double click on the rpm icon but it gives the following error... scipy_core_0.6.1-1.i586 failed due to unstaisfied libg2c.so.0 What do i do?? I know this query is not directly related to Python..

Winsound doesn't play whole sound?

2005-11-30 Thread Dieter Vanderelst
Hello, I'm having a problem with playing WAV files using Winsound. If I use winsound to play a certain WAV files only the first few seconds of the file get played. I think this comes because these files contain some parts of silence. There winsound seems the stop playing the files (windows

Re: Death to tuples!

2005-11-30 Thread Duncan Booth
Antoon Pardon wrote: But lets just consider. Your above code could simply be rewritten as follows. res = list() for i in range(10): res.append(i*i) I don't understand your point here? You want list() to create a new list and [] to return the same (initially empty) list

Re: Python as Guido Intended

2005-11-30 Thread Antoon Pardon
On 2005-11-29, Mike Meyer [EMAIL PROTECTED] wrote: Antoon Pardon [EMAIL PROTECTED] writes: You see, you can make languages more powerful by *removing* things from it. You cast this in way to general terms. The logic conclusion from this statements is that the most powerfull language is the

How could I ask Thread B to call B().Method() from inside Thread A's run?

2005-11-30 Thread could ildg
I have 2 thead instances, A and B, In A's run method, if I call B.Method(), it will be executed in thead A, but I want B.Method() to be executed in B's thread. That's to say, I want to tell Thead B to do B's stuff in B's thread, kinda like PostMessage in win32. Can I do it in python? How? Thank

Re: python speed

2005-11-30 Thread Frithiof Andreas Jensen
Krystian [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi are there any future perspectives for Python to be as fast as java? Sure, if/when Python becomes as water-logged with obtruse OO-layers as Java is now. Python is faster than Java. Because Python per design generally is a

Re: [OT] Oracle 9i client for Linux

2005-11-30 Thread Bernard Delmée
It is version 10, would it be compatible with 9i servers? Yes. Indeed I use cx_oracle but on M$ yet. Want to move to Linux. If you need to compile yourself, the instant client headers don't live where a full-blown Oracle install would put them and you may need to slightly alter setup.py.

Re: python speed

2005-11-30 Thread David Rasmussen
Frithiof Andreas Jensen wrote: From the speed requirement: Is that correspondance chess by any chance?? Regular chess at tournament time controls requires speed too. Any pure Python chess program would lose badly to the best C/C++ programs out there now. I would also like to see Half Life

Re: After migrating from debian to ubuntu, tkinter hello world doesn't work

2005-11-30 Thread mortuno
Mandus ha escrito: works just fine on my ubunty 5.10. Make sure you have the python2.4-tk package installed (sudo apt-get install python2.4-tk). yes, i got it. It's a fresh instalation from a cd in a brand new laptop. I tried to reinstall python2.4-tk and many other packeges :-( There are

Re: After migrating from debian to ubuntu, tkinter hello world doesn't work

2005-11-30 Thread Wade Leftwich
[EMAIL PROTECTED] wrote: Hi My tkinter apps worked fine in debian linux (woody and sarge) I moved to ubuntu 5.10 I follow the 'hello world' test as seen in http://wiki.python.org/moin/TkInter Ubuntu uses X.org. Did your Debian distro use xfree86? --

Re: How could I ask Thread B to call B().Method() from inside Thread A's run?

2005-11-30 Thread Jeremy Jones
could ildg wrote: I have 2 thead instances, A and B, In A's run method, if I call B.Method(), it will be executed in thead A, but I want B.Method() to be executed in B's thread. That's to say, I want to tell Thead B to do B's stuff in B's thread, kinda like PostMessage in win32. Can I do

Re: python speed

2005-11-30 Thread Krystian
I would also like to see Half Life 2 in pure Python. or even quake1, do you think it could have any chances to run smoothly? or maybe demoscene productions... -- http://mail.python.org/mailman/listinfo/python-list

XML processing

2005-11-30 Thread Doru-Catalin Togea
Hi! I need to do some XML programming, and I have installed the PyXML package. However I read some stuff on the web that using the modules in PyXML is slow and not elegant and it uses up lots of memory, and I don't know what else. Is the current implementation of PyXML legging behind in

Re: python speed

2005-11-30 Thread Harald Armin Massa
Dr. Armin Rigo has some mathematical proof, that High Level Languages like esp. Python are able to be faster than low level code like Fortran, C or assembly. I am not wise enough to understand that proof. Maybe I understood those papers totally wrong and he was saying something totally

Re: Help!!! On Tkinter Menu problem!!!

2005-11-30 Thread Steve Holden
Xuening wrote: I have a problem about menu by using Tkinter. I want to make a dynamic menu. That is when I create a new view/window, one menuitem will be added to the menu. and when I kill a window, the correponding menuitem will be deleted. I write a simple code and I can add menuitem now.

Re: python speed

2005-11-30 Thread David Rasmussen
Harald Armin Massa wrote: Dr. Armin Rigo has some mathematical proof, that High Level Languages like esp. Python are able to be faster than low level code like Fortran, C or assembly. Faster than assembly? LOL... :) /David -- http://mail.python.org/mailman/listinfo/python-list

ANN: DecInt 0.3 - Arithmetic for very large decimal integers

2005-11-30 Thread casevh
DecInt is a class that support arithmetic on very large decimal integers. For example, it can calculate the decimal form of the 42nd Mersenne prime, all 7,816,230 digits, in less than 21 seconds. And less than 6 seconds if gmpy 1.01 is available. This version is significantly faster than the

Re: python number handling - tiny encryption algorithm

2005-11-30 Thread Carl Friedrich Bolz
Hi! Kinsley Turner wrote: [snip] def teaDecipher(input,key): y = input[0] z = input[1] n = 32 sum = 0xC6EF3720 delta=0x9E3779B9 while (n 0): n -= 1 z -= (y 4 ^ y 5) + y ^ sum + key[sum11 3]; sum -= delta; y -= (z 4 ^ z

Re: Winsound doesn't play whole sound?

2005-11-30 Thread Graham Fawcett
Dieter Vanderelst wrote: Hello, I'm having a problem with playing WAV files using Winsound. If I use winsound to play a certain WAV files only the first few seconds of the file get played. I think this comes because these files contain some parts of silence. There winsound seems the stop

Re: Computer Language Shootout

2005-11-30 Thread Fredrik Lundh
malv wrote: Could you post some more information about ShedSkink? http://sourceforge.net/projects/shedskin/ /F -- http://mail.python.org/mailman/listinfo/python-list

Re: Death to tuples!

2005-11-30 Thread Antoon Pardon
On 2005-11-30, Duncan Booth [EMAIL PROTECTED] wrote: Antoon Pardon wrote: But lets just consider. Your above code could simply be rewritten as follows. res = list() for i in range(10): res.append(i*i) I don't understand your point here? You want list() to create a new list

Re: How to get started in GUI Programming?

2005-11-30 Thread Rod Furey
[EMAIL PROTECTED] wrote: Can anyone offer any suggestions as to the least painful way forwards? I learnt more in half-an-hour with these lectures than days reading the book and I've been writing programs of all sorts for more than 25 years.

Cropping sound files

2005-11-30 Thread Dieter Vanderelst
Hello, My previous problem with Winsound has boiled down to a new problem. I have some soundfiles (wav) of which I only need the n first seconds. So, I thought I could crop them using the standard wave-module: This is some of my code: #I open the wav file and I read the first n frames

Re: Multiple versions

2005-11-30 Thread Me
This will work fine for me Tim, thank you for your time! Tim Golden [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] (Just to keep things readable, I've reordered the posts top-to-bottom chronologically. And Me is the cognomen of the original poster, not simply a redundant personal

Re: Death to tuples!

2005-11-30 Thread Duncan Booth
Antoon Pardon wrote: The left one is equivalent to: __anon = [] def Foo(l): ... Foo(__anon) Foo(__anon) So, why shouldn't: res = [] for i in range(10): res.append(i*i) be equivallent to: __anon = list() ... res = __anon for i in range(10):

Re: Death to tuples!

2005-11-30 Thread Christophe
Antoon Pardon a écrit : On 2005-11-30, Duncan Booth [EMAIL PROTECTED] wrote: Antoon Pardon wrote: But lets just consider. Your above code could simply be rewritten as follows. res = list() for i in range(10): res.append(i*i) I don't understand your point here? You want list() to

Re: Nested loop

2005-11-30 Thread Steve Holden
[EMAIL PROTECTED] wrote: viewcharts wrote: I am reading two text files comparing the values in one to the other, this requires two loops. The problem is that when the inner loop is finished, it never goes back into the loop. Any suggestions? for refSymbol in symbols.readlines(): for

Re: improving pypi / setuptools

2005-11-30 Thread Fredrik Lundh
Alia Khouri wrote: What ideas do people out there have for making the installation of python module more reliable? judging from the support load it's causing me these days, setuptools is a piece of utter crap. if you want to make things reliable, don't use it. (if the various rails cloners

Re: Python-list Digest, Vol 14, Issue 147

2005-11-30 Thread John Tiedeman
On Wed, 10 Nov 2004 19:55:54 +0100 (CET) [EMAIL PROTECTED] wrote: Send Python-list mailing list submissions to python-list@python.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.python.org/mailman/listinfo/python-list or, via email, send a

Re: python speed

2005-11-30 Thread Steven Bethard
David Rasmussen wrote: Harald Armin Massa wrote: Dr. Armin Rigo has some mathematical proof, that High Level Languages like esp. Python are able to be faster than low level code like Fortran, C or assembly. Faster than assembly? LOL... :) I think the claim goes something along the lines

Re: Help!!! On Tkinter Menu problem!!!

2005-11-30 Thread Martin Franklin
Xuening wrote: I have a problem about menu by using Tkinter. I want to make a dynamic menu. That is when I create a new view/window, one menuitem will be added to the menu. and when I kill a window, the correponding menuitem will be deleted. I write a simple code and I can add menuitem now.

Re: XML and namespaces

2005-11-30 Thread uche . ogbuji
Wilfredo Sánchez Vega: I'm having some issues around namespace handling with XML: document = xml.dom.minidom.Document() element = document.createElementNS(DAV:, href) document.appendChild(element) DOM Element: href at 0x1443e68 document.toxml()

Re: Computer Language Shootout

2005-11-30 Thread bearophileHUGS
malv: Hi bearophileH, bearophile is enough :-) Could you post some more information about ShedSkink? ShedSkin (SS) is a Python - C++ compiler (or translator) written in Python, created by Mark Dufour. Its development was initially financed by the summer of code by Google. It contains some

Re: CGI question

2005-11-30 Thread Fredrik Lundh
Dan Stromberg wrote: What's the best way of converting this: 'hide\\?http://www.dedasys.com/articles/programming_language_economics.html\x012005-07-20 14:48' ...to something easily usable in a python CGI script? easily usable for what purpose? if you want to extract the URL

Re: Which License Should I Use?

2005-11-30 Thread Paul Boddie
Paul Rubin wrote: That is the guy who claims it is impossible to release anything into the public domain, other than by dying and then waiting 70 years. Is that an indirect reference to the following article? http://www.linuxjournal.com/article/6225 Paul --

Re: python number handling - tiny encryption algorithm

2005-11-30 Thread Scott David Daniels
Kinsley Turner wrote: I'm getting a bit out of my depth porting the 'tiny encryption algorithm' from C to python In my version, I end up with hugely long integers, which have obviously not be constrained into the 4-byte unsigned longs that TEA is expecting. ... def

Distutils postinstall script: useless?

2005-11-30 Thread Mardy
Hi, the bdist_wininst command of distutils allows me to specify a script to be executed at the end of the installation. That's great, but how can I know the installation path from inside the script? I've already tried os.getcwd(), but it just return the directory where the setup was started.

Re: XML and namespaces

2005-11-30 Thread Roberto De Almeida
I've found the same bug. This is what I've been doing: from xml.dom.minidom import Document try: from xml.dom.ext import PrettyPrint except ImportError: PrettyPrint = None doc = Document() ... if PrettyPrint is not None: PrettyPrint(doc,

Re: Computer Language Shootout

2005-11-30 Thread igouy
[EMAIL PROTECTED] wrote: This is a direct translation of the D code, maybe it's not the faster Python implementation, and surely it's not the shorter one. But Psyco makes it much faster (Psyco likes low level style code). And if you contributed the program like this

Re: Computer Language Shootout

2005-11-30 Thread Fredrik Lundh
Bengt Richter wrote: That's not just blunt and concise, it looks like the modus operandi of a typical volunteer/employee-exploiter (or perhaps spoiled brat, the typical precursor to the former). careful. his faq requires you to be nice. /F --

Re: python number handling - tiny encryption algorithm

2005-11-30 Thread Bernhard Mulder
One systematic, if maybe clumsy way, is to mimic the C arithmetic operations more closely in Python. If you do, for example, a left shift in C, the result is always returned in a certain precision, 64 bits in the example below. In python, no bits are lost, so you have to force the result into

Re: Python as Guido Intended

2005-11-30 Thread Dave Hansen
On 30 Nov 2005 10:57:04 GMT in comp.lang.python, Antoon Pardon [EMAIL PROTECTED] wrote: On 2005-11-29, Mike Meyer [EMAIL PROTECTED] wrote: Antoon Pardon [EMAIL PROTECTED] writes: You see, you can make languages more powerful by *removing* things from it. You cast this in way to general terms.

Re: Nested loop

2005-11-30 Thread Scott David Daniels
Steve Holden wrote: [EMAIL PROTECTED] wrote: viewcharts wrote: I am reading two text files comparing the values in one to the other, this requires two loops. The problem is that when the inner loop is finished, it never goes back into the loop. Any suggestions? for refSymbol in

pyparsing and LaTeX?

2005-11-30 Thread Tim Arnold
Anyone parsing simple LaTeX constructs with pyparsing? I'm playing around with it (and looking at John Hunter's matplotlib stuff), but I thought I'd ask here if anyone had other TeX/LaTeX examples. thanks, --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

Re: Debugging of Python code in embedded interpreter

2005-11-30 Thread Scott David Daniels
Thomas Korimort wrote: Hi! I have embedded a Python interpreter into a C++ framework. When running some Python code in the interpreter, how can i get a traceback with line number file..., when an exception occurs? Greetings, Thomas Korimort. Google for python traceback, there seems to

Re: python speed

2005-11-30 Thread Paul Boddie
Steven Bethard wrote: David Rasmussen wrote: Faster than assembly? LOL... :) Faster than physics? ;-) I think the claim goes something along the lines of assembly is so hard to get right that if you can automatically generate it from a HLL, not only will it be more likely to be correct, it

Re: python speed

2005-11-30 Thread Kay Schluehr
Harald Armin Massa wrote: Dr. Armin Rigo has some mathematical proof, that High Level Languages like esp. Python are able to be faster than low level code like Fortran, C or assembly. I am not wise enough to understand that proof. Maybe I understood those papers totally wrong and he was

Re: python speed

2005-11-30 Thread Dave Brueck
Steven Bethard wrote: David Rasmussen wrote: Harald Armin Massa wrote: Dr. Armin Rigo has some mathematical proof, that High Level Languages like esp. Python are able to be faster than low level code like Fortran, C or assembly. Faster than assembly? LOL... :) I think the claim goes

UnicodeDecodeError

2005-11-30 Thread ash
hi, one of the modules in my programs stopped wroking after i upgraded from python 2.3 to 2.4. I also changed my wxPython to unicode supported one during the process. what the module essentially does is search for a stirng pattern form a list of strings. this is the function: def srchqu(self):

Re: Nested loop

2005-11-30 Thread Micah Elliott
On Nov 29, viewcharts wrote: I am reading two text files comparing the values in one to the other, this requires two loops. Or you could have a look at difflib. http://docs.python.org/lib/differ-examples.html -- _ _ ___ |V|icah |- lliott [EMAIL PROTECTED]

Re: python speed

2005-11-30 Thread Harald Armin Massa
Faster than assembly? LOL... :) why not? Of course, a simple script like copy 200 bytes from left to right can be handoptimized in assembler and run at optimum speed. Maybe there is even a special processor command to do that. I learned that there was one generation of CPUs which had effectively

Re: import Excel csv - files

2005-11-30 Thread Micah Elliott
On Nov 30, Jürgen Kemeter wrote: My actual Problem: The Excel workbook contains several spreadsheets. These are linked through Hyperlinks, and contain several cell comments. How can I export these comments and Hyperlinks using Python? Are you just wanting read a .xls file with

Re: import Excel csv - files

2005-11-30 Thread Larry Bates
You should actually explain what you mean by export. Excel has a Save As HTML that would save everything out to HTML or you can do Save As .CSV. Hard to tell what you want. I suspect that to get to the cell comments you will need to go through COM interface to Excel. -Larry Bates Micah

Automate decryption using GnuPGInterface

2005-11-30 Thread George
Hi, Does anyone have any experience with GnuPGInterface? I'm having a problem with decrypting files through a cron job. The below job works great when I run it manually from the command line, but it blows up whenever I try to run it through cron, and I can't really figure out why. I've been

Re: XML processing

2005-11-30 Thread NavyJay
I haven't used PyXML extensively, but I have used parts of the Amara XML Toolkit (http://uche.ogbuji.net/uche.ogbuji.net/tech/4suite/amara/) and recommend it for elegance. I can't say, however, which tool is faster. There are many other XML modules that people have written for Python. Do your

Re: Automate decryption using GnuPGInterface

2005-11-30 Thread NavyJay
Are you able to run a dummy Python script using crontabs? For troubleshooting purposes, I would verify this before trying to debug my code. Check your permissions, paths, etc. Can you post your entry into cron? What exactly happens when it blows up? --

min pathon code

2005-11-30 Thread YongYong Li
Hi! All I would like to call some python module or function from C code. Except installing whole python23 window version, what is the min module I need to keep or install. Is there any tool that I can use to strip extral modules that are not necessary in my program.? Anyone kenw? Thanks

Re: Computer Language Shootout

2005-11-30 Thread igouy
Fredrik Lundh wrote: Bengt Richter wrote: That's not just blunt and concise, it looks like the modus operandi of a typical volunteer/employee-exploiter (or perhaps spoiled brat, the typical precursor to the former). careful. his faq requires you to be nice. /F Be Nice! *is* one of

Re: How could I ask Thread B to call B().Method() from inside Thread A's run?

2005-11-30 Thread NavyJay
I agree with jmj's solution, you would want to send a signal of some sort to Thread B from A when some event occurs in A. A queue is one way to do it, but keep in mind that there are numerous ways to communicate between threads/processes (queue, pipe, exit status, TCP/UDP message, etc.). I

Re: import Excel csv - files

2005-11-30 Thread Ognen Duzlevski
Hi, Larry Bates [EMAIL PROTECTED] wrote: You should actually explain what you mean by export. Excel has a Save As HTML that would save everything out to HTML or you can do Save As .CSV. Hard to tell what you want. I suspect that to get to the cell comments you will need to go through COM

Re: an intriguing wifi http server mystery...please help

2005-11-30 Thread jojoba
Hi again, Please excuse any ignorance here. I would love to show you what you are asking for, but I am not sure what you are asking for (newbie here). All these connections (i.e. client-server connections) are within my local area network. I have a simple linksys 802.11b router. My server is

Quene

2005-11-30 Thread Tuvas
I am trying to write a function that holds a variable-length quene. The quene has 2 bits of information. At some point, I would like to remove bits of this quene, when they are completed. Is there a way to do this with something as follows? quene=[] quene.append((4,2)) quene.append((3,6)) if(4 in

mmm-mode, python-mode and doctest-mode?

2005-11-30 Thread John J Lee
Is it possible to get doctest-mode to work with mmm-mode and python-mode nicely so that docstrings containing doctests are editable in doctest-mode? In my utter e-lisp ignorance, I tried this: (require 'mmm-auto) (setq mmm-global-mode 'maybe) (mmm-add-classes '( (doctest :submode

Re: an intriguing wifi http server mystery...please help

2005-11-30 Thread Paul McNett
[EMAIL PROTECTED] wrote: Please excuse any ignorance here. I would love to show you what you are asking for, but I am not sure what you are asking for (newbie here). All these connections (i.e. client-server connections) are within my local area network. I have a simple linksys 802.11b

Re: wxPython installation issues on Debian

2005-11-30 Thread [EMAIL PROTECTED]
Hi Robert, Thanks for the suggestion, but an apt-cache search python2.4-wxgtk2.4 returns no results for a package with that name. Aaron -- http://mail.python.org/mailman/listinfo/python-list

Re: Quene

2005-11-30 Thread Dave Hansen
On 30 Nov 2005 09:38:44 -0800 in comp.lang.python, Tuvas [EMAIL PROTECTED] wrote: I am trying to write a function that holds a variable-length quene. The quene has 2 bits of information. At some point, I would like to remove bits of this quene, when they are completed. Is there a way to do this

Re: improving pypi / setuptools

2005-11-30 Thread Chris Lambacher
On Wed, Nov 30, 2005 at 11:49:14AM +0100, Fredrik Lundh wrote: Alia Khouri wrote: What ideas do people out there have for making the installation of python module more reliable? judging from the support load it's causing me these days, setuptools is a piece of utter crap. if you want

Re: an intriguing wifi http server mystery...please help

2005-11-30 Thread jojoba
Hello again! Heres the CLIENT info you requested: === Interface List 0x1 ... MS TCP Loopback interface 0x20002 ...00 09 5b 41 0c b7 .. NETGEAR MA311 PCI Adapter - Packet Scheduler Miniport

Re: Why I need to declare import as global in function

2005-11-30 Thread Rick Wotnaz
Dennis Lee Bieber [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: On 30 Nov 2005 00:58:45 -0800, [EMAIL PROTECTED] declaimed the following in comp.lang.python: yes I have imported math in the file I want to use it. But the imported module math is not visible in function without a

Re: Nested loop

2005-11-30 Thread Steve Holden
Micah Elliott wrote: On Nov 29, viewcharts wrote: I am reading two text files comparing the values in one to the other, this requires two loops. Or you could have a look at difflib. http://docs.python.org/lib/differ-examples.html Indeed, but I personally don't see a way to persuade

Re: python speed

2005-11-30 Thread Steve Holden
David Rasmussen wrote: Harald Armin Massa wrote: Dr. Armin Rigo has some mathematical proof, that High Level Languages like esp. Python are able to be faster than low level code like Fortran, C or assembly. Faster than assembly? LOL... :) I don't see why this is so funny. A good C

Re: Automate decryption using GnuPGInterface

2005-11-30 Thread George
I have 5 python scripts I've added to cron over the past year that run correctly all the time. I double-checked the permissions and paths and everything looks good there. Here's the cron entry that I just tested with: 23 12 * * * /usr/local/bin/decrypt_test.py /usr/local/bin/decrypt.log

Re: Nested loop

2005-11-30 Thread Micah Elliott
Micah Elliott wrote: On Nov 29, viewcharts wrote: I am reading two text files comparing the values in one to the other, this requires two loops. Or you could have a look at difflib. http://docs.python.org/lib/differ-examples.html On Nov 30, Steve Holden wrote: Indeed, but I

Re: python speed

2005-11-30 Thread Carl Friedrich Bolz
Hi! Harald Armin Massa wrote: And I could see real development just from watching the BDFL: 3 years ago PyPy was 2000times slower then CPython, and Guido was joking and that number is growing, this year there were not officially negated romours that sometime maybe PyPy could be the reference

Re: python speed

2005-11-30 Thread Peter Hansen
David Rasmussen wrote: Frithiof Andreas Jensen wrote: From the speed requirement: Is that correspondance chess by any chance?? Regular chess at tournament time controls requires speed too. Any pure Python chess program would lose badly to the best C/C++ programs out there now. I would

Re: Why I need to declare import as global in function

2005-11-30 Thread Fredrik Lundh
Dennis Lee Bieber wrote: But the solutions already proposed seems to work file for my sample program. I will try on my project soon :) Looking at the documentation for execfile, I can see /how/ the problem occurs -- but can't determine if this can be considered expected. -=-=-=-=-=-=-

Re: Computer Language Shootout

2005-11-30 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: Be Nice! *is* one of paragraph headings in the FAQ section How can I help? yeah, we've noticed that it's not one of the headings in the FAQ section How can we encourage you to contribute. /F -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   >