Re: Python To Send Emails Via Outlook Express

2004-12-20 Thread ian
Hi Fredrik, Thank you for the suggestion. I tried different from/to settings and guess what? The mail came thru. The script is now.. import win32com.client s = win32com.client.Dispatch('CDO.Message') s.From = "[EMAIL PROTECTED]"(was "[EMAIL PROTECTED]") s.To = "[E

Re: How about "pure virtual methods"?

2004-12-20 Thread Carl Banks
Fredrik Lundh wrote: > (I think you could create some kind of drinking game based on the number of > non-quoted lines between the "From"-line and the first line containing the word > "boo" in Doug's posts on comp.lang.python. A little like the game based on the > number of minutes between someone m

Re: Language fluency (was Re: BASIC vs Python)

2004-12-20 Thread Andrew Dalke
Keith Dart wrote: > Are you saying that if you write, > full time, code for "production", that fluency will decrease? To add to Aahz's response, there are some corners of Python I learned once and decided shouldn't be in production code because it would be too hard to maintain. 'reduce' is one o

Re: Python To Send Emails Via Outlook Express

2004-12-20 Thread Ganesan R
> "ian" == ian <[EMAIL PROTECTED]> writes: > But all I want to do is use Python to instruct Outlook Express to send an > email. That way the user would not have to do any setting up etc of the > mail server properties etc and Outlook Express will magage all the > connection side of things.

Re: BASIC vs Python

2004-12-20 Thread Andrew Dalke
/F > import random, winsound Now if it only worked for my mac ... :) Andrew [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Language fluency (was Re: BASIC vs Python)

2004-12-20 Thread Alan Gauld
On 19 Dec 2004 16:22:03 -0500, [EMAIL PROTECTED] (Aahz) wrote: > >I'm curious about that last statement. Are you saying that if you > >write, full time, code for "production", that fluency will decrease? Or > >that the nifty recent features of Python (generators, etc.) are not > >useful in "produc

Re: Is this a good use for lambda

2004-12-20 Thread Max M
The entity Fredrik Lundh wrote: Isn't it about time you became xml avare, and changed that to: ? -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: BASIC vs Python

2004-12-20 Thread Alan Gauld
> >>> was too late). A machine designed to be run on Forth would have been > >>> unbelievably powerful from the late 70s to the mid 90s (it would be > >>> more painful now than the x86 legacy, but still). A small data point here is that Sun still use Forth in their Sparc workstations. Their syste

Re: Python To Send Emails Via Outlook Express

2004-12-20 Thread ian
Hi Ganesan Wow, I'm REALLY impressed with the high level of support in this forum. (Another great reason to continue learning Python I tried what you suggested. After trying a different from/to address the message is sent. But it is NOT sent via Outlook Express. I would appreciate any other sug

RE: Is this a good use for lambda

2004-12-20 Thread Duncan Booth
Walter S. Leipold wrote: > I think that Charlie's point is that, when you use "def ", you have > polluting your namespace. The whole program becomes harder to > understand because you can't ignore anywhere, even if it was only > ever intended to be used in one place. It's a good point, and reas

Re: Is this a good use for lambda

2004-12-20 Thread Michael Hoffman
Max M wrote: Isn't it about time you became xml avare, and changed that to: That makes no sense. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Boo who? (was Re: newbie question)

2004-12-20 Thread Peter Hansen
Doug Holton wrote: Peter Hansen wrote: "Virtually identical" indeed. :-) As noted on the website that I've pointed out to you multiple times now, the syntax of boo is indeed virtually identical to python. The functionality however, is more like C#. Sadly your second post hasn't reached my news s

Re: BASIC vs Python

