desktop module (was Re: Open PDF)

2005-09-23 Thread Paul Boddie
Dennis Lee Bieber skrev: > On Thu, 22 Sep 2005 15:16:09 +0100, Dan <[EMAIL PROTECTED]> declaimed > the following in comp.lang.python: > > > > I would like to know how to open a PDF document from a python script > > > > You mean open it and display it to the user? Under Windows you may be > > able t

Re: Bluetooth

2005-09-23 Thread Paul Boddie
Tor Erik Sønvisen wrote: > I'm making a server-side solution in Python and need to be able to > communicate through bluetooth. Is there any bluetooth-packages out there for > python? At the lowest level, you should be able to create sockets for Bluetooth communications (see the socket module's doc

Re: Bluetooth

2005-09-24 Thread Paul Boddie
Tor Erik Sønvisen wrote: > > I've been doing some research since my first post and now I'm really > confused. I'm programming in xp, and found some c++ code out of this world > that supposidly should list all available services to a given bluetooth > device. This code however where only working wit

Re: cElementTree clear semantics

2005-09-25 Thread Paul Boddie
Reinhold Birkenfeld wrote: > D H wrote: > > I would recommend emailing the author of a library when you have a > > question about that library. You should know that yourself as well. > > Well, if I had e.g. a question about Boo, I would of course first ask > here because I know the expert writes h

Re: cElementTree clear semantics

2005-09-26 Thread Paul Boddie
Fredrik Lundh wrote: > well, for the record, I strongly recommend people to post questions in > public forums. I wasn't saying that such advice was wrong, though. I suppose the quality or responsiveness of advice is going to vary somewhat depending on a number of factors... > it's often a good id

Re: Overhead of individual python apps

2005-09-28 Thread Paul Boddie
Steve Holden wrote: > Even embedded systems are much larger now than the minicomputers of > yesteryear. Everything's relative. Just wait three years! Had you placed such a bet in 2000, you'd have cleaned up at the "Moore's Law Casino", but there are various factors at work now which complicate the

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread Paul Boddie
yoda wrote: > 2)The content is sent through an SMS gateway (currently we only send > text messages). [...] > 4)The users need to get the data a minimum of 5 seconds after it's > generated. (not considering any bottlenecks external to my code). You surely mean a "maximum of 5 seconds"! Unfortunat

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Paul Boddie
Paul Rubin wrote: > If changing the way a class uses its own private variables breaks an > application > because another class was using the private variable unexpectedly, > then that's bad, regardless of whether the other class's author was > notified or not. It's better to let the compiler auto

Re: Where to find python c-sources

