Re: What are OOP's Jargons and Complexities?

2005-05-24 Thread Xah Lee
The Rise of “Static” versus “Instance” variables In a normal programing language, variables inside functions are used by the function, called local variables. In OOP paradigm, as we've seen, super-subroutines (classes) are assigned to variables (instantiation), and the inner-subroutines (methods)

Re: Counting occurences of words in a list of strings

2005-05-24 Thread John Machin
Travers Naran wrote: > John Machin wrote: > >> 3. If you want to roll your own, start with Gonzalo Navarro's >> publications: http://www.dcc.uchile.cl/~gnavarro/subj-multiple.html > > > I don't suffer from NMH syndrome. If ahocorasick does the job, or even > count, I'm OK with that. Do you m

Re: Counting occurences of words in a list of strings

2005-05-24 Thread Travers Naran
John Machin wrote: > Are you comparing BMH implemented in Python with str.count() implemented > in C? Tee-hee. Yes. I figured out that was the problem pretty quickly and just went back to count(). > 1. A pure Python suggestion: > > Presuming there is a character SEP that cannot appear in the

Re: Manipulating mailboxes

2005-05-24 Thread Donn Cave
Quoth Laszlo Zsolt Nagy <[EMAIL PROTECTED]>: | 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 wa

Re: Linux Python Module using PythonC/ API

2005-05-24 Thread John Machin
David Legault wrote: > Hi Jeff thanx for the reply > > I'm a complete noob when it comes to Linux and trying to learn how to manage > the compilation process of the same objects that work on windows. > > The complete linking line is this. > > -- > > all: main > > main: utm.o ut

Has ComboBox ctrl in Tkinter?

2005-05-24 Thread ÒÊÃÉɽÈË
i have not find the ComboBox in Tkinter,has it? where to get the doc about how to use combobox ctrl? -- http://mail.python.org/mailman/listinfo/python-list

Re: Counting occurences of words in a list of strings

2005-05-24 Thread John Machin
Travers Naran wrote: > Here's the basic idea. I have a dictionary of substrings (the > substrings stored as keys). I have a list of strings. I want to find > out, for each word in the dictionary, how many times the substring > occurs non-overlapping occurrences there are in the list of string

Re: Counting occurences of words in a list of strings

2005-05-24 Thread Robert Kern
Travers Naran wrote: > Here's the basic idea. I have a dictionary of substrings (the substrings > stored as keys). I have a list of strings. I want to find out, for each > word in the dictionary, how many times the substring occurs non-overlapping > occurrences there are in the list of string

Counting occurences of words in a list of strings

2005-05-24 Thread Travers Naran
Here's the basic idea. I have a dictionary of substrings (the substrings stored as keys). I have a list of strings. I want to find out, for each word in the dictionary, how many times the substring occurs non-overlapping occurrences there are in the list of strings. This is the best I could

Re: What are OOP's Jargons and Complexities?

2005-05-24 Thread beliavsky
Thomas G. Marshall wrote: > > I am not familiar with modern Fortran. Surely it at least has argument > > prototyping by now? Since the 1990 standard, if Fortran subroutines and functions are placed in MODULEs, or if INTERFACEs are provided, the compiler checks that procedures are called with the

Re: What are OOP's Jargons and Complexities?

2005-05-24 Thread Paul Rubin
Wibble <[EMAIL PROTECTED]> writes: > Andreas, your link indicates that lisp is a Weakly typed language not > strong. Theres no compile time type semantics, at least in CommonLisp, > MacLisp, ZetaLisp or FranzLisp. There are runtime semantics that enforce types. > From your link: >When the t

Re: What are OOP's Jargons and Complexities?

