Re: Fun with Outlook and MAPI

2004-12-13 Thread Steve Holden
sages to the Sent folder). Chris Well, in that case please excuse my crotchetiness. It's probably the time of year. bah-humbug-ly y'rs - steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4

Re: thread/queue bug

2004-12-13 Thread Steve Holden
g wrong with doing it. Bearing in mind that module initialisation is always one-off, relying on import to trigger such complex behavior is probably a design that will mislead users into false expectations. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: while 1 vs while True

2004-12-13 Thread Steve Holden
nate that so many people chose to use that for compatibility, when if they'd used the same code that the win32all extensions did they could have retained backward compatibility even across a change to constants: try: True except AttributeError: True, False = (1==1), (1!=1) regard

Re: lies about OOP

2004-12-13 Thread Steve Holden
r contention that SmallTalk was a curiosity - unless you define anything of interest mostly to the academic world as a curiosity, in which case there's no way to overcome your objection. It was the first major implementation of an entire system based exclusively on OO programming concepts

Re: while 1 vs while True

2004-12-14 Thread Steve Holden
Fredrik Lundh wrote: Steve Holden wrote: It was unfortunate that so many people chose to use that for compatibility, when if they'd used the same code that the win32all extensions did they could have retained backward compatibility even across a change to constants: try: True e

Re: lies about OOP

2004-12-14 Thread Steve Holden
Paul McGuire wrote: "Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [some stuff] Good points all. And yes, I recall the BYTE article on Smalltalk. I guess I was just reacting mostly to the OP's statement that "by '86 the Joy of OOP wa

Re: lies about OOP

2004-12-14 Thread Steve Holden
Paul McGuire wrote: "Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [some stuff] Good points all. And yes, I recall the BYTE article on Smalltalk. I guess I was just reacting mostly to the OP's statement that "by '86 the Joy of OOP wa

Re: Import trouble

2004-12-15 Thread Steve Holden
Again you should post a little more detail. In your example it looks like you made a simple spelling error: getDOMImpmentation instead of getDOMImplementation. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden W

Re: Why are tuples immutable?

2004-12-15 Thread Steve Holden
y in a dictionary. So provide your objects with a __hash__ method, and you can use them as dictionary keys. Sheesh, learn Python already. What a troll. [Plonk] regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web

Re: lies about OOP

2004-12-16 Thread Steve Holden
e life of me I don't *really* know why I find it acceptable in Python to have to write module.func(args) when I dislike having to write class.meth(args) in Java. perhaps-i'm-just-old-and-crotchety-ly y'rs - steve -- Steve Holden http://www.holdenweb.com/ Python Web

Re: lies about OOP

2004-12-16 Thread Steve Holden
s. They're all dreadful liars, these Scandinavians ;-) regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: create lowercase strings in lists - was: (No subject)

2004-12-16 Thread Steve Holden
x27;d like to know which strings occur in both lists, right? You might like to look at the "Efficient grep using Python?" thread for suggestions. My favorite would be: .>>> lst1 = ["ab", "ac", "ba", "bb", "bc"] .>>>

Re: Programming/Modeling Contract

2004-12-16 Thread Steve Holden
conventional programmer. The rate is open. Immediate need. Please forward your resume to me. Please contact: Bill Norris [EMAIL PROTECTED] 815-301-3189 Bill: Note you can post this job on the board - see http://www.python.org/Jobs-howto.html for further details. regards Steve -- Steve Holden

Re: create lowercase strings in lists - was: (No subject)

2004-12-16 Thread Steve Holden
in order. After that it'd be relatively simple to determine whether two lines match - they'd be the same! The only slight wrinkle would be keeping the original lines for reference, but that's not difficult. Does this give you enough of an idea, or do you need code samples? reg

Re: Cool object trick

2004-12-17 Thread Steve Holden
asier ;-) Of course this whole thing of substituting attribute access for dictionary keys only works as long as the keys are strings with the same syntax as Python identifiers, so one shouldn't go completely overboard. "To the man with a hammer everything looks like a nail"

Re: create lowercase strings in lists - was: (No subject)