2005-09-30 Thread Paul Boddie
John J. Lee wrote: > How odd -- the most useful link (the viewcvs page for this source > file) is the very first link for me when I search for socketmodule.c > > Does google vary in its results across the globe? Actually, yes, although in this case the top result is the same for both google.no (wh

Re: New project coming up...stay with Python, or go with a dot net language??? Your thoughts please!

2005-10-04 Thread Paul Boddie
Lasse Vågsæther Karlsen wrote: > While Microsoft and other big software vendors might have a roadmap > that ties you very tightly in with their budget, and also changes that > roadmap from time to time which breaks your current software, a lot of > open source projects have no roadmap at all. > > T

Re: New project coming up...stay with Python, or go with a dot net language??? Your thoughts please!

2005-10-04 Thread Paul Boddie
Luis M. Gonzalez wrote: > So, we can safely say that Boo is "almost" a static python > implementation. Wether you like or not, is another problem, but please, > do not insist with your reiterative anti-boo ranting. I can't comment on Boo beyond the documentation's description of the language, but

Re: Python's Performance

2005-10-08 Thread Paul Boddie
Laszlo Zsolt Nagy wrote: > There are benchmarks testing the *real performance* of Python. > > For example: http://www.osnews.com/story.php?news_id=5602 Just the observation that there are 166 comments to that article would suggest that the methodology employed was somewhat debatable. (I don't need

Re: how do you pronounce wxpython

2005-10-08 Thread Paul Boddie
George Sakkis wrote: > I am sure it is pronounced the same way as wxWidgets . Which is in turn pronounced the same way as wxWindows. As to how that's pronounced, I'd suggest asking Microsoft's lawyers whose actions in "defending" an arguably dubious trademark possibly involved investigating this i

Re: Jargons of Info Tech industry

2005-10-08 Thread Paul Boddie
Roedy Green wrote: > Just how long do you want to stall evolution? Do you imagine people > 200 years from now will be still be using pure ASCII text unable to > find a solution to JavaScript viruses (turn off JS), pop-up( disable > popups) etc.? People in their sky-cars turning off JavaScript in

Re: Python's Performance

2005-10-10 Thread Paul Boddie
Dennis Lee Bieber wrote: > I'd consider that BASIC to be a fully interpreted language, as the > tokens are still a one-for-one equivalence of the source code. Python, > UCSD, and Java are not one-for-one, so on that basis, they fit the > definition of a compiled language... That's an interesting d

Re: cgi python

2005-10-13 Thread Paul Boddie
Python_it wrote: > I going to use the cgi-handler (mod_python): > > http://www.modpython.org/live/mod_python-3.2.2b/doc-html/hand-cgi.html > > If I test a simply py script it works You don't say how you test it, but I imagine that you just point your browser to the location where the program is pu

Re: form filling XML

2005-10-13 Thread Paul Boddie
George wrote: > [form] > Monday > Tuesday > Wednesday > Thursday > Friday [fillin] > > maandag > dinsdag > woensdag [...] > How can I compare the text in the element tags with the elements > tags in filling and if they match replace the text within the elements > tags with the text in the

Re: UI toolkits for Python

2005-10-18 Thread Paul Boddie
Paul Rubin wrote: > All this extreme use of JS misses the point, it's client side > programming all over again This is so true, although I don't expect those people relentlessly hyping "AJAX" to either realise the significance of that observation or to necessarily make an accessible Web site for t

Re: html parser?

2005-10-18 Thread Paul Boddie
Thorsten Kampe wrote: > For simple things like that "BeautifulSoup" might be overkill. [HTMLParser example] I've used SGMLParser with some success before, although the SAX-style processing is objectionable to many people. One alternative is to use libxml2dom [1] and to parse documents as HTML: i

Re: UI toolkits for Python

2005-10-19 Thread Paul Boddie
Mark Roseman wrote: > What I'm suggesting is taking the effort you'd put to the 5%, and > applying that effort instead to making the 95% even better. If that > extra effort would affect conversion rates, it's a justifiable option. Yes, but isn't this where the 90/10 rule kicks in? In other words,

Re: UI toolkits for Python

2005-10-19 Thread Paul Boddie
Steve Holden wrote: [80/20 rule] > This is as much an economic decision as a marketing one, but a good engineer > knows instinctively that there is a desirable cut-off point beyond which > adding further functionality is a waste of engineering effort. But Mike Meyer's point was that the Web stan

Re: pyxpcom and firefox

2005-10-25 Thread Paul Boddie
Philippe C. Martin wrote: > I write this post here because I do not manage to get in touch with mozilla > dev people: [...] > 1) has anyone compiled/installed pyxpcom with firefox 1.5xx ? > 2) is there a plan to make it a .xpi (the pyxpcom xpi for mozilla does not > install into firefox). I can'

Re: handling ExpatError exception raised from ElementTree.XML() method

2005-10-27 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > > NameError: name 'ExpatError' is not defined > > I'm guessing that I need to define/describe the ExpatError exception > class and then refer to that defined exception class after the keyword > 'except' and before the ':', but I cannot figure out how to do that. You just

Re: handling ExpatError exception raised from ElementTree.XML() method

2005-10-31 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > > It's not clear how a grep of the site-packages directory revealed the > most likely location of the ExpatError class is xml.parsers.expat. Here's what I did: grep -e ExpatError -r /usr/lib/python2.4/site-packages/ What is interesting is that most of the "hits" belong

Re: XML DOM: XML/XHTML inside a text node

2005-11-03 Thread Paul Boddie
Roman Suzi wrote: > > On Thu, 2 Nov 2005 [EMAIL PROTECTED] wrote: > > Is there a better way? > > What about parsing the input into XML first? Is there any point in including > unescaped code into XML document unless it is XML itself? Indeed. My approach would be to parse the user's input using the