2004-12-20 Thread Erik Max Francis
Alan Gauld wrote: A small data point here is that Sun still use Forth in their Sparc workstations. Their system prompt is really a Forth interpreter... I don;t know where the interpreter resides, presumably not in Sparc since its a RISC but interesting that they still use it. (Or they did last time

Re: newbie question

2004-12-20 Thread Steve Holden
Doug Holton wrote: David Wurmfeld wrote: I am new to python; any insight on the following would be appreciated, even if it is the admonition to RTFM (as long as you can direct me to a relevant FM) Is there a standard approach to enumerated types? I could create a dictionary with a linear set of

Re: Is this a good use for lambda

2004-12-20 Thread Steve Holden
Michael Hoffman wrote: Max M wrote: Isn't it about time you became xml avare, and changed that to: That makes no sense. Yeah, but give the guy a break, we've all made feeble attempts at humor from time to time. You realize, I suppose, that it's a reference to the fact that XHTML uses lower-case

Re: how to pass globals across modules (wxPython)

2004-12-20 Thread Peter Hansen
Martin Drautzburg wrote: My wxPython program starts execution in mainFrame.py like this def main(): global application application=MainApp(0) application.MainLoop() I need to access the "application" object from other modules, actually the win

Re: accessing module global vars by name

2004-12-20 Thread Peter Hansen
Martin Drautzburg wrote: Withing a module I can assign a value to a global var by assigning to it in the outermost scope. Fine. But how can I do this if the attribute name itself is kept in a variable. Once the module is loaded I can access the module's namespace no problem, but inside the module t

Re: MySQLdb & Python 2.4 on Windows

2004-12-20 Thread Matthias Verniers
Fredrik Lundh schreef: Matthias Verniers wrote: 2. Is it possible to use Python 2.4 & 2.3 next to each other without conflicts? yes, assuming "next to each other" means "on the same machine". but binary extensions are bound to the Python version they were built for; you cannot use a 2.3 extension

Re: input record seperator (equivalent of "$|" of perl)

2004-12-20 Thread Gábor Farkas
Scott David Daniels wrote: M.E.Farmer wrote: I dont have itertools yet. That module looks like it rocks. thanks for the pointers, M.E.Farmer If you have python 2.3 or 2.4, you have itertools. for me it seems that 2.3 does not have itertools.groupby. it has itertools, but not itertools.groupby. act

Re: input record seperator (equivalent of "$|" of perl)

2004-12-20 Thread Nick Coghlan
[EMAIL PROTECTED] wrote: I would like to read this file as a record. I can do this in perl by defining a record seperator; is there an equivalent in python? Depending on your exact use case, you may also get some mileage out of using the csv module with a custom delimeter. Py> from csv import re

Re: MySQLdb & Python 2.4 on Windows

2004-12-20 Thread Steve Holden
Fredrik Lundh wrote: Matthias Verniers wrote: 2. Is it possible to use Python 2.4 & 2.3 next to each other without conflicts? yes, assuming "next to each other" means "on the same machine". but binary extensions are bound to the Python version they were built for; you cannot use a 2.3 extension w

Re: Is this a good use for lambda

2004-12-20 Thread Simo Melenius
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > Simo Melenius wrote: > > Sure, but mental pollution counts too IMO. What you write and what you > > read must go through your brain, including dummy variables. And next > > you start thinking how to "hide" it from your own mind (e.g. naming it > > "_my

Re: MySQLdb & Python 2.4 on Windows

2004-12-20 Thread Steve Holden
Steve Holden wrote: Using the recently-publicized methods for the using the freely-available (i.e. costless) Microsoft tool chain I managed to create a Windows installer for MySQLdb-1.1.4. Whoops, make that "... for MySQLdb-1.0.0" caught-using-the-time-machine-ly y'rs - steve -- Steve Holden

Re: Python To Send Emails Via Outlook Express

2004-12-20 Thread Ganesan R
> "ian" == ian <[EMAIL PROTECTED]> writes: > Hi Ganesan > Wow, I'm REALLY impressed with the high level of support in this forum. > (Another great reason to continue learning Python Well, I am a Linux guy myself. I experimented with win32com a bit a couple of weeks back, so I am trying my i

convert \uXXXX to native character set?

2004-12-20 Thread Joe Wong
Hi,    Is there any library to convert HTML page with \u encoded text to native character set, e.g. BIG5.   Regards,   - Joe   No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.6.0 - Release Date: 2004/12/17 -- http://mail.python.org

Re: Is this a good use for lambda

2004-12-20 Thread Max M
Steve Holden wrote: Max M wrote: Isn't it about time you became xml avare, and changed that to: Yeah, but give the guy a break, we've all made feeble attempts at humor from time to time. Hey, what's wrong with a little nørd humor... I just found it amusing that somenone like Frederik Lundh, who h

Re: MySQLdb & Python 2.4 on Windows

2004-12-20 Thread Matthias Verniers
Steve Holden schreef: Fredrik Lundh wrote: Matthias Verniers wrote: 2. Is it possible to use Python 2.4 & 2.3 next to each other without conflicts? yes, assuming "next to each other" means "on the same machine". but binary extensions are bound to the Python version they were built for; you canno

Re: convert \uXXXX to native character set?

2004-12-20 Thread Miki Tebeka
Hello Joe, > Is there any library to convert HTML page with \u encoded text to >native character set, e.g. BIG5. Try: help("".decode) Bye. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only diff

eScrew zen story

2004-12-20 Thread eScrewDotCom
eScrew Welcome to eScrew! eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew story if you promise eScrew to consider eScrew story as joke. eScrew story is very funny. eScrew story is so funny that eScrew will have to take break from time to time because eScrew needs some rest f

Re: Boo who? (was Re: newbie question)

2004-12-20 Thread Luis M. Gonzalez
Peter Hansen wrote: > And given that Boo is *not* virtually identical to Python*, > pointing it out to a self-proclaimed newbie with a question > about enums seems like nothing more than an ill-chosen > moment to do a little proselytizing. Why not just start > a thread about Boo and point it out

Re: Web forum (made by python)

2004-12-20 Thread Alan Kennedy
[Doug Holton] What is up with the trollers today? They are out in force now that the holidays are here. Or because it's almost the shortest day of the year? I'm looking out my latitude-52°N office window at a pale sun that has barely made it above the horizon. Today will be less than 8 hours long

Re: Why are tuples immutable?

2004-12-20 Thread Antoon Pardon
On 2004-12-17, John Roth <[EMAIL PROTECTED]> wrote: > I came in on this thread a bit late. The strictly > pragmatic answer to the question in the > header should be obvious. > > If tuples were mutable, then there would be > no difference between tuples and lists, so > there would be no need for tup

Re: MySQLdb & Python 2.4 on Windows

2004-12-20 Thread Steve Holden
Matthias Verniers wrote: [...] Good job! It would be nice if I could have a copy of your installer. I am one of the interested people ;-) Regards As I reported, I've shipped a copy of the installer to Andy Dustman, so it will appear on SourceForge in due course. For those who can't wait, there'

Re: MySQLdb & Python 2.4 on Windows

2004-12-20 Thread Matthias Verniers
Steve Holden schreef: Matthias Verniers wrote: [...] Good job! It would be nice if I could have a copy of your installer. I am one of the interested people ;-) Regards As I reported, I've shipped a copy of the installer to Andy Dustman, so it will appear on SourceForge in due course. For those w