2005-05-24 Thread Wibble
Thats how common lisp specifies a vector. Andreas, your link indicates that lisp is a Weakly typed language not strong. Theres no compile time type semantics, at least in CommonLisp, MacLisp, ZetaLisp or FranzLisp. (setq foo #(1 2 3)) (setq foo 1) (setq foo "Whatever") Theres no type associate

Re: How to use protocols.msn.FileSend and protocols.msnFileReceive

2005-05-24 Thread yamadora1999
[EMAIL PROTECTED] (yamadora1999) wrote in message news:<[EMAIL PROTECTED]>... > How to use protocols.msn.FileSend and FileReceive? > Please show me a example. I am very sorry. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Melbourne (Australia) Python User Group

2005-05-24 Thread Maurice LING
Hi Anthony, count me in... Cheers Maurice Anthony wrote: > Hi all, > > I'm interested in starting a Python user group in Melbourne, > Australia. So far there seems to have been a lot of interest from > various parties, but for whatever reasons it's fizzled out. So I've > decided that if there's

Re: Access lotus notes using Python

2005-05-24 Thread Dan Poirier
Peter Dembinski <[EMAIL PROTECTED]> writes: > "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 Yes. I do this all the time. -- Dan Poirier -- Email: my last n

Tkinter Text Question

2005-05-24 Thread James Stroud
Hello All, I would like to get the index of the character closest to the pointer in a Text, something like Canvas.find_closest(). I want it to bind to ''. Does anybody know how this might be done? Thank you, James -- James Stroud UCLA-DOE Institute for Genomics and Proteomics Box 951570 Los A

Re: I want to ask you the most important question of your life. The quest

2005-05-24 Thread phil-news-nospam
In comp.lang.c [EMAIL PROTECTED] wrote: | | THE MOST IMPORTANT QUESTION OF YOUR LIFE | | This is the most important question of your life. | | The question is: Are you saved? ^X^S I am now :-) -- - | Phil Howard KA9W

Re: reference counting and file objects

2005-05-24 Thread "Martin v. Löwis"
Paul Rubin wrote: >>>lines = file("myfile","r").readlines() > > It's released even if the exception is raised inside readlines? I think so, but only because readlines is a builtin function. If it wasn't, there would be a stack frame for readlines, which would have "self" as a local variable. As

Re: pygame 1.6 for windows (python2.4)

2005-05-24 Thread Will McGugan
bc wrote: > Thanks for the reply, Will... I have been to the site, but I get a "URL > not found error" when I try the pygame 1.6 for python24 link; I guess > I will just keep trying until the HTML is fixed. > Does seem to be broken at the moment. I've uploaded a copy to my server.. http://www.w

Re: python24.zip

2005-05-24 Thread "Martin v. Löwis"
Dieter Maurer wrote: > The comparison between warm start (few disc io) and cold start > (much disc io) tells you that the import process is highly > io dominated (for cold starts). Correct. However, I would expect that the contents of existing directories is cached, and it might be that the absenc

Re: searching substrings with interpositions

2005-05-24 Thread Andrew Dalke
Claudio Grondi wrote: > Note: code below is intended to help to clarify things only, > so that a bunch of examples can be tested. > If you need bugfree production quality code, maybe > someone else can provide it. Still not tested enough to ensure that it's bug free, but more concise. Here's one

Re: PAM authentication?