Re: Web automation

2005-11-07 Thread Paul Boddie
Mike Meyer wrote: > [EMAIL PROTECTED] writes: > > but I supposed the everyone knew that web automation (and in general > > "automation") is only a problem in Linux. > > I don't know it. I don't believe it, either. I automate web tasks on > Unix systems (I don't use many Linux systems, but it's the

Re: Web automation

2005-11-08 Thread Paul Boddie
Mike Meyer wrote: > "Paul Boddie" <[EMAIL PROTECTED]> writes: > > The problem on non-Windows systems is the lack of a common (or > > enforced) technology for exposing application object models > > OS X has AppleScript. VM/CMS has Rexx. The Amiga had ARexx whe

Re: Web automation

2005-11-09 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > The contribution of Paul Boddie is valuable. I too examined DCOP > and even chose as browser Konqueror, being a KDE application. > But DCOP doesn't go to such a low level. It is not possible > to send a simulated keystroke from one KDE application to an

Re: Web automation

2005-11-09 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > While I was posting the reply to Mike I saw the last > contribution of Paul Boddie. > > From what he says I infer that he is a Windows programmer Far from it! OutlookExplorer was written as an experiment when I had to use Windows in a corporate environment.

Re: Recompile AST?

2005-11-10 Thread Paul Boddie
Bengt Richter wrote: > I've also posted sporadic musings about the possibilities for AST-transforming > custom import functions to do optimizations and macros and special forms etc., > but no one seemed much interested (or maybe they quietly went off to do > something of their own ;-) For an examp

Re: best way to discover this process's current memory usage, cross-platform?

2005-11-16 Thread Paul Boddie
Neal Norwitz wrote: > Valgrind actually runs on PPC (32 only?) and amd64, but I don't think > that's the way to go for this problem. +1 for understatement of the week. > Here's a really screwy thought that I think should be portable to all > Unixes which have dynamic linking. LD_PRELOAD. Simila

Re: How to write an API for a Python application?

2005-11-16 Thread Paul Boddie
Gary Kshepitzki wrote: > I would like to create an API for a piece of Python code. The API is for use > by non Python code. > It should support interaction in both directions, both accessing functions > on the API and the ability for the API to raise events on its client. > What is the best way to

Re: How to write an API for a Python application?

2005-11-17 Thread Paul Boddie
Cameron Laird wrote: > You guys work too hard. I beg to differ. ;-) > My reaction is this: Mr. Kshepitzki asks for an IPC choice, > says that COM looks like a bit too much, and respondents > start by loading him with even *heavier* technical alternatives, such as > CORBA. Well, my relatively l

Re: how to organize a module that requires a data file