2004-12-17 Thread Steve Holden
tting closer to an answer, but obviously you still have to strip out the characters that you don't want to affect the match (such as "(" and ")"). regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Hold

Re: BASIC vs Python

2004-12-17 Thread Steve Holden
en't, really. The big innovation was the use of line-numbering to allow interactive editing and testing of a program. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 31

Re: BASIC vs Python

2004-12-17 Thread Steve Holden
mmond anf Robinson does spend quite a lot of space explaiing how to build Python functionality with VB-style front-ends. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 311

Re: Cool object trick

2004-12-17 Thread Steve Holden
Fredrik Lundh wrote: Steve Holden wrote: Certainly makes writing 'print obj.spam, obj.spam, obj.eggs, obj.bacon, obj.sausages, "and", obj.spam' a lot easier ;-) Of course this whole thing of substituting attribute access for dictionary keys only works as long as the keys

Re: BASIC vs Python

2004-12-17 Thread Steve Holden
Steve Holden wrote: Adam DePrince wrote: On Thu, 2004-12-16 at 13:36, abisofile wrote: hi I'm new to programming.I've try a little BASIC so I want ask since Python is also interpreted lang if it's similar to BASIC. Nobody is answering this question because they are shudder

Re: newbie questions

2004-12-13 Thread Steve Holden
used to Python you'll also get used to thinking of a tuple as a single composite object. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: while 1 vs while True

2004-12-14 Thread Steve Holden
Peter Otten wrote: Fredrik Lundh wrote: Steve Holden wrote: It was unfortunate that so many people chose to use that for compatibility, when if they'd used the same code that the win32all extensions did they could have retained backward compatibility even across a change to constants

Re: Small Problem P 2.4 (line>2048 Bytes)

2004-12-15 Thread Steve Holden
r - it's good to see that shortening the lines fixed the bug for you, but it would be even better if the problem were removed. Your English, by the way, is perfectly comprehensible, so there is no need to apologise. regards Steve -- Steve Holden http://www.holdenweb.co

Re: I DECLARE THIS THREAD FINISHED

2004-12-16 Thread Steve Holden
ally make me laugh out loud, but that did. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: ".>>>" is a good idea! (OT, was: Re: do you master list comprehensions?)

2004-12-16 Thread Steve Holden
;>> print """\ It isn't that hard""" It isn't that hard .>>> Would it work, I wonder, with a leading space on the prompt? That might be a valid change to the standard prompt. Let's see >>> This line isn't really quoted three times. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: module file length limitations on windows?

2004-12-16 Thread Steve Holden
CTED] ~ $ vi module.py [EMAIL PROTECTED] ~ $ wc module.py 8177 58206 module.py [EMAIL PROTECTED] ~ $ python Python 2.4 (#1, Dec 4 2004, 20:10:33) [GCC 3.3.3 (cygwin special)] on cygwin Type "help", "copyright", "credits" or "license" for more i

Re: Why no list heritable type?

2004-12-16 Thread Steve Holden
> fl.append("four") >>> fl.bar() Bar: one Bar: two Bar: three Bar: four >>> type(fl) >>> You do need to be somewhat careful, though, to understand the initialisation mechanism of the new object-based types if you are going to get the best out of them.

Re: Socket being garbage collected too early

2004-12-16 Thread Steve Holden
print sock_list for example. I think your initial hypothesis is insufficient. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Why no list heritable type?

2004-12-17 Thread Steve Holden
ution. Not sure how long the "pass" takes. Hmmm. [EMAIL PROTECTED] ~ $ timeit pass 1000 loops, best of 3: 0.163 usec per loop So we seem to be looking (on my machine) at 0.8 usec per function call vs. 0.93 usec per method call. regards Steve -- Steve Holden http://

Re: better lambda support in the future?

2004-12-17 Thread Steve Holden
s something difficult, as I know he finds things that *IK* find difficult relatively easy. Maybe I should enter the next sprint as a name generator ... regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 70

Re: hello

2004-12-17 Thread Steve Holden
matthew wrote: testing ... Please use alt.test for that. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: DNS.DiscoverNameServer query

2004-12-18 Thread Steve Holden
e. Was this what you were looking for? regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: How about "pure virtual methods"?

2004-12-19 Thread Steve Holden
se makes your suggestion look impractical, methinks, since it requires that the programmer do what you would apparently like to specifically forbid. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Easy "here documents" ??

2004-12-19 Thread Steve Holden
It's sometimes amazing just how down and dirty Python will let you get. Of course, if the mappings were all dictionaries then it would be rather simpler to just update an empty dict with the outermost through to the innermost scopes. though-efficiency-would-be-determined-by-usage-ly y&

Re: newbie question

2004-12-20 Thread Steve Holden
: print item.ToLower() when int: print Math.Abs(item) It appears you should read your own remarks from the "Web forum (made by python)" thread :-) whereas-my-ego-couldn't-be-smaller-ly yr's - steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this a good use for lambda