2005-05-24 Thread Diez Roggisch
Gary Wilson Jr wrote: > I would like my application to be able to authenticate through PAM. Is > there any code out there that implements this? All I could find was PyPAM > (http://www.pangalactic.org/PyPAM/), which doesn't look like it has been > touched in almost 6 years and requires python1.5. >

Re: pygame 1.6 for windows (python2.4)

2005-05-24 Thread bc
Thanks for the reply, Will... I have been to the site, but I get a "URL not found error" when I try the pygame 1.6 for python24 link; I guess I will just keep trying until the HTML is fixed. -- 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 24, 2005 10:49:20 am

2005-05-24 Thread The Ghost In The Machine
In comp.os.linux.advocacy, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote on 24 May 2005 07:48:47 -0700 <[EMAIL PROTECTED]>: > > THE MOST IMPORTANT QUESTION OF YOUR LIFE > > This is the most important question of your life. > > The question is: Are you saved? I'm tempted to ask if you're *shaved* (I

PAM authentication?

2005-05-24 Thread Gary Wilson Jr
I would like my application to be able to authenticate through PAM. Is there any code out there that implements this? All I could find was PyPAM (http://www.pangalactic.org/PyPAM/), which doesn't look like it has been touched in almost 6 years and requires python1.5. -- http://mail.python.org/mai

Re: python24.zip

2005-05-24 Thread Dieter Maurer
"Martin v. Löwis" <[EMAIL PROTECTED]> writes on Sun, 22 May 2005 21:24:41 +0200: > ... > What do you mean, "unable to"? It just doesn't. The original question was: "why does Python put non-existing entries on 'sys.path'". Your answer seems to be: "it just does not do it -- but it might be changed

Re: python24.zip

2005-05-24 Thread Dieter Maurer
Steve Holden <[EMAIL PROTECTED]> writes on Sun, 22 May 2005 16:19:10 -0400: > ... > Indeed I have written PEP 302-based code to import from a relational > database, but I still don't believe there's any satisfactory way to > have [such a hooked import mechanism] be a first-class component of an > a

Re: Linux Python Module using PythonC/ API

2005-05-24 Thread David Legault
Hi Jeff thanx for the reply I'm a complete noob when it comes to Linux and trying to learn how to manage the compilation process of the same objects that work on windows. The complete linking line is this. -- all: main main: utm.o utmmodule.o $(CC) $(CFLAGS) -shared -fPIC -

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

2005-05-24 Thread Fredrik Lundh
Dieter Maurer wrote: > Could you elaborate a bit? > > Large peak memory use means that the application got a large > address space. What garantees that the residual memory use > (after the peak) is compact and not evenly spread across > the address space. nothing guarantees that, of course. but

Re: Dr. Dobb's Python-URL! - weekly Python news and links (May 24)

2005-05-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Rocco Moretti <[EMAIL PROTECTED]> wrote: >Simon Brunning wrote: >> QOTW: "If you're sick of answering newbie questions, and don't think you >> can do so politely, for the sake of the community, DON'T! You're not that >> necessary." - Joal Heagney > >Taken out of co

Re: PIL and line drawing

2005-05-24 Thread rzed
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > "rzed" <[EMAIL PROTECTED]> wrote: > >> > if you have 1.1.5, you can use the width option to control >> > the line width. see: >> >> I'm glad to see that addition. I was surprised to see that >> 'width' is actually doubled in

Re: reference counting and file objects

2005-05-24 Thread Paul Rubin
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > > lines = file("myfile","r").readlines() > > > > have any better guarantee of being closed automatically? > > Yes. The file object only lives on the evaluation stack, > and that is discarded in any case when the function terminates > (whether throu

Re: pygame 1.6 for windows (python2.4)

2005-05-24 Thread Will McGugan
bc wrote: > Hi All, > > Does anyone have any info concerning the windows pygame 1.6 for > python2.4? It doesn't seem to be available yet. Will pygame1.6 for > python23 work with python24? Have you been to the site? 1.6 is available, and there are versions for Python2.3 and Python2.4 http://w

Re: reference counting and file objects

2005-05-24 Thread "Martin v. Löwis"
Peter wrote: > Does the idiom: > > lines = file("myfile","r").readlines() > > have any better guarantee of being closed automatically? Yes. The file object only lives on the evaluation stack, and that is discarded in any case when the function terminates (whether through a return or through an

Re: python24.zip

2005-05-24 Thread "Martin v. Löwis"
Robin Becker wrote: > if the importers are tested statically how does a filesystem path ever > manage > to get back into the loop if it was ever found missing? In other words if > things (eg python24.zip) are found not importable/usable in one pass how do > they get reinstated? I think (but see t

Linuz Python Module using PythonC/ API

2005-05-24 Thread David
I have this error message poping up when I try to import a module I made in C using the Python/C API. Everything compiles like a charm. Gives me this error message : Traceback (most recent call last): File "mod_test.py", line 4, in ? import utm ImportError: dynamic module does not define in

Re: first release of PyPy

2005-05-24 Thread Carl Friedrich Bolz
ionel wrote: > so what could this PyPy do in the future ? .. concretely ... > hope this is not a stupid question > Maybe the description from the homepage says it best: The PyPy project aims at producing a flexible and fast Python implementation. The guiding idea is to translate a Python-level

Re: Just remember that Python is sexy

2005-05-24 Thread Do Re Mi chel La Si Do
:-) -- http://mail.python.org/mailman/listinfo/python-list

pygame 1.6 for windows (python2.4)

2005-05-24 Thread bc
Hi All, Does anyone have any info concerning the windows pygame 1.6 for python2.4? It doesn't seem to be available yet. Will pygame1.6 for python23 work with python24? Thanks for any help concerning this. BC -- http://mail.python.org/mailman/listinfo/python-list

Re: Encryption with Python?

2005-05-24 Thread James Stroud
For your own good, please change your credit card number now! You have obviously lost your mind. Please read Applied Cryptography if you are wondering why I would say this. I am not trying to be mean. For example: I have access to 80 Pentium 3 cpus (at ~1.8 GHz) and have engineered a simple br

Re: What are OOP's Jargons and Complexities?

2005-05-24 Thread Matthias Buelow
Andreas Rottmann wrote: > You get terminology totally wrong here. As already said, Lisp is > stronger typed than C, but C is statically typed, whereas Lisp is > dynamically typed. In Lisp (or Scheme), all variables have types: > > (define foo #(1 2 3)) > (vector? foo) => #t > (boolean? foo) => #t

Re: first release of PyPy

2005-05-24 Thread ionel
so what could this PyPy do in the future ? .. concretely ... hope this is not a stupid question -- ionel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4.1 installation problem

2005-05-24 Thread Philippe C. Martin
I had not realized (silly me) that Python might need external libraries in order to support specific modules. I have installed the bz2 and readline devel packages re-configured/made and everythin os now working. Philippe C. Martin wrote: > Hi, > > I am trying to install 2.4.1 on a new machin

Re: Running a python program during idle time only

2005-05-24 Thread los
Yes it should. The problem is that I notice a loss in performance when the program is running at 100% CPU. Even though it is nice, if you try to open up new applications, or switch between them, you notice your computer lagging a little bit. That's why even though I'm not using the cpu that much

Re: Hacking the scope to pieces

2005-05-24 Thread gry
Hugh Macdonald wrote: > We're starting to version a number of our python modules here, and I've > written a small function that assists with loading the versioned > modules... > > A module would be called something like: myModule_1_0.py > > In anything that uses it, though, we want to be able to r

Re: py2exe for WMI

2005-05-24 Thread Thomas Heller
Tim Golden schrieb: > [Thomas Heller] > > [... snip problems with py2exe & WMI ...] > > | The OP of the thread Tim mentions here already had a solution, if I > | understood him correctly, and the other things that were suggested > | didn't work. Basically, IIUC, he did add the typelib > | wra

Re: staticmethod and classmethod

2005-05-24 Thread John Roth
"C Gillespie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Does anyone know of any examples on how (& where) to use staticmethods and > classmethods? A python class method is closer to a Java static method than a python static method. Class methods can be useful if you w

Re: Build error Python 2.4.1 - stat problem?

2005-05-24 Thread Donn Cave
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: ... > I used the python executable from the build directory to run the > following program: > > import os > > def main(): > if not (os.path.exists("/")): > print "/ does not exist" > else: >

Re: Dr. Dobb's Python-URL! - weekly Python news and links (May 24)

2005-05-24 Thread Rocco Moretti
Simon Brunning wrote: > QOTW: "If you're sick of answering newbie questions, and don't think you > can do so politely, for the sake of the community, DON'T! You're not that > necessary." - Joal Heagney Taken out of context, Joal's comments might seem a bit rude and abrasive - I don't think they

Python 2.4.1 installation problem

2005-05-24 Thread Philippe C. Martin
Hi, I am trying to install 2.4.1 on a new machine and have the following problems. 1) I'm on MDK 10.1 2) The system had 2.3.4 installed in /usr , I deleted the lib 3) I ran ./configure --prefix=/usr, then make, then make install, everything went OK If I run Python, I get File "/etc/pythonrc.py

Re: PIL and line drawing

2005-05-24 Thread Fredrik Lundh
"rzed" <[EMAIL PROTECTED]> wrote: > > if you have 1.1.5, you can use the width option to control > > the line width. see: > > I'm glad to see that addition. I was surprised to see that 'width' > is actually doubled in the resulting line, though. I suppose the > code adds and subtracts the specifie

Re: reference counting and file objects

2005-05-24 Thread Peter
Martin v. Löwis wrote: > Paul Rubin wrote: > >>Consider the function above. Do I need the fp.close(), or will the > >>file be closed automatically when fp goes out of scope and its > >>reference count drops to zero? > > > > In CPython, fp gets closed when it leaves scope. > > One issue is that wh

Creating methods depending on packages that have been installed

2005-05-24 Thread C Gillespie
Dear All, What is the best way of creating methods depending on the packages that have been installed. A silly example is try: import somepack class hello: def __init__(self): print 'hi' def some(self): print 'some' except: class hello:

RE: line-by-line output from a subproce

2005-05-24 Thread Michael Chermside
I wrote: > I am using the subprocess module to invoke a command-line utility > [...] I would like to process the output line-by-line [...] > rather than running [...] to completion Simon Percivall writes: > Okay, so the reason what you're trying to do doesn't work is that the > readahead buffer us

Tk and raw_input segfault

2005-05-24 Thread dale
Python newbie disclaimer on I am running an app with Tkinter screen in one thread and command-line input in another thread using raw_input(). First question - is this legal, should it run without issue? If not can you point me to a description of why. While updating objects on the screen I get

Re: Hacking the scope to pieces

2005-05-24 Thread Hugh Macdonald
Maybe I misunderstood what you meant, but I couldn't quite manage to get this one working My initial hopes about __import__() were that I could define it inside my new module (moduleLoader) and, when the module is imported, it could do stuff (like try to hold onto the vars() and globals() from

Re: searching substrings with interpositions

2005-05-24 Thread Claudio Grondi
<[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > thanx everyone, is what i need. > As Claudio argues, it's a standard problem of dna sequences > comparation. > the next step of my job is to make limits of lenght of interposed > sequences (if someone can help me in this way i'll

Re: install python 2.4.1

2005-05-24 Thread Pujo Aji
thanks On 5/24/05, Trent Mick <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote] > > I use win xp pro. > > I wonder about this new version of python because I use Nummeric, pyro, > > combine with komodo and pydev ide in my python 2.4. > > If there is compatibility isue with the new version, it

Dr. Dobb's Python-URL! - weekly Python news and links (May 24)

2005-05-24 Thread Simon Brunning
QOTW: "If you're sick of answering newbie questions, and don't think you can do so politely, for the sake of the community, DON'T! You're not that necessary." - Joal Heagney "Who controls the runtime also controls the language." - Kay Schluehr Jake tells us about the \r control characte

Re: searching substrings with interpositions

2005-05-24 Thread Andrew Dalke
[EMAIL PROTECTED] wrote: > the next step of my job is to make limits of lenght of interposed > sequences (if someone can help me in this way i'll apreciate a lot) > thanx everyone. Kent Johnson had the right approach, with regular expressions. For a bit of optimization, use non-greedy groups. Tha

Re: install python 2.4.1

2005-05-24 Thread Trent Mick
[EMAIL PROTECTED] wrote] > I use win xp pro. > I wonder about this new version of python because I use Nummeric, pyro, > combine with komodo and pydev ide in my python 2.4. > If there is compatibility isue with the new version, it is better for > me not to install the new version. There will be n

Re: staticmethod and classmethod

2005-05-24 Thread Steven Bethard
C Gillespie wrote: > Does anyone know of any examples on how (& where) to use staticmethods and > classmethods? My personal experience is that I almost *never* want a staticmethod. The things that I would have written as a staticmethod in Java I simply write as a module-level function in Python.

Re: What are OOP's Jargons and Complexities?

2005-05-24 Thread Thomas G. Marshall
John W. Kennedy coughed up: > alex goldman wrote: >> John W. Kennedy wrote: >> >> >>> Strong >>> typing has been a feature of mainstream programming languages since >>> the late 1950's. >> >> >> Is Fortran a strongly typed language? I don't think so. Strong >> typing has been invented in the 70's,

Re: Running PythonNN.DLL as debug or release?

2005-05-24 Thread Stephen Kellett
>-O : optimize generated bytecode (a tad; also PYTHONOPTIMIZE=x) >-OO: remove doc-strings in addition to the -O optimizations >... > >if you want to use these from your C code, setting the global Py_OptimizeFlag >to 1 (-O) or 2 (-OO) should work. Yes that is what I wanted to do. Thank you

RE: py2exe for WMI

2005-05-24 Thread Tim Golden
[Thomas Heller] [... snip problems with py2exe & WMI ...] | The OP of the thread Tim mentions here already had a solution, if I | understood him correctly, and the other things that were suggested | didn't work. Basically, IIUC, he did add the typelib | wrappers from the | 'other' windows ve

Re: staticmethod and classmethod

2005-05-24 Thread lbolognini
Think I read something about it here: http://heather.cs.ucdavis.edu/~matloff/Python/ not sure though. Lorenzo -- http://mail.python.org/mailman/listinfo/python-list

Re: Running in Release or Debug version of the python interpreter?

2005-05-24 Thread Thomas Heller
Raphael Zulliger schrieb: > Hi > > I have to check wheter a .py script is run within the debug or the > release version of an embedded python interpreter (in short, wheter > python24_d.dll or python24.dll is in use). > > long version: I'm using ctypes to load my own dll. There exists 2 > versi

Re: py2exe for WMI

2005-05-24 Thread Thomas Heller
Tim Golden schrieb: > | Hello All. > | I'm trying to 'compile-to-EXE' a python program which uses > | Win32 & WMI to > | pull system info. from the PC such as serial number, CPU > | speed, etc. I'm > | having problems with py2exe -- with regard to Win2000 & WinXP > | platforms. It > | seems

Re: first release of PyPy

2005-05-24 Thread Carl Friedrich Bolz
Kay Schluehr wrote: >>Speed isn't even the biggest problem when running PyPy on itself. >>PyPy still 'fakes' some objects, e.g. borrows them from the underlying >>Python. > > > Does it mean You create an RPython object that runs on top of CPython, > but is just an RPython facade wrapped around a

RE: [ZODB-Dev] ZODB memory problems (was: processing a Very Largefile)

2005-05-24 Thread Tim Peters
[Jeremy Hylton] > ... > It looks like your application has a single persistent instance -- the > root ExtendedTupleTable -- so there's no way for ZODB to manage the > memory. That object and everything reachable from it must be in memory > at all times. Indeed, I tried running this program under

execution error 2

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

Re: Running in Release or Debug version of the python interpreter?

2005-05-24 Thread Fredrik Lundh
Raphael Zulliger wrote: long version: I'm using ctypes to load my own dll. There exists 2 > version of this dll - a debug and a release version (where one is linked > against debug C runtime dll and the other to release C runtime dll). Now > I have to change the name of the dll I want to be loaded

Re: execution error

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

Build error Python 2.4.1 - stat problem?

2005-05-24 Thread Servatius.Brandt
Hello, I tried to build Python 2.4.1 on a Reliant Unix system. Just after the python executable program has been built, I get the following error: begin make output === CC -W1 -Blargedynsym -o python \ Modules/python.o \ libpython2.4.

Re: Python on a public library computer

2005-05-24 Thread Anton Vredegoor
alex23 wrote: > In this case, it sounds like the library is providing computers for two > purposes: access to Office tools and to the internet. Given the > "everything not forbidden is permissable" attitude of most people, > unless the use is restricted to only those two activities people > legiti

Re: Running PythonNN.DLL as debug or release?

2005-05-24 Thread Fredrik Lundh
Stephen Kellett wrote: > We've been using Python embedded in an application for a while now, > where the Python dll is PythonNN.dll, NN being the version number, such > as Python24.dll. > > Recently it was pointed out to me that Python can run in a debug or > release configuration and that you can

Pyrex: TypeError: unsubscriptable object

2005-05-24 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm just transforming a Python module into Pyrex, and I get the following error: File "indicadorPyrex.pyx", line 37, in indicadorPyrex.volatilidade ~h1 = precoMax[barra] I made no changes to this module except including 'int' for two variable

Re: Just remember that Python is sexy

2005-05-24 Thread Scott Kirkwood
Silly but true. It started with trying to figure how to remember it's strip() and not trim(). Then it went downhill from there. -- http://mail.python.org/mailman/listinfo/python-list

Re: \l operation in regular expressions

2005-05-24 Thread Fredrik Lundh
"Kalle Anka" <[EMAIL PROTECTED]> wrote: > I've started to play around with regexps in Python and I tried > something like this > > print re.sub( r'(\bw\w+\b)', r'\u\1', 'will it work') > > and get > > \uwill it \uwork > > when I had expected > > Will it Work > > I tried to find some documentation

Re: searching substrings with interpositions

2005-05-24 Thread Cyril BAZIN
Just another solution, pretty and effective: def fct(a, b):   idx = -1   for c in a:     idx = b.find(c, idx+1)     if idx == -1:   return False   return True On 24 May 2005 06:06:03 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:thanx everyone, is what i need.As Claudio argues, it's a st

Re: execution error

2005-05-24 Thread Ximo
"Skip Montanaro" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > >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: > >

interesting Link

2005-05-24 Thread Giox
Hello everybody, I found on the web an interesting way to gain some money: it's netbux, that allows you to learn something while you search the web through google or altaista. I earned 40$ in a month, not a lot, but I have simply to use Google to do My searches. If you want try it subscribe at:

RE: py2exe for WMI

2005-05-24 Thread Tim Golden
| Hello All. | I'm trying to 'compile-to-EXE' a python program which uses | Win32 & WMI to | pull system info. from the PC such as serial number, CPU | speed, etc. I'm | having problems with py2exe -- with regard to Win2000 & WinXP | platforms. It | seems that the program only works if I hav

Running PythonNN.DLL as debug or release?

2005-05-24 Thread Stephen Kellett
Hi Folks, We've been using Python embedded in an application for a while now, where the Python dll is PythonNN.dll, NN being the version number, such as Python24.dll. Recently it was pointed out to me that Python can run in a debug or release configuration and that you can specify this on the

Re: Hacking the scope to pieces

2005-05-24 Thread Hugh Macdonald
I will take a look! Thanks Skip -- Hugh -- http://mail.python.org/mailman/listinfo/python-list

Re: Hacking the scope to pieces

2005-05-24 Thread Skip Montanaro
Hugh> What I'm after is a way of moduleLoader.loadModule working back up Hugh> the scope and placing the imported module in the main global Hugh> scope. Any idea how to do this? You want to write an import hook I think. I'd start with the docs for the __import__ builtin. Also, Googl

Re: reg python related job searching

2005-05-24 Thread Skip Montanaro
praba> Can any one guide me how to get python related jobs? You mean a source of job postings? If so, try the Python Jobs Board: http://www.python.org/Jobs.html Skip -- http://mail.python.org/mailman/listinfo/python-list

py2exe for WMI

2005-05-24 Thread GMane Python
Hello All. I'm trying to 'compile-to-EXE' a python program which uses Win32 & WMI to pull system info. from the PC such as serial number, CPU speed, etc. I'm having problems with py2exe -- with regard to Win2000 & WinXP platforms. It seems that the program only works if I have one typelib for W

\l operation in regular expressions

2005-05-24 Thread Kalle Anka
I've started to play around with regexps in Python and I tried something like this print re.sub( r'(\bw\w+\b)', r'\u\1', 'will it work') and get \uwill it \uwork when I had expected Will it Work I tried to find some documentation about this but I can't find anything that says if operations li

Re: What are OOP's Jargons and Complexities?

2005-05-24 Thread John W. Kennedy
alex goldman wrote: > John W. Kennedy wrote: > > >>Strong >>typing has been a feature of mainstream programming languages since the >>late 1950's. > > > Is Fortran a strongly typed language? I don't think so. Strong typing has > been invented in the 70's, if I'm not mistaken, when ML was invent

TEENS FUCKIN FOR CASH

2005-05-24 Thread Maria
18 Years young Teenies fuckin for Cash! Geile Teens ficken fuer Taschengeld! http://www.sexycorner.biz Enjoy Maria -- http://mail.python.org/mailman/listinfo/python-list

Re: searching substrings with interpositions

2005-05-24 Thread [EMAIL PROTECTED]
thanx everyone, is what i need. As Claudio argues, it's a standard problem of dna sequences comparation. the next step of my job is to make limits of lenght of interposed sequences (if someone can help me in this way i'll apreciate a lot) thanx everyone. giorgio -- http://mail.python.org/mailman/

Re: Terminating a thread from the parent

2005-05-24 Thread DE
I appreciate your posts guys. It answers my questions and I like the idea of overriding join method. I will use this one. -- http://mail.python.org/mailman/listinfo/python-list

Re: slow sql server DB reads

2005-05-24 Thread Larry Bates
If GUID is not a key in the database make it one. That way you won't have to do serial reads through the entire table to locate matching entries. It is hard to be more specific because we don't know how many records are in ASPSessionState table. If there are only a few, the problem is probably e

Running in Release or Debug version of the python interpreter?

2005-05-24 Thread Raphael Zulliger
Hi I have to check wheter a .py script is run within the debug or the release version of an embedded python interpreter (in short, wheter python24_d.dll or python24.dll is in use). long version: I'm using ctypes to load my own dll. There exists 2 version of this dll - a debug and a release ver

Re: SQL Query via python

2005-05-24 Thread Frithiof Andreas Jensen
"Jeff Elkins" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Just as an fyi: > > In one weekend I have gone from knowing zip about SQL/Python to implementing > code on my personal server that emails info to family about birthdays and > such. Actually - http://www.pythonweb.org/ wil

Re: What are OOP's Jargons and Complexities?

2005-05-24 Thread Andreas Rottmann
Wibble <[EMAIL PROTECTED]> writes: > Java or even C is more strongly typed than lisp or tcl which > dont really have a concept of a typed variable. > Lisp only does runtime type checking unless you do wierd > unnatural things. > You get terminology totally wrong here. As already said, Lisp is stro

Re: Python & DOM

2005-05-24 Thread Drazen Gemic
On Mon, 23 May 2005 22:37:09 -0700, [EMAIL PROTECTED] wrote: > textNode = yourDocumentElement.createTextNode("the content") > yourElement.appendChild(textNode) > Thanks, it works, but 'yourDocumentElement' needs to be of type 'document'. The name leads to conclusion that it needs to be a root elem

staticmethod and classmethod

2005-05-24 Thread C Gillespie
Hi, Does anyone know of any examples on how (& where) to use staticmethods and classmethods? Thanks Colin -- http://mail.python.org/mailman/listinfo/python-list

IRIX MipsPro compiler chokes on Python.h

2005-05-24 Thread Bram Stolk
Hi there, I just built and installed Python-2.4.1 on my Irix machine. My compiler, the MipsPro compiler, chokes on the Python.h include file, as demonstrated here: $ CC -v MIPSpro Compilers: Version 7.41 $ python -V Python 2.4.1 $ cat l.cxx #include int main() { return 0; } $ CC -I $HOME/i

  1   2   >