2005-11-17 Thread Paul Boddie
Steven Bethard wrote: [Text file for a module's internal use.] > My problem is with the text file. Where should I keep it? If I want to > keep the module simple, I need to be able to identify the location of > the file at module import time. That way, I can read all the data into > the appropr

Re: Ajax for the Developers

2005-11-18 Thread Paul Boddie
SABIN wrote: > The trendy XML HTTP Request has really struck the way developers had adopted > with the user interfaces. But the major issuse are yet to be solved.. > > 1. Changing state with links (GET requests) > 2.Asynchronously performing batch operations > 3.Breaking the back button > > Will th

Re: wxPython Licence vs GPL

2005-11-23 Thread Paul Boddie
Andrea Gavana wrote: > IIRC, wxPython license has nothing to do with GPL. Its license is far more > "free" than GPL is. That would be "free as in freeloading", right? (And no, I'm not intending to start a licensing flame war with that remark, but I think it's inappropriate to ignore central licens

Re: wxPython Licence vs GPL

2005-11-23 Thread Paul Boddie
Ed Jensen wrote: > Try this little experiment: Walk up, at random, to 100 people on the > street. Show them a software CD-ROM -- a game, a word processor, > whatever. Tell them it's free. Then ask them what they think that > means. It's interesting that you bring this tired thought experiment u

Re: wxPython Licence vs GPL

2005-11-23 Thread Paul Boddie
Steven D'Aprano wrote: > On Tue, 22 Nov 2005 12:57:12 -0800, Scott David Daniels wrote: > > I would, at the very least, acknowledge the wxPython origin of the code > > whether any remains or not (credit is appreciated and cheap to give). > > Ha ha, don't ask movie director James Cameron about *that

Re: wxPython Licence vs GPL

2005-11-24 Thread Paul Boddie
Ed Jensen wrote: [On closed source derivatives of Python] > I'm aware of this concern. I don't think it's justified. Unless > you'd like to point out all those closed, proprietary Python > implementations that are destroying civilization as we know it. Well, there was some concern voiced at Eu

Re: Python CGI post problem

2005-11-24 Thread Paul Boddie
Eddy Ilg wrote: > I'm having problems with a python cgi script. The script just won't read > any POST data. Forms with GET data work fine. [...] > form=cgi.FieldStorage(keep_blank_values=True) Since FieldStorage uses various defaults when you don't specify the fp and environ parameters, it may b

Re: wxPython Licence vs GPL

2005-11-25 Thread Paul Boddie
Ed Jensen wrote: [On proprietary ports of Python...] > Show me the harm done. We'll have to wait and see what happens. There's a risk that versions of Python with different semantics or characteristics to the original could cause the development of parallel communities, instead of everyone worki

Re: Python as Guido Intended

2005-11-25 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > And exactly what is "python's spirit/philosophy" ? It seems to me that > they are often used in a liberal way, just to support one's argument > that whatever is not in the CURRENT python should not be there. Yes, those contentious terms "pythonic" and "unpythonic" which,

Re: wxPython Licence vs GPL

2005-11-27 Thread Paul Boddie
Fredrik Lundh wrote: > Steven D'Aprano wrote: > > Fine. If you want to take rights away from the people you redistribute > > somebody else's software to, then the GPL is not for you. > > the people you distribute somebody else's open source software to > still have the same rights to that software

Re: General question about Python design goals

2005-11-28 Thread Paul Boddie
Antoon Pardon wrote: > Duncan Booth wrote: > > But you aren't illustrating that at all. You came up with an example which > > showed, at least to me, a good argument why tuples should *not* have list > > methods. For what it's worth, I don't agree with that analysis, but anyway... > No I gave an

Re: General question about Python design goals

2005-11-28 Thread Paul Boddie
Aahz wrote: > You're wrong. I don't have time/energy to look up the relevant posts, > but Guido has been extremely clear in the past that tuples are *NOT* > going to grow methods. Ah, I misread some of those other posts. Still, at least that is consistent with saying that it wasn't worth spending

Re: Which License Should I Use?

2005-11-30 Thread Paul Boddie
Paul Rubin wrote: > That is the guy who claims it is impossible to release anything into > the public domain, other than by dying and then waiting 70 years. Is that an indirect reference to the following article? http://www.linuxjournal.com/article/6225 Paul -- http://mail.python.org/mailman/l

Re: python speed

2005-11-30 Thread Paul Boddie
Steven Bethard wrote: > David Rasmussen wrote: > > Faster than assembly? LOL... :) Faster than physics? ;-) > I think the claim goes something along the lines of "assembly is so hard > to get right that if you can automatically generate it from a HLL, not > only will it be more likely to be corre

Re: python speed

2005-11-30 Thread Paul Boddie
Steven Bethard wrote: > David Rasmussen wrote: > Faster than assembly? LOL... :) > Faster than physics? ;-) > I think the claim goes something along the lines of "assembly is so hard > to get right that if you can automatically generate it from a HLL, not > only will it be more likely to be corre

Re: python speed

2005-11-30 Thread Paul Boddie
Peter Hansen wrote: > True, but so what? Why did you suddenly change the discussion to > require "pure" Python? Well, comments about Python's speed usually come in the following two forms: some Python-based solution isn't fast enough; programs written in Python aren't fast enough. In other words,

Re: python speed

2005-11-30 Thread Paul Boddie
Carsten Haese wrote: > On Wed, 2005-11-30 at 14:53, Paul Boddie wrote: > > [...] the Java virtual machine > > is suitably designed/specified to permit just-in-time complication. > > +1 Freudian slip of the week :) Well, I never said it was easy. ;-) Paul -- http://ma