2004-12-20 Thread Steve Holden
HTML uses lower-case tags and allows self-closure with a trailing slash after the tag name? let's-keep-that-christmas-spirit-coming-ly y'rs - steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703

Re: MySQLdb & Python 2.4 on Windows

2004-12-20 Thread Steve Holden
let Andy Dustman have a copy. [pauses to check that the module actually imports and works ...] Yep, works fine for a small test ;-) so I'm mailing it to Andy next thing I do. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenw

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

Re: MySQLdb & Python 2.4 on Windows

2004-12-20 Thread Steve Holden
x27;t wait, there's a copy at http://pydish.holdenweb.com/pwp/MySQL-python.exe-1.0.0.win32-py2.4.exe Enjoy! regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://

Re: Python To Send Emails Via Outlook Express

2004-12-20 Thread Steve Holden
it came across). About the next you can do is to add your email address as a Cc and then file the messages when you receive them, I suspect. Why the insistence on using Outlook Express, is you don;t mind me asking? regards Steve (who almost always uses smtplib) -- Steve Holden

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

2004-12-20 Thread Steve Holden
(which, since we don't have a FAQ, are entirely unwritten). By and large we like to run a civil list, and politely pointing out what appear to be transgressions is the best way to keep things that way. You probably realize that c.l.py isn't a moderated newsgroup. regards

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Steve Holden
personally think that wxPython gets closest to the native look-and-feel of the windowing platform, but that may just be my limited experience speaking. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC

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

2004-12-20 Thread Steve Holden
, and he's been known to be very helpful with newcomers. He's probably just feeling a bit cranky as the hockey season revs up ... regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237

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

2004-12-20 Thread Steve Holden
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 a naming confusion b

Re: mx Oddity in FC3/RedHat ES

2004-12-20 Thread Steve Holden
eeing if you can import it without errors. You might actually find that the built-in "time" module contains enough date/time functionality for your needs if they are simple. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

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

Re: mx Oddity in FC3/RedHat ES

2004-12-20 Thread Steve Holden
631 >>> import time >>> print "File was created", (time.time() - ctime)/(3600*24), "days ago" File was created 14.6398609114 days ago Does this do it? regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Code without effect (wx demo TreeCtrl.py ImageList)

2004-12-20 Thread Steve Holden
age-collected while the images are still beign displayed, leading to results that are at best unpredictable and at worst fatal to your program. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237

Re: extending python with a C-written dll

2004-12-20 Thread Steve Holden
it, take a look at http://www.vrplumber.com/programming/mstoolkit/ regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Silly questions about True and False

2004-12-20 Thread Steve Holden
= 33 >>> True 33 >>> __builtins__.True True >>> __builtins__.True = 42 >>> True 33 >>> del True >>> True 42 >>> Of course, even though you can change True's value, you can't make a comparison return __builtins__.True:

Re: Oddity in 2.4 with eval('None')

2004-12-20 Thread Steve Holden
ot;print eval('None')"? Yes. "print eval('None')" is printing the value of None as defined in your module's global namespace: Python 2.4 (#1, Dec 4 2004, 20:10:33) [GCC 3.3.3 (cygwin special)] on cygwin Type "help", "copyright", "c

Re: Oddity in 2.4 with eval('None')

2004-12-20 Thread Steve Holden
Leif K-Brooks wrote: Steve Holden wrote: Yes. "print eval('None')" is printing the value of None as defined in your module's global namespace: Right, but why? The expression "None" doesn't worry about the global namespace when used in normal code; why do

Re: Operators as functions

2004-12-20 Thread Steve Holden
Python has functions as map, filter and listcomprehension etc. I hope it is possible in Python too. In Haskell I would write: foldr (++) [] Thank you for answering! >>> l = ["abc", "def", "ghi", "jkl"] >>> "".join(l)

Re: odbc script

2004-12-21 Thread Steve Holden
ris: Please note that the odbc module is a bit long in the totth now, though it surely is convenient to get it with win32all. If this work is being done for personal use you might want to look at www.egenix.com and think about installing the mxODBC module, which I have used with very good results.

Re: BASIC vs Python

2004-12-21 Thread Steve Holden
orm, old chap. So please don't let your own upset start you being unpleasant to others. There's no point souring your outlook just because the world isn't beating a path to your door. Maybe it's the mousetrap's fault. wouldn't-normally-say-python-to-a-goose-ly y

Re: Tabnanny really useful?

2004-12-21 Thread Steve Holden
thon23\Lib>c:/franz.py C:\Python23\Lib> Well, you've probably answered your own question, then. Do you think tabnanny is a useful piece of code now? I used it a lot when I first started using Python, and still run it over code from unknown sources (no pun intended) from time to time.

Re: Easy "here documents" ??

2004-12-21 Thread Steve Holden
oin/Python3.0 Or use boo - it's probably in there already ;-) must-stop-baiting-the-holton-ly y'rs - steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Python, VB and COM

2004-12-21 Thread Steve Holden
n the open source world some people program and some people write documentation, but the two sets rarely coincide) will explain the linkages between COM Objects and win32com, and the section under "To generate Python sources supporting a COM object" is probably what you need. regards