Re: Web forum (made by python)

2004-12-20 Thread Nick Coghlan
Alan Kennedy wrote: But I really don't think we've had any trolls in the NG lately, although perhaps one or two people have been *extremely* grumpy ;-) Aye - one thing I've noticed on both py-dev and here, is that when people seem especially snippy, sarcastic or touchy, my best bet is to assume i

Re: Is this a good use for lambda

2004-12-20 Thread Fredrik Lundh
> I just found it amusing that somenone like Frederik Lundh, who has > written xml stuff like ElementTree, uses something that reminds of an old > HTML tag as a sig. it's a perfectly valid XML end tag. locating the start tag is left as an exercise... -- http://mail.python.org/mailman/l

Best GUI for small-scale accounting app?

2004-12-20 Thread Bulba!
I'll soon start development of a specialized small app and need to choose GUI for it. I have narrowed the choice to wxPython/PythonCard and QT/PyQT (buying commercial licenses is not a big problem, the company would pay for it). Which is better for this kind of application? I mean, looking f

Recursive structures

2004-12-20 Thread bearophileHUGS
(This is a repost from another python newsgroup). While using some nested data structures, I've seen that I'd like to have a function that tells me if a given data structure contains one or more cyclic references (a way to recognise a cycle in a graph is to do a depth-first search, marking vertices

Re: Web forum (made by python)

2004-12-20 Thread Fredrik Lundh
Nick Coghlan wrote: > Aye - one thing I've noticed on both py-dev and here, is that when people > seem especially snippy, > sarcastic or touchy, my best bet is to assume it's something in real life > that's pissing them off, > rather than anything I actually said. works both ways -- it can be

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Paul Rubin
Bulba! <[EMAIL PROTECTED]> writes: > I'll soon start development of a specialized small app and need > to choose GUI for it. > > I have narrowed the choice to wxPython/PythonCard and QT/PyQT What does the app need to do? I'd try to make it web based unless there's a good reason not to. That'

Re: embedding: forcing an interpreter to end

2004-12-20 Thread Diez B. Roggisch
Hi, > I've googled my heart out and reread the threading API countless times. > Any suggest or hints would be greatly appreciated. You might have used the wrong keywords - the subject of killable threads comes up every month once or twice, and usually is discussed to some length. There exist some

Re: Recursive structures

2004-12-20 Thread Fredrik Lundh
<[EMAIL PROTECTED]> wrote: > (This is a repost from another python newsgroup). > While using some nested data structures, I've seen that I'd like to > have a function that tells me if a given data structure contains one or > more cyclic references (a way to recognise a cycle in a graph is to do >

Re: Python To Send Emails Via Outlook Express

2004-12-20 Thread Steve Holden
[EMAIL PROTECTED] wrote: Hi Fredrik, Thank you for the suggestion. I tried different from/to settings and guess what? The mail came thru. The script is now.. import win32com.client s = win32com.client.Dispatch('CDO.Message') s.From = "[EMAIL PROTECTED]"(was "[EMAIL P

Re: Boo who? (was Re: newbie question)

2004-12-20 Thread Steve Holden
Luis M. Gonzalez wrote: Peter Hansen wrote: And given that Boo is *not* virtually identical to Python*, pointing it out to a self-proclaimed newbie with a question about enums seems like nothing more than an ill-chosen moment to do a little proselytizing. Why not just start a thread about Boo and

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Diez B. Roggisch
> I have narrowed the choice to wxPython/PythonCard and QT/PyQT > (buying commercial licenses is not a big problem, the company > would pay for it). > > Which is better for this kind of application? I mean, looking > from purely technological and long-term development aspects > and ignoring licens

Re: Is this a good use for lambda

2004-12-20 Thread Fredrik Lundh
Simo Melenius wrote: >> use something short, like "f". hopefully, a single character won't overload >> your brain. > > I've heard some brain can tackle even Java's overly verbose syntax I find that hard to believe. Are you sure they're not relying on eclipse, or some other body part? > Like s

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Steve Holden
Paul Rubin wrote: Bulba! <[EMAIL PROTECTED]> writes: I'll soon start development of a specialized small app and need to choose GUI for it. I have narrowed the choice to wxPython/PythonCard and QT/PyQT What does the app need to do? I'd try to make it web based unless there's a good reason not

Parallelization with Python: which, where, how?

2004-12-20 Thread Mathias
Dear NG, I have a (pretty much) "emberassingly parallel" problem and look for the right toolbox to parallelize it over a cluster of homogenous linux workstations. I don't need automatic loop-parallelization or the like since I prefer to prepare the work packets "by hand". I simply need - to spec

Re: Python To Send Emails Via Outlook Express

2004-12-20 Thread ian
Hi Steve, > Why the insistence on using Outlook Express, is you don;t mind me asking? Good question. The problem is that I have a developed a freeware application called Kirby Alarm And Task Scheduler (see www.kirbyfooty.com). The program can pop up a note, run a program, play a sound, or send an e

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Bulba!
On 20 Dec 2004 04:43:06 -0800, Paul Rubin wrote: >> I'll soon start development of a specialized small app and need >> to choose GUI for it. >> >> I have narrowed the choice to wxPython/PythonCard and QT/PyQT >What does the app need to do? Basically, it's for a "d

Re: Funny story about python

2004-12-20 Thread Lucas Raab
[snip] eScrew eScrew will keep writing this shit because eScrew enjoys to masturbate your spiritual sense of self eScrew Awww, it was such a good story until now. -- http://mail.python.org/mailman/listinfo/python-list

Re: No acceptable C compiler was found in $PATH

2004-12-20 Thread Peter Nuttall
On Monday 20 Dec 2004 03:58, banaticus wrote: > What does this error message mean? What can I do to fix it? > > Here'e the command that I just tried running, and the messages that > I received. I just barely unpacked python. > > linux:/Python-2.4 # ./configure > checking MACHDEP... linux2 > check

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Bulba!
On Mon, 20 Dec 2004 08:03:38 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: >Personally I think that the choice may well come down to which API is >closest to what Bulba has used in the past. Well I haven't used any of them - I only plan to start learning and using GUI toolkits. Hence the questi

Re: Parallelization with Python: which, where, how?

2004-12-20 Thread Fredrik Lundh
"Mathias" <[EMAIL PROTECTED]> wrote: > I have a (pretty much) "emberassingly parallel" problem and look for the > right toolbox to > parallelize it over a cluster of homogenous linux workstations. I don't need > automatic > loop-parallelization or the like since I prefer to prepare the work pa

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Paul Rubin
Steve Holden <[EMAIL PROTECTED]> writes: > > What does the app need to do? I'd try to make it web based unless > > there's a good reason not to. That's even if it just runs on the > > user's desktop; run the http listener on the localhost and let the > > user connect to it with a browser. > > I'm

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Paul Rubin
Bulba! <[EMAIL PROTECTED]> writes: > BTW, do you have any experience with how respective GUI builders > actually work? QT Designer seems great and people seem to use > it in industry, but how useful is PythonCard useful in real-world app > development? I'd use Glade if I could. -- http://mail.pyt

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Carlos Ribeiro
On Mon, 20 Dec 2004 14:20:43 +0100, Bulba! <[EMAIL PROTECTED]> wrote: > On 20 Dec 2004 04:43:06 -0800, Paul Rubin > >I'd try to make it web based unless > >there's a good reason not to. > > Reason 1: It would be somewhat complex to develop it using > PHP (I have done some recon in that area) and u

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Paul Rubin
Bulba! <[EMAIL PROTECTED]> writes: > Reason 1: It would be somewhat complex to develop it using > PHP (I have done some recon in that area) and using GUI > on Windows is actually faster way of entering and editing data > than via the Web browser I think. Well, I was concentrating more on imple

Re: Parallelization with Python: which, where, how?

2004-12-20 Thread Paul Rubin
Mathias <[EMAIL PROTECTED]> writes: > Can someone recommend a parallelization approach? Are there examples > or documentation? Has someone got experience with stability and > efficiency? In the "persistent objects" thread someone mentioned a very cool package called POSH: http://poshmodule.source

Re: Python To Send Emails Via Outlook Express

2004-12-20 Thread Max M
[EMAIL PROTECTED] wrote: Hi Steve, When it comes to sending emails the user has the option of sending them via smtp, or via there email client (eg outlook express). I prefer the send method as this makes setting up the email parameters a lot easier for the user. If Outlook Express cannot be autom

Re: Boo who? (was Re: newbie question)

2004-12-20 Thread Luis M. Gonzalez
Steve, I didn't want to be agressive at all. Although now that I read again my post, it seems a little bit harsh... But I see that very often in this list, some replies show much of intolerance and very little politeness. And in my oppinion, this is one of these cases. I don't know what Doug Holt

Newbie: A very basic problem related to cgi.py

2004-12-20 Thread Ali
Hello all, I have got a very simple python code: ___ #!/usr/bin/python import cgi def main(): print "Content-type: text/html\n" form = cgi.FieldStorage() if form.has_key("firstname") and form["firstname"].value != "": print "Hello", form["firstname"].value, "" else: print

Re: Use macros in Excel via win32com

2004-12-20 Thread chris
This makes sense. Thanks for the ideas. -- http://mail.python.org/mailman/listinfo/python-list

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread RM
Here is another question, are you deploying in Linux, Windows, Mac, or some combination of these? I think that may be a big factor to consider. I do like the look of Qt under Linux, however, I have never seen it under Windows. Qt seems to be very focused in Linux, with Mac and Windows support as

Re: Writev

2004-12-20 Thread Adam DePrince
On Mon, 2004-12-20 at 02:18, Steven Bethard wrote: > Adam DePrince wrote: > > file.writelines( seq ) and map( file.write, seq ) are the same; the > > former is syntactic sugar for the later. > > Well, that's not exactly true. For one thing, map(file.write, seq) > returns a list of Nones, while f

Re: Parallelization with Python: which, where, how?

2004-12-20 Thread Ganesan R
> "Mathias" == Mathias <[EMAIL PROTECTED]> writes: > Dear NG, > I have a (pretty much) "emberassingly parallel" problem and look for > the right toolbox to parallelize it over a cluster of homogenous linux > workstations. I don't need automatic loop-parallelization or the like > since I prefe

mx Oddity in FC3/RedHat ES

2004-12-20 Thread Eric Azarcon
Hello! I've installed the mx package from egenix, and I am experiencing pretty odd behaviour. If I launch python and run the following commands, I get an error: >>> import mx >>> from mx import * >>> mx.DateTime.today() Traceback (most recent call last): File "", line 1, in ? AttributeError: '

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Bulba!
On Mon, 20 Dec 2004 11:37:23 -0200, Carlos Ribeiro <[EMAIL PROTECTED]> wrote: But if the data entry >forms are simple, I recommend you to check some lightweight approaches >for Web development in Python. I personally used CherryPy >(www.cherrypy.org); you can also check Quixote or Snakelets. All th

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Bulba!
On 20 Dec 2004 05:36:48 -0800, Paul Rubin wrote: >Zope seems huge to me too. I'd just use a Python cgi, optionally with >one of the simpler Python template libraries. Just try to keep things >simple, and never allow access except to authorized, trusted users >(i.e. don

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Bulba!
On 20 Dec 2004 05:53:03 -0800, "RM" <[EMAIL PROTECTED]> wrote: >Here is another question, are you deploying in Linux, Windows, Mac, or >some combination of these? I think that may be a big factor to >consider. I do like the look of Qt under Linux, however, I have never >seen it under Windows. Q

Re: Funny story about python

2004-12-20 Thread has
[EMAIL PROTECTED] wrote: > eScrew > Welcome to eScrew! > > eScrew is eScrew and this is eScrew story. [snip massive waste of bytes] Not sure which is less Turing-complete: eScrew, or eScrew's author... -- http://mail.python.org/mailman/listinfo/python-list

Re: Funny story about python

2004-12-20 Thread has
has wrote: > Not sure which is less Turing-complete: eScrew, or eScrew's author... Oops, I meant 'AI-complete'. -- http://mail.python.org/mailman/listinfo/python-list

Re: Funny story about python

2004-12-20 Thread has
has wrote: > Not sure which is less Turing-complete: eScrew, or eScrew's author... Oops, I meant 'AI-complete'. -- http://mail.python.org/mailman/listinfo/python-list

Re: Funny story about python

2004-12-20 Thread has
has wrote: > Not sure which is less Turing-complete: eScrew, or eScrew's author... Oops, I meant 'AI-complete'. -- http://mail.python.org/mailman/listinfo/python-list

Re: Funny story about python

2004-12-20 Thread has
has wrote: > Not sure which is less Turing-complete: eScrew, or eScrew's author... Oops, I meant 'AI-complete'. -- http://mail.python.org/mailman/listinfo/python-list

Re: Funny story about python

2004-12-20 Thread has
has wrote: > Not sure which is less Turing-complete: eScrew, or eScrew's author... Oops, I meant 'AI-complete'. -- http://mail.python.org/mailman/listinfo/python-list

Re: Funny story about python

2004-12-20 Thread has
has wrote: > > > Not sure which is less Turing-complete: eScrew, or eScrew's author... > > Oops, I meant 'AI-complete'. On second thoughts, 'Turing-complete' works too. -- http://mail.python.org/mailman/listinfo/python-list

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Phil Thompson
> Here is another question, are you deploying in Linux, Windows, Mac, or > some combination of these? I think that may be a big factor to > consider. I do like the look of Qt under Linux, however, I have never > seen it under Windows. Qt seems to be very focused in Linux, with Mac > and Windows

extending python with a C-written dll

2004-12-20 Thread Jean-Baptiste PERIN
Hi, I'm trying to make a windows dll reachable from a python script .. and I'm encountering troubles during link step .. I use "lcc" to compile and link I use python 2.3 under win XP Here's the compile command which seems to work well : - lcclnk

Re: Boo who? (was Re: newbie question)

2004-12-20 Thread Steve Holden
Luis M. Gonzalez wrote: Steve, I didn't want to be agressive at all. Although now that I read again my post, it seems a little bit harsh... But I see that very often in this list, some replies show much of intolerance and very little politeness. And in my oppinion, this is one of these cases. I don

Re: Boo who? (was Re: newbie question)

2004-12-20 Thread Stephen Waterbury
Luis M. Gonzalez wrote: Steve, I didn't want to be agressive at all. Although now that I read again my post, it seems a little bit harsh... But I see that very often in this list, some replies show much of intolerance and very little politeness. And in my oppinion, this is one of these cases. I don

Re: Newbie: A very basic problem related to cgi.py

2004-12-20 Thread Ali
Okay, i don't know what the problem is... I ran python in interactive mode and tried "import cgi.py" and i got the same error... Any ideas? -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie: A very basic problem related to cgi.py

2004-12-20 Thread Steve Holden
Ali wrote: > Hello all, > > I have got a very simple python code: > ___ > > #!/usr/bin/python > import cgi > > def main(): > print "Content-type: text/html\n" > form = cgi.FieldStorage() > if form.has_key("firstname") and form["firstname"].value != "": > print "Hello", form[

Re: extending python with a C-written dll

2004-12-20 Thread Grant Edwards
On 2004-12-20, Jean-Baptiste PERIN <[EMAIL PROTECTED]> wrote: > I'm trying to make a windows dll reachable from a python script.. FWIW, you can call dll's using the ctypes modules without mucking around in C. There may be performance reasons to build a "real" python module, but I haven't run acr

Re: mx Oddity in FC3/RedHat ES

2004-12-20 Thread Steve Holden
Eric Azarcon wrote: Hello! I've installed the mx package from egenix, and I am experiencing pretty odd behaviour. If I launch python and run the following commands, I get an error: import mx from mx import * mx.DateTime.today() Well, from anything import * is bad form for any module unless (lik

Re: Newbie: A very basic problem related to cgi.py

2004-12-20 Thread Peter Hansen
Ali wrote: Okay, i don't know what the problem is... I ran python in interactive mode and tried "import cgi.py" and i got the same error... Any ideas? Probably nothing really helpful, I'm afraid. Still, try these ones out: 1. When you tried "import cgi.py" from the interactive prompt, was that r

Re: Newbie: A very basic problem related to cgi.py

2004-12-20 Thread Peter Hansen
Steve Holden wrote: Traceback (most recent call last): File "cgi.py", line 2, in ? import cgi File "/c/steve/cgi.py", line 12, in ? main() File "/c/steve/cgi.py", line 6, in main form = cgi.FieldStorage() AttributeError: 'module' object has no attribute 'FieldStorage' Ha! There's

Re: Newbie: A very basic problem related to cgi.py

2004-12-20 Thread Ali
You are right, I had first named my file cgi.py... but then i realized that it was causing conflicts so i renamed it to mycgi.py as you can see in the trace, but the problem persisted... After reading your reply i took a look at the directory i was in and there was a pyc file in it... cgi.pyc, i r

Re: Newbie: A very basic problem related to cgi.py

2004-12-20 Thread Ali
>1. When you tried "import cgi.py" from the interactive prompt, >was that really what you typed? Because that's not a valid >import statement for the cgi module. You should have done >"import cgi" instead. import cgi was giving me the same error, because it was importing from the cgi.pyc? >3. The

Re: extending python with a C-written dll

2004-12-20 Thread Jean-Baptiste PERIN
Grant Edwards a écrit : On 2004-12-20, Jean-Baptiste PERIN <[EMAIL PROTECTED]> wrote: I'm trying to make a windows dll reachable from a python script.. FWIW, you can call dll's using the ctypes modules without mucking around in C. There may be performance reasons to build a "real" python module,

Re: how to pass globals across modules (wxPython)

2004-12-20 Thread Larry Bates
I also struggled with this until I looked into many of the wxWindows examples. They all tend to pass in the parent to each subsequent layer of classes so that they can easily refer backwards in the hierarchy. Example In your code you will find that inside of SetTopWindow you have parent as the fir

Re: Newbie: A very basic problem related to cgi.py

2004-12-20 Thread Steve Holden
Peter Hansen wrote: Steve Holden wrote: Traceback (most recent call last): File "cgi.py", line 2, in ? import cgi File "/c/steve/cgi.py", line 12, in ? main() File "/c/steve/cgi.py", line 6, in main form = cgi.FieldStorage() AttributeError: 'module' object has no attribute 'FieldS

Re: Boo who? (was Re: newbie question)

2004-12-20 Thread Luis M. Gonzalez
Steve and Steve N°2, I agree with Steve N°1 that we are all entitled to express our oppinions, and this is the way it should be. I don't want to give the impression that I have something personal against anyone here, and I agree that this list is quite civilized, but again, I'm basing my comments

Re: Time Difference

2004-12-20 Thread Gabriel Cooper
GMane Python wrote: Hello I was wondering if there is an existing function that would let me determine the difference in time. For a more robust solution, checkout Python's profile module. http://docs.python.org/lib/profile.html -- http://mail.python.org/mailman/listinfo/python-list

Re: mx Oddity in FC3/RedHat ES

2004-12-20 Thread Eric Azarcon
In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: >from anything import * > > is bad form for any module unless (like Tkinter, for example) it's been Ah, I see. Thank you. Is there any reference, or way for me to determine whether something can/should be imported in th

type method-wrapper?

2004-12-20 Thread Thomas Guettler
Hi, l=[] print type(l.__delattr__) # --> I didn't find a corresponding type in the modules "types". Is it missing or am I blind? (Python 2.3.3) -- Thomas Güttler, http://www.thomas-guettler.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python To Send Emails Via Outlook Express

2004-12-20 Thread ian
Hi Max, Thanks for the suggestion. I'm always open to new ideas. Can you please tell me how to retrieve the default account settings from Outlook Express? Ian -- http://mail.python.org/mailman/listinfo/python-list

Re: extending python with a C-written dll

2004-12-20 Thread Grant Edwards
On 2004-12-20, Jean-Baptiste PERIN <[EMAIL PROTECTED]> wrote: >>>I'm trying to make a windows dll reachable from a python script.. >> >> FWIW, you can call dll's using the ctypes modules without >> mucking around in C. There may be performance reasons to build >> a "real" python module, but I ha

Re: Recursive structures

2004-12-20 Thread Thomas Guettler
Am Mon, 20 Dec 2004 04:22:24 -0800 schrieb bearophileHUGS: > I've seen that I'd like to > have a function that tells me if a given data structure contains one or > more cyclic references Hi, does this help you? from types import * def isrecursive(obj, dict=None): if dict==None: dic

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Paul Rubin
Bulba! <[EMAIL PROTECTED]> writes: > "Your CherryPy powered web applications are in fact stand-alone Python > applications embedding their own web server. You can deploy them > anywhere you can run Python applications." - cool!! You might not really want a separate socket listener for each applica

  1   2   3   >