Re: FW: Python Query: How to i share variable between two processes without IPC.

2005-12-01 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > Mukesh> Question: how do i share variable between two processes without > Mukesh> IPC. Using some subtle application of quantum mechanics? ;-) Paul P.S. I suppose it depends on any definition of interprocess communication, but if the processes weren't to talk directly

Re: an intriguing wifi http server mystery...please help

2005-12-02 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > Could the above server-speed assymetry that i spoke of above be caused > by this reverse dns lookup? I think so. You stated that you use "a fairly simple HTTP server", although that's not exactly specific enough to diagnose the problem, but if that were the standard libr

Re: Ruby on Rails Job Site -- Is there a Python equivalent?

2005-12-02 Thread Paul Boddie
Adrian Holovaty wrote: > http://code.djangoproject.com/wiki/DevelopersForHire > > See the "Django-powered jobs" section. We could definitely advertise > this page more, as it's a bit hidden at the moment on the Django wiki. Don't forget the Python Job Board: http://www.python.org/Jobs.html Yes,

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-02 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > Here it is again... Python bypassed/discounted because, of all things, > scoping by indentation!?!? [...] > Could the PyPy people find some way (I don't how) to eliminate this > stumbling block going forward?? No: I believe they could only eliminate it "going backward

Re: libxml2 and XPath - Iterate through repeating elements?

2005-12-02 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > I'm trying to iterate through repeating elements to extract data using > libxml2 but I'm having zero luck - any help would be appreciated. Here's how I attempt to solve the problem using libxml2dom [1] (and I imagine others will suggest their own favourite modules, too):

Re: an intriguing wifi http server mystery...please help

2005-12-02 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > The server runs fast when one computer is the server, but slow when the > other computer is the server. > How can this be, given that this asymmetry does not exist when both > computers are wired. Probably because the way your wireless interfaces are configured may be di

Re: Eclipse best/good or bad IDE for Python?

2005-12-04 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > Eclipse, for example, performs like a dog on > my dual opteron workstation w/ 2GB of RAM, which is more than enough to > annoy me. I shouldn't have to wait more than about 1 second for an > editor to start and then open what is essentially a text file :-P. And then, due

Re: Favorite flavor of Linux? (for python or anything else)

2005-12-04 Thread Paul Boddie
Aahz wrote: > Ubuntu *is* Debian, just repackaged. I think "is almost" would be more accurate than just "*is*", speaking as a Kubuntu user with a passing familiarity of the current state of Debian and Ubuntu package maintenance. > I used to prefer Debian until stable wouldn't work with my newest

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-05 Thread Paul Boddie
Richard Brodie wrote: > I'm sure some folk can remember local coding styles that suggested > using BEGIN and END as macros for curly brackets in C because > { and } aren't intuitive. Indeed. Meanwhile, see Tools/scripts/pindent.py in the Python source code distribution for a tool which understands

Re: XML and namespaces

2005-12-05 Thread Paul Boddie
Fredrik Lundh wrote: > can anyone perhaps dig up a DOM L2 implementation that's not written > by anyone involved in this thread, and see what it does ? Alright. Look away from the wrapper code (which I wrote, and which doesn't do anything particularly clever) and look at the underlying libxml2 ser

Re: Favorite flavor of Linux? (for python or anything else)

2005-12-05 Thread Paul Boddie
Jorgen Grahn wrote: > But any Unix today will come with a reasonable Python installation; I don't > see that > as an important part of the choice. Yes, the days of Red Hat only shipping Python 1.5.2 are long gone. But I don't fully agree with your conclusion, because the Python installation is on

Re: Eclipse best/good or bad IDE for Python?

2005-12-06 Thread Paul Boddie
Aaron Bingham wrote: > Did you ever try double clicking the editor tab? Hi Aaron! Yes, I think I worked that one out, but perhaps the proliferation of panels containing tabs containing panels (containing tabs...) is one of the things that really puts me off IDEs, particularly Eclipse. I'm sure the

Re: XML and namespaces