Re: Tabnanny really useful?

2004-12-21 Thread Steve Holden
Franz Steinhaeusler wrote: On Tue, 21 Dec 2004 08:36:31 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: Franz Steinhaeusler wrote: [...] Oh sorry, I meant def a(): ->print ..->print C:\Python23\Lib>tabnanny.py -v c:\franz.py 'c:\\franz.py': *** Line 3: trouble in tab

Re: Easy "here documents" ??

2004-12-21 Thread Steve Holden
Fredrik Lundh wrote: Steve Holden wrote: If you would like to use % instead of $, I recommend requesting that feature for Python 3.0: http://www.python.org/cgi-bin/moinmoin/Python3.0 Or use boo - it's probably in there already ;-) weren't you supposed to ask me about it? Aah, ri

Re: python cookbook

2004-12-21 Thread Steve Holden
hers. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Change vars in the parent process

2004-12-21 Thread Steve Holden
around separate activities. Maybe what you need is threads, which can easily access each other's resources. They do need careful control, though, precisely because they share a single process's address space and protection boundary. regards Steve -- Steve Holden

Re: Tabnanny really useful?

2004-12-21 Thread Steve Holden
omplaining. Otherwise it should complain. John Roth Sounds like WingIDE to me. I'm a recent convert, but one feature that impressed me was the instant warning I got when I indented code with spaces in a tab-oriented source file. regards Steve -- Steve Holden http://www.holdenweb.

Re: Keyword arguments - strange behaviour?

2004-12-21 Thread Steve Holden
) 5 Or is this not what you excepted? Channelling the effbot, I think he was asking what namespace context you expected the expression "arg=otherfunction(x)" to be evaluated in when it's used at the time of a function call to dynamically create a new default value for arg.

PyCon is coming - we need your help

2004-12-21 Thread Steve Holden
any channels you know of that have an interest in the Python language and its applications - publicity is the key to getting the most diverse group of people at PyCon. regards Steve Holden Chairman, PyCON DC 2005 -- PyCon DC 2005: The third Python Community Conference http://www.pycon.org/ http

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

2004-12-21 Thread Steve Holden
I think I got away with it. Subtle distinction: A metER is a measuring device. A MetRE is a unit of distance. So presumably a delimetre is the equivalent of just over three foot-long subs? And that Monty Python pun was the wurst I've seen this weak. regards Steve -- Steve Holden

