ANN: $500 prize for best Leo slideshows

2006-10-23 Thread Edward K. Ream
A prize of $500 prize is hereby offered to the person or persons who can create the best slide shows (using Leo's slideshow plugin) that introduces Leo to newbies. What is Leo, you ask? Home: http://webpages.charter.net/edreamleo/front.html Tutorial:

ANN: wxPython 2.7.1.2 release

2006-10-23 Thread Robin Dunn
Announcing -- The 2.7.1.2 release of wxPython is now available for download at http://wxpython.org/download.php. This release is a quick-turnaround bugfix release designed to solve some problems found in the 2.7.1.1 release. Source and binaries are available for both Python 2.4 and 2.5

[ANN] Movable IDLE 0.1.0

2006-10-23 Thread Fuzzyman
There is now an experimental version of **Movable IDLE** available, this is an off-shoot of the `Movable Python http://www.voidspace.org.uk/python/movpy/`_ project. **Movable IDLE**, version 0.1.0 can be downloaded (free) from : `Movable IDLE Download

Re: Arrays? (Or lists if you prefer)

2006-10-23 Thread Andrea Griffini
Neil Cerutti wrote: b =[range(2), range(2)] I often happened to use b = [[0] * N for i in xrange(N)] an approach that can also scale up in dimensions; for example for a cubic NxNxN matrix: b = [[[0] * N for i in xrange(N)] for j in xrange(N)] Andrea --

Re: question about xmlrpc server: returning a list of lists to a Java client?

2006-10-23 Thread fortepianissimo
fortepianissimo wrote: I have a simple xmlrpc server/client written in Python, and the client throws a list of lists to the server and gets back a list of lists. This runs without a problem. I then wrote a simple Java xmlrpc client and it calls the python server. But I can't figure out what

Re: Arrays? (Or lists if you prefer)

2006-10-23 Thread [EMAIL PROTECTED]
Niel Cerutti wrote: Just build it up bit by bit, or build it all at once using range() and then fill it in afterwards. b =[range(2), range(2)] b [0, 1], [0, 1]] b[0][1] = OK. b [0, 'OK.'], [0, 1]] Interesting. Could I do . . . let's say b = [range(range(3)] for a

Re: Arrays? (Or lists if you prefer)

2006-10-23 Thread [EMAIL PROTECTED]
Andrea Griffini wrote: Neil Cerutti wrote: b =[range(2), range(2)] I often happened to use b = [[0] * N for i in xrange(N)] an approach that can also scale up in dimensions; for example for a cubic NxNxN matrix: b = [[[0] * N for i in xrange(N)] for j

Re: Arrays? (Or lists if you prefer)

2006-10-23 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: What's the difference between xrange and range? range() creates a list object and fills it in up front, xrange() returns a sequence-like object that generates indexes on demand. for short loops, this difference doesn't really matter. for large loops, or if you

Re: Arrays? (Or lists if you prefer)

2006-10-23 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: Interesting. Could I do . . . let's say b = [range(range(3)] for a three-dimensional array? [range(range(3))] Traceback (most recent call last): File stdin, line 1, in module TypeError: range() integer end argument expected, got list. if your mail program is

Re: Arrays? (Or lists if you prefer)

2006-10-23 Thread Hendrik van Rooyen
From: [EMAIL PROTECTED] wrote: 8--- So: Way to do SIMPLE array, either internally or externally, with Python, please. to help you see it - here is a simple 3 row by 3 column list: myarray = [[1,2,3],[4,5,6],[7,8,9]] the first row is myarray[0] - ie the

Re: implementation of in that returns the object.

2006-10-23 Thread Paddy
Jorge Vargas wrote: Hi I need to check if an object is in a list AND keep a reference to the object I have done it this way but is there a better one? def inplusplus(value,listObj): ... for i in listObj: ... if i is value: ... return value ...

Re: multythreading app memory consumption

2006-10-23 Thread Roman Petrichev
Dennis Lee Bieber wrote: On Mon, 23 Oct 2006 03:31:28 +0400, Roman Petrichev [EMAIL PROTECTED] declaimed the following in comp.lang.python: Hi folks. I've just faced with very nasty memory consumption problem. I have a multythreaded app with 150 threads which use the only and the same

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-23 Thread Godson
From:James Stroud [EMAIL PROTECTED] To:python-list@python.org Date:Thu, 19 Oct 2006 20:34:26 GMT Subject:Re: Tkinter--does anyone use it for sophisticated GUI development? Kevin Walzer wrote: I'm a Tcl/Tk developer who has been working, slowly, at learning Python, in part because Python has

Re: Problems trying to override __str__ on path class

2006-10-23 Thread Peter Otten
Mike Krell wrote: Peter Otten [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: I get np: overridden __str__: c:/mbk/test str(np): overridden __str__: c:/mbk/test overridden __str__: overridden __str__: c:/mbk/test/appendtest Hmmm. I guess you're not running under windows, since

is it a bug ?

2006-10-23 Thread Sylvain Ferriol
hello can you explain to me what happened: class toto(object): eq = float.__eq__ t = toto() getattr(t,'eq') TypeError: descriptor '__eq__' for 'float' objects doesn't apply to 'toto' object -- http://mail.python.org/mailman/listinfo/python-list

Re: is it a bug ?

2006-10-23 Thread Peter Otten
Sylvain Ferriol wrote: can you explain to me what happened: class toto(object): eq = float.__eq__ t = toto() getattr(t,'eq') TypeError: descriptor '__eq__' for 'float' objects doesn't apply to 'toto' object float.__eq__ is probably implemented in C and its operation will make

Re: is it a bug ?

2006-10-23 Thread Fredrik Lundh
Sylvain Ferriol wrote: can you explain to me what happened: class toto(object): eq = float.__eq__ t = toto() getattr(t,'eq') TypeError: descriptor '__eq__' for 'float' objects doesn't apply to 'toto' object I'd say the error message explains it pretty well. what did you expect

Re: comparing Unicode and string

2006-10-23 Thread [EMAIL PROTECTED]
I didn't mean that the *assignment* should raise exception. I mean that any string constant that cannot be decoded using sys.getdefaultencoding() should be considered a kind of syntax error. I agree of course with the argument of backward compatibility, which means that my suggestion is for

Re: is it a bug ?

2006-10-23 Thread Sylvain Ferriol
Fredrik Lundh a écrit : Sylvain Ferriol wrote: can you explain to me what happened: class toto(object): eq = float.__eq__ t = toto() getattr(t,'eq') TypeError: descriptor '__eq__' for 'float' objects doesn't apply to 'toto' object I'd say the error message explains it pretty

Handling emails

2006-10-23 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** Hello, I'd like to ask some clue to move further on my project :-) The purpose would be to gather all emails (local and remote ones) to do some backup. I've tried to get ideas by reading all about the

Re: Debugging

2006-10-23 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** On Saturday 21 October 2006 23:43, R. Bernstein wrote: (I think all of this is the case also with pdb, but someone might check on this; it's possible breakpoints in pdb start from 0 instead of 1 as is

Re: is it a bug ?

2006-10-23 Thread Sylvain Ferriol
Peter Otten a écrit : Sylvain Ferriol wrote: can you explain to me what happened: class toto(object): eq = float.__eq__ t = toto() getattr(t,'eq') TypeError: descriptor '__eq__' for 'float' objects doesn't apply to 'toto' object float.__eq__ is probably implemented in C and its

Re: is it a bug ?

2006-10-23 Thread Fredrik Lundh
Sylvain Ferriol wrote: i just want a class variable named 'eq' so why are you assigning another class' descriptor to it? descriptors are bound to types, and only works properly if used with the type they were created for. why i can not create some class variables like this ? class

Re: comparing Unicode and string

2006-10-23 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: I didn't mean that the *assignment* should raise exception. I mean that any string constant that cannot be decoded using sys.getdefaultencoding() should be considered a kind of syntax error. Why? Python strings are *byte strings* and bytes have

Re: sending vim text through Python filter

2006-10-23 Thread Ant
BartlebyScrivener wrote: Hello, I'm sure this is my fault or some Windows snafu. But using gvim 7.0 on It's a bug in Windows. Try doing sort.py test.txt from the command line, and you'll get the same error. Try python sort.py test.txt and it should work fine. Apparently cmd.exe can't pick

Re: is it a bug ?

2006-10-23 Thread Peter Otten
Sylvain Ferriol wrote: class Toto(float):  eq = float.__eq__ Toto().eq(42) False i can not use it because: class toto(float): def __init__(self,a=None):pass t=toto(a=3) TypeError: 'a' is an invalid keyword argument for this function Override __new__() then: class

Re: Using Python scripts in Windows Explorer

2006-10-23 Thread Ben Sizer
MC wrote: I use this little batch: @echo off cd \dev\python viewarg.py %* I try that (with viewarg.py renamed, obviously), and get this error: 'defines.py' is not recognized as an internal or external command, operable program or batch file. defines.py is in the same directory

Re: Using Python scripts in Windows Explorer

2006-10-23 Thread Ben Sizer
Gabriel Genellina wrote: At Friday 20/10/2006 12:20, Ben Sizer wrote: I'd like to be able to drag a file onto a Python script in Windows Explorer, or send that file to the script via the Send To context-menu option, so I can then process that file via sys.argc. Unfortunately, I can't drag

The Mythical Man-month's pdf file

2006-10-23 Thread kelin,[EMAIL PROTECTED]
Hi, Does anyone have the .pdf file of the book THE MYTHICAL MAN-MONTH? Then could you please send it to me( [EMAIL PROTECTED] )? Thanks a lot! -- http://mail.python.org/mailman/listinfo/python-list

Re: Debugging

2006-10-23 Thread Bruno Desthuilliers
Fulvio wrote: *** Your mail has been scanned by InterScan MSS. *** On Saturday 21 October 2006 23:43, R. Bernstein wrote: (I think all of this is the case also with pdb, but someone might check on this; it's possible breakpoints in pdb start from 0

Re: The Mythical Man-month's pdf file

2006-10-23 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: Does anyone have the .pdf file of the book THE MYTHICAL MAN-MONTH? start here: http://www.amazon.com/dp/0201835959 /F -- http://mail.python.org/mailman/listinfo/python-list

ANN: $500 prize for best Leo slideshows

2006-10-23 Thread Edward K. Ream
A prize of $500 prize is hereby offered to the person or persons who can create the best slide shows (using Leo's slideshow plugin) that introduces Leo to newbies. What is Leo, you ask? Home: http://webpages.charter.net/edreamleo/front.html Tutorial:

Re: Using Python scripts in Windows Explorer

2006-10-23 Thread Ant
Ben Sizer wrote: Create a shortcut and drop the file over it. ... That is what I meant by 'the usual steps'. :) It doesn't work. Alter the target of the shortcut to something like: C:\Python25\python.exe C:\0\sort_test.py and drag and drop should work, with the filename of the dragged file

Re: Customize the effect of enumerate()?

2006-10-23 Thread Dustan
Simon Forman wrote: Dustan wrote: Can I make enumerate(myObject) act differently? class A(object): def __getitem__(self, item): if item 0: return self.sequence[item-1] elif item 0: return self.sequence[item]

Re: Customize the effect of enumerate()?

2006-10-23 Thread Fredrik Lundh
Dustan wrote: Except that my program is supposed to be treated as a module with tools to do certain things. I certainly can't control whether a 3rd party programmer uses import myModule or from myModule import *. anything can happen if people use from import * in the wrong way, so that's not

Re: Is x.f() ==MyClass.f(x) a kind of algebraic structure?

2006-10-23 Thread Paul Boddie
steve wrote: I thought that when read Guido van Rossum' Python tutorial.What can we think that? That x.f() is equivalent to MyClass.f(x)? (Consider restating questions in the body of messages to maintain context, by the way.) Why not try it out? class MyClass: ... def f(self): ...

Re: sending vim text through Python filter

2006-10-23 Thread BartlebyScrivener
You'll have to use :%!python sort.py to get the filter to work. Damn. I should've thought of that. Then again, why would I when sort.py works fine from the windows commandline. Thanks a lot! That does the trick. rd -- http://mail.python.org/mailman/listinfo/python-list

Collate Module

2006-10-23 Thread Ron Adam
I've made a few more changes to my little collate module. There might be better ways to handle the options, or better choices for the options themselves. I tried to keep it as general as possible. I think it should work with Unicode now too. Any suggestions in making it faster will be

Re: Customize the effect of enumerate()?

2006-10-23 Thread Steven D'Aprano
On Sun, 22 Oct 2006 15:56:16 -0700, Simon Forman wrote: Dustan wrote: Can I make enumerate(myObject) act differently? class A(object): def __getitem__(self, item): if item 0: return self.sequence[item-1] elif item 0:

Re: Python and CMS

2006-10-23 Thread Sybren Stuvel
Kjell Magne Fauske enlightened us with: I recommend taking a look at Django [1]. It is not a CMS right out of the box, but writing one using the Django framework is not that difficult. Django is my favourite as well. It's very easy to start building a dynamic website. Sybren -- Sybren

Re: Attempting to parse free-form ANSI text.

2006-10-23 Thread Frederic Rentsch
Paul McGuire wrote: Michael B. Trausch mike$#at^nospam!%trauschus wrote in message news:[EMAIL PROTECTED] Alright... I am attempting to find a way to parse ANSI text from a telnet application. However, I am experiencing a bit of trouble. What I want to do is have all ANSI sequences

Script to count files in a folder

2006-10-23 Thread umut . tabak
Dear all, We have a multi-platform application(Windows-Linux). Linux part of our application is writing some input and trigger files on the a shared drive. What I want to do is to be able to count the occurence of these trigger files. lets say my file is file.start A batch file creates this

Re: Python and CMS

2006-10-23 Thread km
Hi, check out Plone atop Zope. http://plone.org regards, KMOn 10/23/06, Sybren Stuvel [EMAIL PROTECTED] wrote: Kjell Magne Fauske enlightened us with: I recommend taking a look at Django [1]. It is not a CMS right out of the box, but writing one using the Django framework is not that

Re: Book about database application development?

2006-10-23 Thread Wolfgang Keller
and perhaps a fairly elementary datagrid widget is what is being sought. *snip* I'm sure other people can provide links to resources for other toolkits and frameworks. Err, slight misunderstanding. I am _not_ searching for a toolkit or framework for database applications. What I am

Re: Script to count files in a folder

2006-10-23 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: A batch file creates this file and deletes that file in the same loop. This file is intended to start the reading of an input file. After it is read batch file deletes this file automatically and on the next loop it will be written and deleted again. With this script

Re: Script to count files in a folder

2006-10-23 Thread umut . tabak
On Oct 23, 3:11 pm, Fredrik Lundh [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: A batch file creates this file and deletes that file in the same loop. This file is intended to start the reading of an input file. After it is read batch file deletes this file automatically and on the

Re: Problems trying to override __str__ on path class

2006-10-23 Thread Mike Krell
Peter Otten [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: So my assumption was that you are using a pre-2.1 version of path. I suggest that you double-check that by inserting a print path.__version__ into the code showing the odd behaviour before you start looking for more exotic

python thread state

2006-10-23 Thread Bryan
hi, i'm trying to write a multithreaded embedded python application and i'm having some trouble. i found this article embedding python in multi-threaded c/c++ applications in the python journal (http://www.linuxjournal.com/article/3641) but there still seems to be a step missing for me. each

Auto Completion for Python in VIM editor

2006-10-23 Thread Wijaya Edward
Dear all, Perl and C/C++ have perl-support.vim and c.vim by Fritz Mehner that support a very convenient auto completion shortcut in visual mode (e.g \aw for While construct). Does anybody know if such a comprehensive scripts also exist for Python? python.vim doesn't seem to suppor this kind

Re: Script to count files in a folder

2006-10-23 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: On Oct 23, 3:11 pm, Fredrik Lundh [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: A batch file creates this file and deletes that file in the same loop. This file is intended to start the reading of an input file. After it is read batch file deletes this

Parsing XML using SAX

2006-10-23 Thread Nathan Harmston
Hi, Currently I m writing an XML parser that processes an xml file using sax, and I have it working, however I want to make the code of my parser less cluttered and more readable by other people (including myself). However it is quite messy at the moment. The main reason is that Python doesnt have

Re: Problems trying to override __str__ on path class

2006-10-23 Thread Peter Otten
Mike Krell wrote: Alas, the print statement says 2.1.  So there's a definite platform / environment difference here, but that isn't it. It turns out the observed difference is only indirectly triggered by the differing platforms. On my machine the path baseclass is str. If I change it to

Re: Rate my reply

2006-10-23 Thread John Salerno
Paddy wrote: What I am interested in is if John and others might just take time out to critique the replies. I'm interested in what the group think makes a good comp.lang.python reply: too short, too long; too cryptic, too simplistic, too polite (is their such a thing), too nasty; too

Using cElementTree and elementtree.ElementInclude

2006-10-23 Thread Mark E. Smith
cElementTree cannot hold ElementTree instances. can you post a small but self-contained example showing how you got this error? /F #from elementtree.ElementTree import ElementTree, dump # This works from cElementTree import ElementTree, dump # This does not from elementtree import

Re: Parsing XML using SAX

2006-10-23 Thread Fredrik Lundh
Nathan Harmston wrote: However it is quite messy at the moment. The main reason is that Python doesnt have a switch statement. a switch statement wouldn't save you a single line, so I find it a bit hard to believe that it's the main reason... def startElement(self,name,attributes):

File and directory permissions in windows

2006-10-23 Thread ismael
Hi all I have some problems to get the the permissions on windows. I use a simple code that run perfectly in UNIX but give me wrong information on Windows. I found this code searching by google: import os import stat print os.stat('fichero.txt') st = os.stat('fichero.txt') mode =

Re: implementation of in that returns the object.

2006-10-23 Thread Sion Arrowsmith
Jorge Vargas [EMAIL PROTECTED] wrote: I need to check if an object is in a list AND keep a reference to the object I have done it this way but is there a better one? def inplusplus(value,listObj): ... for i in listObj: ... if i is value: ... return value ...

RE: File and directory permissions in windows

2006-10-23 Thread Tim Golden
[ismael] | I have some problems to get the the permissions on windows. I | use a simple code that run perfectly in UNIX but give me wrong | information on Windows. I found this code searching by google: [... snip ...] | is there a solution for this?, another library or code? | Anything that

Re: Screen capture on Linux

2006-10-23 Thread Paolo Pantaleo
Thnx everybody for the help, actually I need somethin slightly different. I found about some external process that can capture the screen, but since I need to captyre the screen up to 4-5 times a second, I don't want to fork a new process every time, so I was looking for some library...[This

Re: implementation of in that returns the object.

2006-10-23 Thread Paul Rubin
Jorge Vargas [EMAIL PROTECTED] writes: I need to check if an object is in a list AND keep a reference to the object I have done it this way but is there a better one? def inplusplus(value,listObj): ... for i in listObj: ... if i is value: ... return

Set operations in Numeric

2006-10-23 Thread George Sakkis
Is there a way to handle numeric (or numarray or numpy) arrays as sets and compute efficiently their intersection, union, etc. ? I hope there is a faster way than s = array(set(A) set(B)). Can this be done with masked arrays maybe ? I've never used them though and browsing through the docs didn't

Python 2.5 ; Effbot console ; thank ; pb release.

2006-10-23 Thread M�ta-MCI
Hi! (***sorry for my approximative english***) A few months ago, I needed a console, under Windows. After several research, I selected the console of EffBot. Thank you very much, Fredrik Lundh, for this small tool, quite practical and which repaired me well. Then, Python 2.5 arrived.

HTML Templates (Sitemesh/Tiles concept) in Python

2006-10-23 Thread Suren
Hello, I am a newbie to python and web development. I am part of a fairly simple project and we are trying to identify an efficient way to design our html pages. The technologies at our disposal are javascript, html and python for now. Our pages bear a very standard look. Here is what it looks

Re: Python 2.5 ; Effbot console ; thank ; pb release.

2006-10-23 Thread Fredrik Lundh
Méta-MCI wrote: For the professional developments, it is a major risk. some days, I ask myself why I shouldn't just use GPL for everything I do, and ship it as source code only. /F -- http://mail.python.org/mailman/listinfo/python-list

RE: File and directory permissions in windows

2006-10-23 Thread ismael
No feel guilty because all of us have a lot of things to do and usualy we dont have time to do it. My objective is check if some directories exist and if the user that execute the perl script has access to some files and directories. If one of this checkpoints failed the execution will be

FreeImagePy creating thumbnails from TIFF

2006-10-23 Thread geskerrett
I a trying to create a series of thumbnail images from a multpage TIFF file. The sample code is below. When it executes, we get the following error; FreeImagePy.constants.FreeImagePy_ColorWrong: 'Wrong color 1 in function: FreeImage_MakeThumbnail. I can use: (8, 24, 32)' Any suggestions? fname

Re: multythreading app memory consumption

2006-10-23 Thread Istvan Albert
Roman Petrichev wrote: try: url = Q.get() except Queue.Empty: break This code will never raise the Queue.Empty exception. Only a non-blocking get does: url = Q.get(block=False) As mentioned before you should post working code if you expect people

Re: Python 2.5 ; Effbot console ; thank ; pb release.

2006-10-23 Thread Steve Holden
Fredrik Lundh wrote: Méta-MCI wrote: For the professional developments, it is a major risk. some days, I ask myself why I shouldn't just use GPL for everything I do, and ship it as source code only. To which I presume the answer is that you are considerate of Windows users who'd

Re: Set operations in Numeric

2006-10-23 Thread Robert Kern
George Sakkis wrote: Is there a way to handle numeric (or numarray or numpy) arrays as sets and compute efficiently their intersection, union, etc. ? I hope there is a faster way than s = array(set(A) set(B)). Can this be done with masked arrays maybe ? I've never used them though and

RE: File and directory permissions in windows

2006-10-23 Thread Tim Golden
[ismael] | My objective is check if some directories exist and if the | user that execute the perl script has access to some files | and directories. If one of this checkpoints failed the | execution will be aborted. If all of then finish ok | the execution will continue. It's simply this. I

sharing persisten cache between modules

2006-10-23 Thread Bart Ogryczak
Hi, I´ve got a problem creating persistent cache, that would be shared between modules. There a supermodule, which calls submodules. I´d like submodules to use cache created in the supermodule. The only way I see right now, is to pass it as function argument, but that would require a change in

Re: sharing persisten cache between modules

2006-10-23 Thread Fredrik Lundh
Bart Ogryczak wrote: I´ve got a problem creating persistent cache, that would be shared between modules. There a supermodule, which calls submodules. I´d like submodules to use cache created in the supermodule. The only way I see right now, is to pass it as function argument, but that would

Re: sharing persisten cache between modules

2006-10-23 Thread Bart Ogryczak
Fredrik Lundh wrote: Bart Ogryczak wrote: I´ve got a problem creating persistent cache, that would be shared between modules. There a supermodule, which calls submodules. I´d like submodules to use cache created in the supermodule. The only way I see right now, is to pass it as function

Re: Debugging

2006-10-23 Thread R. Bernstein
Fulvio [EMAIL PROTECTED] writes: The previous post I might have missed some explaination on my proceeding. I'd say that I'm testing a small program under pdb control (python /usr/lib/python2.4/pdb.py ./myprog.py). So pdb will load myprog and stop the first line code. Once I'm at the pdb

Re: sharing persisten cache between modules

2006-10-23 Thread Steve Holden
Bart Ogryczak wrote: Fredrik Lundh wrote: Bart Ogryczak wrote: I´ve got a problem creating persistent cache, that would be shared between modules. There a supermodule, which calls submodules. I´d like submodules to use cache created in the supermodule. The only way I see right now, is to pass

Re: sharing persisten cache between modules

2006-10-23 Thread Fredrik Lundh
Bart Ogryczak wrote: why not just put the cache management code in a module that's imported by any submodule that wants to use it ? The problem is, that then it is not shared. If I do it like that, each module has it´s own copy of the cache. nope. modules are shared, and all module-level

Re: Python and CMS

2006-10-23 Thread Echo
Duncan Booth wrote: Just because something like Plone can run as a web server doesn't mean that you expose that web server to the outside world, nor do you have to run it as a webserver at all. Normally you run Plone behind another web server such as Apache. You can get Plone on shared

Re: Set operations in Numeric

2006-10-23 Thread George Sakkis
Robert Kern wrote: George Sakkis wrote: Is there a way to handle numeric (or numarray or numpy) arrays as sets and compute efficiently their intersection, union, etc. ? I hope there is a faster way than s = array(set(A) set(B)). Can this be done with masked arrays maybe ? I've never used

encoding of sys.argv ?

2006-10-23 Thread Jiba
Hi all, I am desperately searching for the encoding of sys.argv. I use a Linux box, with French UTF-8 locales and an UTF-8 filesystem. sys.getdefaultencoding() is ascii and sys.getfilesystemencoding() is utf-8. However, sys.argv is neither in ASCII (since I can pass French accentuated

ZODB for inverted index?

2006-10-23 Thread vd12005
Hello, While playing to write an inverted index (see: http://en.wikipedia.org/wiki/Inverted_index), i run out of memory with a classic dict, (i have thousand of documents and millions of terms, stemming or other filtering are not considered, i wanted to understand how to handle GB of text first).

Re: encoding of sys.argv ?

2006-10-23 Thread Neil Cerutti
On 2006-10-23, Jiba [EMAIL PROTECTED] wrote: Hi all, I am desperately searching for the encoding of sys.argv. I use a Linux box, with French UTF-8 locales and an UTF-8 filesystem. sys.getdefaultencoding() is ascii and sys.getfilesystemencoding() is utf-8. However, sys.argv is neither in

Looking for a Python-on-Windows person to help with SpamBayes

2006-10-23 Thread skip
I'm looking for some help with SpamBayes. It can be short-term or long-term. I've implemented some OCR capability based on the open source ocrad program that works reasonably well to extract text tokens from image-based spam. Alas, I don't use Windows at all, so I can't make sure this stuff

Introduction article on Ruby on Rail published

2006-10-23 Thread editormt
The Methods Tools newsletter has just released in its html archive section the article An Introduction to Web Development Using the Ruby on Rails Framework. This article presents the basic concepts used by the popular Ruby on Rails web development framework.

Re: Looking for a Python-on-Windows person to help with SpamBayes

2006-10-23 Thread olsongt
[EMAIL PROTECTED] wrote: I'm looking for some help with SpamBayes. It can be short-term or long-term. I've implemented some OCR capability based on the open source ocrad program that works reasonably well to extract text tokens from image-based spam. Alas, I don't use Windows at all, so I

Re: HTML Templates (Sitemesh/Tiles concept) in Python

2006-10-23 Thread Bruno Desthuilliers
Suren wrote: Hello, I am a newbie to python and web development. I am part of a fairly simple project and we are trying to identify an efficient way to design our html pages. The technologies at our disposal are javascript, html and python for now. Python with ? CGI ? FastCGI ? mod_python

numpy error

2006-10-23 Thread Juergen Kareta
Hello, this is my first try to get wxmpl-1.2.8 running. Therefor I installed: python 2.5 matplotlib-0.87.6.win32-py2.5.exe numpy-1.0rc3.win32-py2.5.exe on WinXP SP2 The result is a version mismatch (see below). Numpy version 102 seems to be numpy-1.0b5 which is not downloadable anymore.

Tkinter question

2006-10-23 Thread Sorin Schwimmer
Hi All,Is it possible to have a widget id while it is created?Something like this:Button(root, text='...', command= lambda v=widget id: fn(v)).grid()and then the function:def fn(v): v['bg']='BLUE' # or maybe nametowidget(v)['bg']='BLUE'Thanks,Sorin--

Re: ZODB for inverted index?

2006-10-23 Thread Bates larrydotbatesatwebsafe dot
You may want to take a quick look at ZCatalogs. They are for indexing ZODB objects. I may not be understanding what you are trying to do. I suspect that you really need to store everything in a database (MySQL/Postgres/etc) for maximal flexibility. -Larry --

Re: encoding of sys.argv ?

2006-10-23 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Jiba wrote: I am desperately searching for the encoding of sys.argv. I use a Linux box, with French UTF-8 locales and an UTF-8 filesystem. sys.getdefaultencoding() is ascii and sys.getfilesystemencoding() is utf-8. However, sys.argv is neither in ASCII (since I can pass

Re: encoding of sys.argv ?

2006-10-23 Thread Steve Holden
Jiba wrote: Hi all, I am desperately searching for the encoding of sys.argv. I use a Linux box, with French UTF-8 locales and an UTF-8 filesystem. sys.getdefaultencoding() is ascii and sys.getfilesystemencoding() is utf-8. However, sys.argv is neither in ASCII (since I can pass French

Re: HTML Templates (Sitemesh/Tiles concept) in Python

2006-10-23 Thread Suren
Python with ? CGI ? FastCGI ? mod_python ? Other ? We are using mod_python and SSI. We are inheriting some legacy code that we do not want to mess with at all. You shouldn't - unless this is an internal web-based application, not a public site. Since your dynamically generating the pages,

Re: Python 2.5 ; Effbot console ; thank ; pb release.

2006-10-23 Thread Paul Boddie
Steve Holden wrote: Fredrik Lundh wrote: Méta-MCI wrote: For the professional developments, it is a major risk. I'll cut in here and mention that it's a risk that can be managed through various well understood methods of deployment. For me, Python 2.4 is going to be good enough until (and

Re: ANN compiler2 : Produce bytecode from Python 2.5 Abstract Syntax Trees

2006-10-23 Thread Michael Spencer
Georg Brandl wrote: Michael Spencer wrote: Announcing: compiler2 - For all you bytecode enthusiasts: 'compiler2' is an alternative to the standard library 'compiler' package, with several advantages. Is this a rewrite from scratch, or an improved stdlib compiler

Re: Looking for a Python-on-Windows person to help with SpamBayes

2006-10-23 Thread skip
olsongt Does ocrad require the cygwin environment to run? No. It was compiled so it didn't require the cygwin runtime environment. I presume it was statically linked. Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Help: Python2.3 Python2.4 on RHEL4 x86_64

2006-10-23 Thread Christopher Taylor
PYTHONPATH was the problem. I had /usr/lib64/python2.3 included and that's why it was breaking. I took it out and it works fine now. Unfortunately, it still puts the lib files in /usr/lib instead of /usr/lib64. I'm assuming all I need to do is set libdir accordingly and the files will get put

Re: Python 2.5 ; Effbot console ; thank ; pb release.

2006-10-23 Thread Steve Holden
Paul Boddie wrote: Steve Holden wrote: Fredrik Lundh wrote: Méta-MCI wrote: For the professional developments, it is a major risk. I'll cut in here and mention that it's a risk that can be managed through various well understood methods of deployment. For me, Python 2.4 is going to be

python2.5 importerror on md5

2006-10-23 Thread samn
i compiled and installed the release version of python 2.5 for linux to a directory accessible to 2 computers, configured with --prefix=/usr/arch (which is accessible to both machines). the installation went fine and when i run python on one machine i can do from hashlib import * without a

Re: Handling emails

2006-10-23 Thread Gerard Flanagan
Fulvio wrote: Hello, I'd like to ask some clue to move further on my project :-) The purpose would be to gather all emails (local and remote ones) to do some backup. I've tried to get ideas by reading all about the modules enclose with python, but neither email framework nor mailbox give

_winreg.saveKey question

2006-10-23 Thread RodneyWMcBride
Reply with quote Edit/Delete this post Delete this post Post _winreg.SaveKey question Does anyone know where I might find some sample code of using the saveKey function? I am getting an error 5 access denied and I think that it is coming from the way I am specifying the filename as in

Getting a lot of SPAM from this list

2006-10-23 Thread Bates Larry Bates larry dot bates at websafe dot com
I'm getting a lot of spam to the email address I use to post to this list. Since this email address doesn't appear elsewhere, I know that people are scanning this list to get the email address and spam me. Does anyone have a suggestion as to a way that I can get less of this spam? I could have

  1   2   3   >