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

2005-05-24 Thread alex23
I think Joe was trying to encourage you to provide some more information so that someone _can_ help you... Mentioning in the subject that your question is about Twisted would certainly be a step in the right direction, as would at _least_ touching on what you're intending to do, what you've tried,

Re: What are OOP's Jargons and Complexities?

2005-05-24 Thread Tassilo v. Parseval
Also sprach 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. >> >> I'm just curious, what do you mean by /strong/ typing, and which strongly >> typed languages do you know? >

Re: What are OOP's Jargons and Complexities?

2005-05-24 Thread alex goldman
Tassilo v. Parseval wrote: > Also sprach 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. >>> >>> I'm just curious, what do you mean by /strong/ typing, and which >>>

Re: Access lotus notes using Python

2005-05-24 Thread Sateesh
Hi, What I am trying to do is to retrieve data from Lotus Notes Domino server and display the results in some specific format. I initially thought of doing it using Java JDBC (specifically thru JdbcDomino.jar file), but was not successful in getting the jar file (looks like IBM has removed the supp

Re: Terminating a thread from the parent

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

Re: Access lotus notes using Python

2005-05-24 Thread Thor Arne Johansen
Sateesh wrote: > Hi, > Is it possible to access Lotus notes using Python? Can anyone provide me > some pointers? > > Thanks > Sateesh > > NotesSQL is an ODBC driver for Notes. Using NotesSQL and a python odbc connection you can use the standard python db-api2 to access tables. (Examples of o

Re: Access lotus notes using Python

2005-05-24 Thread [EMAIL PROTECTED]
try this import win32com.client session = win32com.client.Dispatch('Lotus.NotesSession') session.Initialize(r'') db = session.GetDatabase('',r'.nsf') view = db.GetView(r'') doc = view.GetFirstDocument() print doc.GetFirstItem('ii').Values domino return string as unicod

Re: Just remember that Python is sexy

2005-05-24 Thread Fuzzyman
Scott Kirkwood wrote: > I often can't remember that to remove spaces from a string whether it's > strip() or trim(), and when finding patterns with the re library > whether it's find() or search() and when iterating over key, values of > a dictionary whether it's items() or entries(). > But then I

Re: Access lotus notes using Python

2005-05-24 Thread jm
try this import win32com.client session = win32com.client.Dispatch('Lotus.NotesSession') session.Initialize(r'') db = session.GetDatabase('',r'.nsf') view = db.GetView(r'') doc = view.GetFirstDocument() print doc.GetFirstItem('ii').Values domino return string as unicod

Re: Encryption with Python?

2005-05-24 Thread Anthra Norell
I wasn't going to pursue this any further. Actually, I am quite disappointed about the belligerent style of some correspondents. It's not necessary. It spoils the fun. It cloggs bandwidth. Why whack someone over the head who tries to develop an idea of his own. Such an approach isn't uncommon to

Re: Access lotus notes using Python

2005-05-24 Thread Sateesh
Hi, Thanks very much for the input. Could you please tell me where I could get the API reference for these COM classes to access Lotus Notes? Thanks again Sateesh <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > try this > > import win32com.client > session = win32com.client.Dispatch(

Re: re[2]: Com object questions

2005-05-24 Thread Roger Upole
I took a look at the code that generates the Record info, and it doesn't handle records that don't have a guid (or more accurately, the guid is GUID_NULL). They're still supposed to show up in the generated module with a comment stating that they weren't handled. However, it's trying to keep t

Static binding

2005-05-24 Thread Tommy.Ryding
Is it possible to use SWIG generated wrapper files when I want to statically bind my extentions? //Tommy -- http://mail.python.org/mailman/listinfo/python-list

searching substrings with interpositions

2005-05-24 Thread [EMAIL PROTECTED]
hi everyone. a problem: two binary strings, a="0101" b="0100"; i search a function f(a,b) that gives 1 if a is "contained" in b with any sub strings interposed. in this example a in contained cause 000<01>111<01>00 but also 0<0>00<101>00" but also <0>000<101>00 but also 000<0><

Re: What are OOP's Jargons and Complexities?

2005-05-24 Thread Tassilo v. Parseval
Also sprach alex goldman: > Tassilo v. Parseval wrote: >> Most often, languages with strong typing can be found on the functional >> front (such as ML and Haskell). These languages have a dynamic typing >> system. > > No, ML & Haskell are strongly and statically typed. Read this paper if > inter

Re: searching substrings with interpositions

2005-05-24 Thread bplumhoff
Hello Giorgi, I suggest to google for "python boyer moore" to get a fast implementation of a string search algorithm in Python (the Boyer-Moore algorithm). One promising hit seems to be: http://www.egenix.com/files/python/mxTextTools.html HTH, Bernd -- http://mail.python.org/mailman/listinfo/p

Re: searching substrings with interpositions

2005-05-24 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > hi everyone. > a problem: > two binary strings, a="0101" b="0100"; > i search a function f(a,b) that gives 1 if a is "contained" in b with > any sub strings interposed. > in this example a in contained cause 000<01>111<01>00 but also > 0<0>00<101>00" > but al

Melbourne (Australia) Python User Group

2005-05-24 Thread Anthony
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 going to be a user group, I'll have to start it myself (hopefully witho

Re: What are OOP's Jargons and Complexities?

2005-05-24 Thread Joe Smith
Xah Lee wrote: > The Rise of Classes, Methods, Objects 1) Most of the information you posted was incomplete and much of it is just plain wrong. 2) What you posted was not perl related. Are you deliberately trying to make yourself a laughingstock? -- http://mail.python.org/mailman/listinfo/

Re: Access lotus notes using Python

2005-05-24 Thread jm
Lotus Domino Designer 6.5.1 Help (instaled by notesdesigner) see section LotusScript/COM/OLE Classes & LotusScript Classes A-Z -- http://mail.python.org/mailman/listinfo/python-list

Re: searching substrings with interpositions

2005-05-24 Thread Claudio Grondi
> i search a function f(a,b) that gives 1 if a is "contained" in b with > any sub strings interposed. If I understand it right, it should be something like this: def blnFindCharSequenceAevenIfSpreadOverEntireStringB(strA, strB): intNoOfCharsFound = 0 intPtrToBeginOfSubsectionOfB = 0 intLenA

reg python related job searching

2005-05-24 Thread praba kar
Dear All, Can any one guide me how to get python related jobs?. Actually Now I am in Python web programming field. I have technical knowledge about Python, ZOPE and Twisted-web(Twisted Python) with 1 year exp.. Yahoo! Ind

Hacking the scope to pieces

2005-05-24 Thread Hugh Macdonald
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 refer to it simply as 'myModule', wi

ANN: Leo 4.3 final

2005-05-24 Thread Edward K. Ream
Leo 4.3 final is now available at http://sourceforge.net/projects/leo/ Leo 4.3 is here after almost five months of work. The defining features of Leo 4.3: - 1. Leo now stores options in @settings trees, that is, outlines whose headline is '@settings'. When opening

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

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

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

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: 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

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: 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

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: 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/

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: 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

\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

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

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

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: 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

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: 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

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: 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: > >

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: \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: 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

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: 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

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

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: 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!

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

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: [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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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

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: 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

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: 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

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: 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

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: 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

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

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: 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

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: 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: 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: 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: 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: 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: 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: 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: 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

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: 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

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

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: 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

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: 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 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: 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: 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: 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: 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: 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: 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

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

  1   2   >