Re: lies about OOP

2004-12-22 Thread Steve Holden
es will tell you it's the Norwegians who are alcoholics." ;-) -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Threading Problem

2004-12-22 Thread Steve Holden
. When everything is more or les continuous computation, and so short it can be over in microseconds, there's no motivation for the scheduler to stop one thread and start another. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.ho

Re: Newbie namespace question

2004-12-22 Thread Steve Holden
that will make the name in __builtins__ inaccessible. So, what with that plus the way the names automagically appear it's probably something to relegate to the "definitely not best practice" category. regards Steve -- Steve Holden http://www.holdenweb.com/ Pyth

Re: [Re: newbie question]

2004-12-22 Thread Steve Holden
;s-only-ones-and-zeroes-ly y'rs - steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: trouble building python2.4

2004-12-22 Thread Steve Holden
Matthew Thorley wrote: I have got to be the stupidest person on the face of the planet. I'll have you know I don't welcome newcomers to this newsgroup trying to steal my hard-won reputation, if you don't mind. keeping-it-light-ly y'rs - steve -- Steve Holde

Re: extract news article from web

2004-12-22 Thread Steve Holden
print "Adding", itm['link'] curs.execute(sqlinsert, (dt.DateTimeFromTicks(int(dt.now())), itm['link'], description)) conn.commit() conn.close() Similar techniques can be used on many other sites, and you will find that (some) RSS feeds are

Re: extract news article from web

2004-12-22 Thread Steve Holden
Steve Holden wrote: [...] However, the code to extract the news is pretty simple. Here's the whole program, modulo newsreader wrapping. It would be shorter if I weren't stashing the extracted links it a relational database: [...] I see that, as is so often the case, I only told half

Re: Best GUI for small-scale accounting app?

2004-12-23 Thread Steve Holden
to change my default SMTP host to the other one on a list of two. Which remionds me, time to check out the latest release ... regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800

Re: extract news article from web

2004-12-23 Thread Steve Holden
TML. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Python, unix and mssql

2004-12-23 Thread Steve Holden
atforms. There are several ways you could have remote Python processes talking to each other. Pyro is a package that would let you handle this situation relatively easily, and I'm sure others will chime in with their favored solutions. regards Steve -- Steve Holden http

Re: odbc for solid

2004-12-23 Thread Steve Holden
s to the unixODBC API and has been developed using SWIG." regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie question - default values of a function

2004-12-23 Thread Steve Holden
your questions do have a habit of getting to the nub of what Python's about. I can see you're going to like this language. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800

Re: list IndexError

2004-12-23 Thread Steve Holden
1,2,3,4] >>> slicer[::2] [0, 2, 4] >>> slicer[1::2] [1, 3] >>> >>> slicer[::-1] [4, 3, 2, 1, 0] >>> slicer[-1::-2] [4, 2, 0] >>> regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Interactive Shell - outputting to stdout?

2004-12-23 Thread Steve Holden
u add the stderr stream into the picture it's sometimes impossible to know when the interactive client is waiting for input. One final comment: you haven't so far said *why* you want to interact with Python in this way. Given the availability of exec and eval(), just what is it that

PyCon Registration Opens Today!

2004-12-23 Thread Steve Holden
and peaceful holiday season. regards Steve Holden Chairman, PyCON DC 2005 -- PyCon DC 2005: The third Python Community Conference http://www.pycon.org/ http://www.python.org/pycon/ The scoop on Python implementations and applications -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating Image Maps

2004-12-24 Thread Steve Holden
ges as well, in which case you would need to provide callback functions to be called for clicks on the various sub-portions. Take a look at the docs for wxEvent, and see if that leads you to something you can understand. regards Steve -- Steve Holden http://www.holdenweb.com/ Python

Re: How about "pure virtual methods"?

2004-12-24 Thread Steve Holden
Alex Martelli wrote: [...] Sorry for the toy-ness of the example, but I don't want to post for hundreds of lines. [...] Can we take it this is some kind of early New Year's resolution? happy-christmas-ly y'rs - steve -- Steve Holden http://www.holdenweb.com/ Python