2005-12-06 Thread Paul Boddie
Alan Kennedy wrote: > Libxml2dom is of alpha quality, according to its CheeseShop page anyway. Given that I gave it that classification, let me explain that its alpha status is primarily justified by the fact that it doesn't attempt to cover the entire DOM API. As I mentioned in my original contri

Re: XML and namespaces

2005-12-06 Thread Paul Boddie
Alan Kennedy wrote: > Don't confuse libxml2dom with libxml2. Well, quite, but perhaps you can explain what I'm doing wrong with this low-level version of the previously specified code: import libxml2mod document = libxml2mod.xmlNewDoc(None) element = libxml2mod.xmlNewChild(document, None, "href",

Re: XML and namespaces

2005-12-07 Thread Paul Boddie
Paul Boddie wrote: > It is difficult to say whether this usage of the API is correct or not, > judging from the > Web site's material [...] Some more on this: I found an example on the libxml2 mailing list (searching for "xmlNewNs default namespace") which is similar

Re: XML and namespaces

2005-12-07 Thread Paul Boddie
Alan Kennedy wrote: > Well, if your purpose is to make a point about minidom and DOM standards > compliance in relation to serialisation of namespaces, then what you're > doing wrong is to use a library that bears no relationship to the DOM to > make your point. Alright. I respectfully withdraw li

Re: Python web publishing framework like Cocoon?

2005-12-08 Thread Paul Boddie
Dan M wrote: > Dennis Benzinger wrote: > > Is there a Python web publishing framework like Cocoon? > > How about: [List of the usual suspects] > just to name a few of my favorites. Take a look at > http://wiki.python.org/moin/WebProgramming for a more complete list. Although it is good advice to

Is there a library to parse Mozilla "mork" documents?

2005-01-21 Thread Paul Boddie
John Reese wrote: > > Mozilla, Firefox, Thunderbird, and so forth use this awful format > called MORK to store all kinds of things: which messages you've read > in a newsgroup, headers and indexes into the mbox file of messages in > a mail folder, and address books. It's documented to some extent

Re: Thoughts on Guido's ITC audio interview

2005-07-03 Thread Paul Boddie
D H <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Dave Benjamin wrote: > > Someone in the audience surprised everyone by mentioning an actual project > > attempting this, called javaclass: > > Sounds like it really is converting java classes to python classes, Yes, it is conv

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-07-03 Thread Paul Boddie
Mike Holmans <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Some of those sonorous slow talkers from the South, and majestic bass > African-Americans like James Earl Jones or Morgan Freeman, have far > more gravitas than any English accent can: to us, such people sound > monumen

Re: best options for oracle/python?

2005-07-06 Thread Paul Boddie
Mark Harrison <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Any recommendations for Oracle bindings for the > DB-API 2.0 specification? This is for Oracle 10g > if that makes any difference. > > Also, any other Oracle related goodies that might > be useful? You might want to

Re: Yet Another Python Web Programming Question

2005-07-10 Thread Paul Boddie
"Robert Brewer" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Daniel Bickett wrote: > > I neglected to mention an important fact, and that is the fact that I > > am limited to Apache, which elminates several suggestions (that are > > appreciated none-the-less). > > Do you have

Re: How to create "cross-backend" python web app

2005-07-15 Thread Paul Boddie
"matt" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Hi all- > > I'm trying to port an ajax spell-checker > (http://www.broken-notebook.com/spell_checker/index.php) to use with > the moin moin wiki and have been somewhat successful. (By successful I > mean I can spell check u

Re: Cgi scripts in apache not working

2005-07-28 Thread Paul Boddie
David wrote: > > httpd.conf: > > << Tried it with "" and no "" > Options ExecCGI << Tried with "Options +ExecCGI" > AddHandler cgi-script .cgi .py << Tried with "SetHandler > cgi-script", but still no go > > > > error_log: > > [Thu Jul 28 11:44:53 2005] [er

Re: seek python parser

2005-08-07 Thread Paul Boddie
I tend to use the compiler module: http://docs.python.org/lib/compiler.html With the output of the parsing functions I selectively inspect the AST nodes using the named attributes listed in the documentation: http://docs.python.org/lib/module-compiler.ast.html For cases where one just needs to

Re: Python -- (just) a successful experiment?

2005-08-07 Thread Paul Boddie
Eric Pederson wrote: > Why do web scripters still cling to their Perl, even in corporate > environments? Ignorance. One could argue that Python should be promoted more, but Perl had the "cool tool" buzz a good ten years ago. Such habits don't fade away very quickly. > Why hasn't Python made inro

Re: Python -- (just) a successful experiment?

2005-08-07 Thread Paul Boddie
Paul Rubin wrote: > Come on, this is silly, Java is a lot more cumbersome for doing small, > quick projects, but Python doesn't have the language discipline or the > library support to do heavyweight projects that Java can. I'm not necessarily arguing that Python goes all the way up to the upper e

Re: Uploading images via cgi?

2005-08-31 Thread Paul Boddie
Chris Dewin wrote: > chunk = fileitem.file.read(10), and fout.write (chunk) seem to be the > key statements. Could someone elaborate on these for me please? And why > do they need to be in a while loop? I imagine that the intention of reading only 10 bytes at a time is to limit the amount

Re: SpamBayes wins PCW Editors Choice Award for anti-spam software.

2005-08-31 Thread Paul Boddie
Alan Kennedy wrote: [PCW award to SpamBayes] > (PCW, for those who don't know it, is sort of the UK's equivalent of Byte > Magazine, > except that it's still publishing after almost 25 years). Hmmm. Even Byte at its lowest point was far better than PCW ever was. [...] > The only problem was t

Re: SpamBayes wins PCW Editors Choice Award for anti-spam software.

2005-08-31 Thread Paul Boddie
Alan Kennedy wrote: > I personally put great store in the fact that PCW awarded the Editors > Choice award to SpamBayes, because it's based on actually *using* the > software, rather than doing a simple feature comparison. We can be thankful for that, at least. And you're right about SpamBayes bei

Re: OpenSource documentation problems

2005-09-01 Thread Paul Boddie
Xah Lee wrote: > The "Language Reference" section (subtitled "for language > lawyers") needs to be replaced by human-readible descriptions of > Python's functions. For exapmle, in the style of official Java doc > (http://java.sun.com/j2se/1.4.2/docs/api/index.html). Nope. The Java documentation yo

Re: Well, Reading is hard to learn...

2005-09-01 Thread Paul Boddie
bruno wrote: > > I have spent 1 week on learning reading and felt good. but I still don't > understand most part of Emmanuel Kant's writings. > Monty Python really missed out there: cut to a sketch featuring three year olds discussing Kant. ;-) Paul -- http://mail.python.org/mailman/listinfo/

Re: OpenSource documentation problems

2005-09-01 Thread Paul Boddie
A.M. Kuchling wrote: > I was amused by a rec.arts.sf.written discussion [1] where Lee complains that > Jonathan Swift (1667-1745)'s writing was unclear in style; apparently he's > not aware > that conventions and styles change over time. Still, ill-founded assumptions about language could be much

Re: Why do Pythoneers reinvent the wheel?

2005-09-10 Thread Paul Boddie
A.M. Kuchling wrote: > PEP 206 (http://www.python.org/peps/pep-0206.html) suggests assembling an > advanced library for particular problem domains (e.g. web programming, > scientific programming), and then providing a script that pulls the relevant > packages off PyPI. I'd like to hear suggestions

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-11 Thread Paul Boddie
Carl Friedrich Bolz wrote: > > > . there is no reason why the pypy project can't have a .NET architecture > > instead of the java-like arrangement I assume it has now > > Sorry, I can't really follow you here. In what way does PyPy have a > Java-like arrangement? I imagine that this remark was mad

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-11 Thread Paul Boddie
Michael Sparks wrote: > Well, you did say you want help with locating problems. One problem with > this is it doesn't build... I found that I needed both the libgc and libgc-dev packages for my Kubuntu distribution - installing them fixed the include issues that you observed - and it does appear t

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-11 Thread Paul Boddie
Carl Friedrich Bolz wrote: > a) building LLVM is not _that_ bad (you don't need to build the > C-frontend, which is the really messy part) That piece of wisdom must have passed me by last time, when I probably heeded the scary warning from the configure script and made the mistake of getting the C

Re: What XML lib to use?

2005-09-14 Thread Paul Boddie
Kalle Anke wrote: > I've used DOM-based libraries in other languages, is PyXML the library to > use? I would start off with minidom; a tutorial I once wrote can be found here: http://www.boddie.org.uk/python/XML_intro.html That should demonstrate some minor differences between PyXML-style DOMs a

Re: What XML lib to use?

2005-09-14 Thread Paul Boddie
Fredrik Lundh wrote: > since there are no *sane* reasons to use SAX or DOM in Python, that's mainly > a job security issue... While I doubt that anyone would really recommend exclusive DOM API usage for significant XML processing tasks (or for anything other than educational purposes), I think you

Re: What XML lib to use?

2005-09-14 Thread Paul Boddie
Fredrik Lundh wrote: > Paul Boddie wrote: [On interoperability] > > For example, PyQt and PyKDE expose various DOMs of the purest > > "non-Pythonic" kind; Mozilla exposes DOMs for XML and HTML > > I didn't see anything about manipulating an application

Re: What XML lib to use?

2005-09-15 Thread Paul Boddie
Fredrik Lundh wrote: > Robert Kern wrote: > > His interpretation of your words is a perfectly valid one even in the > > context of this thread. "in Python" explicitly provides a context for > > the rest of the sentence. > > Exactly. "in Python", not "in an application with an existing API". Well,

Re: [Fwd: Re: [Uuu-devel] languages] <-- Why Python

2005-02-20 Thread Paul Boddie
Mike Meyer <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Arich Chanachai <[EMAIL PROTECTED]> writes: > > > When the CLR is integrated, it will allow a wide array of problem > > solving choices for uuu users. > > You've missed the point. Allowing a wide array of problem solvin

Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux & Windows XP

2005-02-22 Thread Paul Boddie
Mike Dee <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > A very very basic UTF-8 question that's driving me nuts: > > If I have this in the beginning of my Python script in Linux: > > #!/usr/bin/env python > # -*- coding: UTF-8 -*- > > should I - or should I not - be able to u

Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux & Windows XP

2005-02-23 Thread Paul Boddie
"Serge Orlov" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Paul Boddie wrote: > > Anyone who has needed to expose filesystems > > created by Linux distributions before the UTF-8 "big push" to later > > distribution

Re: best XSLT processor?

2005-02-28 Thread Paul Boddie
fanbanlo <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Which XSLT processor is the most reliable? > > requirement: > + must support Python 2.4 > + must run w/ Windows (and Linux) > + not super slow I've had success with libxslt [1] (and libxml2 [2]) on Linux with Python 2.3.x

Re: naming convention for scalars, lists, dictionaries ...

2005-03-01 Thread Paul Boddie
[EMAIL PROTECTED] wrote in message news:<[EMAIL PROTECTED]>... > Since Python does not have declarations, I wonder if people think it is > good to name function arguments according to the type of data structure > expected, with names like "xlist" or "xdict". Your suggestion coincides partly with a

Re: Speeding up CGIHTTPServer (Tim Roberts)

2005-03-08 Thread Paul Boddie
"Johan Kohler" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > > Fair enough. Pretend my question said "compared to apache, but also to > CGIHTTPServer on linux". The Windows box has modest specs Celeron 2.8GHz, > 256MB, but it takes 30-60s render pages. I was using it to

Re: How to upgrade python on Redhat?

2005-03-09 Thread Paul Boddie
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > > 2) Give up and install python 2.4 in /usr/local. This leaves me in the > awkward situation of having to ensure that all our in-house scripts, > all the time use /usr/local/bin/python. Or, as recommended, use

Re: Python becoming less Lisp-like

2005-03-15 Thread Paul Boddie
Torsten Bronger <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > > At first, I was very pleased by Python's syntax (and still I am). > Then, after two weeks, I learned about descriptors and metaclasses > and such and understood nothing (for the first time in syntax I felt > total

Re: Python becoming less Lisp-like

2005-03-16 Thread Paul Boddie
Steven Bethard <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > > Certainly descriptors in the "wrong hands" could lead to confusing, > unreadable code. But Python is a "we're all adults here" language, and > so we have to trust other coders to be responsible. The problem is

  1   2   3   4   5   6   7   8   9   10   >