Re: Python To Send Emails Via Outlook Express

2004-12-24 Thread Steve Holden
re so was your gratuitous repetition thereof? Far more pleasant to either a) ignore a gaff by a possibly less-experienced usenet correspondent than yourself, or b) point out the error without repeating it, as I hope I have done here. regards Steve -- Steve Holden

Re: Python Interactive Shell - outputting to stdout?

2004-12-27 Thread Steve Holden
ter what I send over via the stdin pipe. This behavior isn't presented by the command line interpreter by any chance. Any suggestions? Yes: post your code along with messages (if any)! regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydis

Re: Improving Python

2004-12-27 Thread Steve Holden
e to appreciate the fact that I *never* mess up the order of arguments any more. Personally that's one of the changes I managed to take in my stride, and I've never really felt it was a biggie. Maybe my code is just so ugly that a little extra ugliness isn't noticeable? horses-fo

Re: Creating Image Maps

2004-12-27 Thread Steve Holden
also be used on the web (Google for "client-side image map"), but it's very little-used there. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://ma

Re: Python To Send Emails Via Outlook Express

2004-12-27 Thread Steve Holden
subscribe. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Customizing interpreter behavior [was: Clearing the screen]

2004-12-27 Thread Steve Holden
t a module named sitecustomize, which can perform arbitrary site-specific customizations. If this import fails with an ImportError exception, it is silently ignored.""" regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://py

Re: WxListBox

2004-12-27 Thread Steve Holden
like your program to do here, as at present it's not even clear whether this code is intended to act as input as well as output? What's wrong with what happens now, and how would you like to change it? regards Steve -- Steve Holden http://www.holdenweb.com/ Python W

Re: SimpleHTTPServer, queries unhandled?

2004-12-27 Thread Steve Holden
x27;t implement CGIs, the only stuff it can serve up is static content, which clearly can't use any query string input anyway. You probably want CGIHTTPServer. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Hold

Re: Jython & IronPython Under Active Development?

2004-12-27 Thread Steve Holden
his talk will include some details of his experiences at Microsoft (though that's entirely up to Jim). regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: A Revised Rational Proposal

2004-12-27 Thread Steve Holden
nal arithmetic.""" [Yards of unusable code] I'd also request that you change all leading tabs to four spaces! regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 8

Re: Jython & IronPython Under Active Development?

2004-12-27 Thread Steve Holden
Kent Johnson wrote: Steve Holden wrote: Just a little further background. The Python Software Foundation recently awarded a grant to help to bring Jython into line with the current CPython release. Is information publicly available about this and other PSF grants? I don't see any announc

Re: Python Interactive Shell - outputting to stdout?

2004-12-27 Thread Steve Holden
Steve Holden wrote: Avi Berkovich wrote: Hey, I can't make it work, I don't get any data from either stdout nor stderr. If I send lines and then close the stdin pipe, I may get an exception message from several lines up. I tried manually reading from the stdout pipe, but it just

Re: A Revised Rational Proposal

2004-12-27 Thread Steve Holden
much existing code fails when preceded by the 1.5.2--to-2.4-compatible (?) __metaclass__ = type guessing-not-that-much-ly y'rs - steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237

Re: Tutorial problem

2004-12-27 Thread Steve Holden
at will become the string value "1" in the choice variable. Since "1" is not equal to 1 you will always "fall off the end" and print "Bye". Perhaps you'd like to try again after you've attempted to remedy some of the deficiencies I h

Re: Python 3000, zip, *args and iterators

2004-12-27 Thread Steve Holden
Raymond Hettinger wrote: [...] "Not everything that can be done, should be done." ... and not everything that should be done, can be done. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 70

Re: More elegant way to cwd?

2004-12-28 Thread Steve Holden
elate to the location of the scripts that import it and use that function from it. What am I missing? regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter vs wxPython

2004-12-28 Thread Steve Holden
c' to create Perl code. So, that single ui description can be used in multiple languages. My two cents, Michael Michael: Just a bit less-than-helpful when the original post specifically asked for comparisons *between Tkinter and wxPython* in the context of having two weeks to work

<    5   6   7   8   9   10   11   12   13   14   >