Re: tool for syntax coloring in html

2005-10-26 Thread dima_turbiner
A really easy one to use is Doxygen Good luck, Dimitri Googmeister wrote: > Xah Lee wrote: > > in some online documentations, for examples: > > > > http://perldoc.perl.org/perlref.html > > http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-17.html > > http://www.haskell.org/hawiki/Haskel

RE: [python-win32] simulate DoEvents by python/wxpython

2005-10-26 Thread Mark Hammond
Build 205 of win32gui does have PeekMessage etc so you can now write the message loop in Python should the need arise - however, the various "PumpMessages" and "PumpWaitingMessages" functions do the same thing, but are implemented in C. There are versions of these functions in win32gui and win32ui

Re: more than 100 capturing groups in a regex

2005-10-26 Thread Peter Hansen
Joerg Schuster wrote: > So what? Search in http://docs.python.org/lib/re-syntax.html for "99" and read the following sentence carefully. -Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: Missing modules '_ssl', 'ext.IsDOMString', 'ext.SplitQName'

2005-10-26 Thread Peter Hansen
[EMAIL PROTECTED] wrote: > Hi, > > yes of course the traceback could be helpfull so here it is... > > Traceback (most recent call last): > File "App1.py", line 6, in ? > File "Frame1.pyc", line 16, in ? > File "brain.pyc", line 4, in ? > File "xml\dom\ext\reader\__init__.pyc", line 20, in

Web presentation layer/framework for python - recommendations?

2005-10-26 Thread Anthony . Hornby
Hi, I am a python newbie and need some advice. I have been charged with redeveloping a web application with a front end written in python that has a backend of XML files. Currently it doesn't adequately separate out the presentation code from the content code. Frankly it’s a mess (think bowl of s

Re: How best to reference parameters.

2005-10-26 Thread David Poundall
Sorry Ron, my earlier reply was too brief I wasn't thinking straight (so what else is new ;-) my apologies. The main reason for going down the route I am looking at (thread 2) is that intellisense runs OK in my IDE using that aproach. In my application this will be important as I will be using t

Re: namespace dictionaries ok?

2005-10-26 Thread Ron Adam
Alex Martelli wrote: > Ron Adam <[EMAIL PROTECTED]> wrote: >... > >> class namespace(dict): >> def __getattr__(self, name): >> return self.__getitem__(name) > >... > >>Any thoughts? Any better way to do this? > > > If any of the keys (which become attributes

Re: Microsoft Hatred FAQ

2005-10-26 Thread David Schwartz
Peter T. Breuer wrote: > claim 1a) Microsoft's tactic is X (fill in, please) > judgment 1b) tactic X is somehow not as bad as (sense?) offering >"exclusive wholesale deals" (please define) Umm, it's not a judgment. Microsoft said you can sell Windows and other operatin

Re: Microsoft Hatred FAQ

2005-10-26 Thread Paul Rubin
"David Schwartz" <[EMAIL PROTECTED]> writes: > If you want to sell meals with Whoppers in them, you have to get > permission to do so from Burger King corporate. And they will not let you > also sell Big Macs in the same store, even if McDonald's had no objection. Why do you keep comparing M

Re: Microsoft Hatred FAQ

2005-10-26 Thread Roedy Green
On Wed, 26 Oct 2005 16:53:07 -0700, "David Schwartz" <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone who said : >Umm, it's not a judgment. Microsoft said you can sell Windows and other >operating systems, but there will be a charge for every machine you sell >without Windows

RPM Modules

2005-10-26 Thread Todd Beauchemin
Is there any documentation that shows how to use the RPM API for Python. I have found one example but it's dated 2000 and I haven't been able to get it to work :(. Thanks ~Todd -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-26 Thread Roedy Green
On 26 Oct 2005 18:05:45 +0200, Tor Iver Wilhelmsen <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone who said : >> IBM seems to have had a history of squeezing out competition in the >> same way Microsoft has, if I recall correctly. > >... and were told not to by a court. Which is th

Re: Microsoft Hatred FAQ

2005-10-26 Thread Peter T. Breuer
In comp.os.linux.misc David Schwartz <[EMAIL PROTECTED]> wrote: > . Microsoft said you can sell Windows and other > operating systems, but there will be a charge for every machine you sell > without Windows -- if you want to be able to buy Windows wholesale. Someone

Re: Microsoft Hatred FAQ

2005-10-26 Thread Peter T. Breuer
In comp.os.linux.misc Roedy Green <[EMAIL PROTECTED]> wrote: > 3. Maytag makes the machines. In the computer instance, we at CMP > custom build the computers. Microsoft have no business telling me what > to do when they supplied only one component. I could not even sell a > BARE computer. I'm a

Re: Using Python to add thumbnails to Explorer

2005-10-26 Thread Roger Upole
Sorry, I didn't realize you meant per-file. However, Pythoncom supports both the interfaces (IExtractIcon and IPersistFile) specified on the page you referenced, so you ought to be able to implement an icon handler with the Pywin32 extensions. Roger "c d saunter" <[EMAIL PROTECTED]> wrot

help with sending data out the parallel port

2005-10-26 Thread David
I'm wondering if python is capable of fairly precise timing and also sending data out the parallel port. For example ; making a 7.5 KHz square wave come out of one of the data pins on the printer port. I've tried to help myself with this one but searching in the "Python Library Reference" that in

Re: NEWBIE

2005-10-26 Thread BartlebyScrivener
Start here http://www.ibiblio.org/obp/thinkCSpy/ and here http://wiki.python.org/moin/BeginnersGuide bs -- http://mail.python.org/mailman/listinfo/python-list

Re: more than 100 capturing groups in a regex

2005-10-26 Thread D H
Fredrik Lundh wrote: > Joerg Schuster wrote: > > >>>if you want to know why 100 is a reasonable and non-random choice, I >>>suggest checking the RE documentation for "99 groups" and the special >>>meaning of group 0. >> >>I have read everything I found about Python regular expressions. But I >>am

Re: NEWBIE

2005-10-26 Thread D H
[EMAIL PROTECTED] wrote: > brenden wrote: > >>hey everyonei'm new to all this programming and all this stuff and >>i just wanted to learn how to do it... >> >>does anyone think they can teach me how to work with python? > > > Don't waste readers' time with such vague and broad requests. Inst

Re: Hi All - Newby

2005-10-26 Thread D H
Ask wrote: > > I found a link to this newsgroup, downloaded 1000 messages, You might check out the python-tutor list if you have beginner questions: http://mail.python.org/mailman/listinfo/tutor > I must admit to much confusion regarding some of the basics, but I'm sure > time, reading, and

Re: Microsoft Hatred FAQ

2005-10-26 Thread David Schwartz
Paul Rubin wrote: > "David Schwartz" <[EMAIL PROTECTED]> writes: >> If you want to sell meals with Whoppers in them, you have to get >> permission to do so from Burger King corporate. And they will not >> let you also sell Big Macs in the same store, even if McDonald's had >> no objection. >

Re: Microsoft Hatred FAQ

2005-10-26 Thread David Schwartz
Roedy Green wrote: > On Wed, 26 Oct 2005 16:53:07 -0700, "David Schwartz" > <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone who > said : >>Umm, it's not a judgment. Microsoft said you can sell Windows and >> other operating systems, but there will be a charge for every >> machi

Re: Microsoft Hatred FAQ

2005-10-26 Thread David Schwartz
Roedy Green wrote: > On 26 Oct 2005 18:05:45 +0200, Tor Iver Wilhelmsen > <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone > who said : >>> IBM seems to have had a history of squeezing out competition in the >>> same way Microsoft has, if I recall correctly. >> ... and were told no

Re: Microsoft Hatred FAQ

2005-10-26 Thread David Schwartz
Peter T. Breuer wrote: > In comp.os.linux.misc David Schwartz <[EMAIL PROTECTED]> wrote: >> . Microsoft said you can sell Windows >> and other operating systems, but there will be a charge for every >> machine you sell without Windows -- if you want to be able to buy >

creating/altering the OpenOffice spredsheet docs

2005-10-26 Thread Andy Leszczynski
Any idea how to do that the way ActiveX would be used on M$? A. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python vs Ruby

2005-10-26 Thread Andy Leszczynski
Steven D'Aprano wrote: > > Every line = more labour for the developer = more cost and time. > Every line = more places for bugs to exist = more cost and time. > The place I work at the creation rate is not a problem - we could crank out in the team 1000s lines a week. Most time we spend is on m

Re: Python vs Ruby

2005-10-26 Thread Andy Leszczynski
Amol Vaidya wrote: > Hi. I am interested in learning a new programming language, and have been > debating whether to learn Ruby or Python. How do these compare and contrast > with one another, and what advantages does one language provide over the > other? I would like to consider as many opinio

urllib2 problem

2005-10-26 Thread Jeremy Martin
List, I'm relatively new to using python for interacting with webpages but Ive run into a problem that really has me stumped. I wrote a script that would figure out all the variables needed to request data from a website. I originally just used urllib.urlopen and everything worked fine on my

handling ExpatError exception raised from ElementTree.XML() method

2005-10-26 Thread mirandacascade
Verion of Python: 2.4 O/S: Windows XP ElementTree resides in the c:\python24\lib\site-packages\elementtree\ folder When a string that does not contain well-formed XML is passed as an argument to the XML() method in ElementTree.py, an ExpatError exception is raised. I can trap the exception with a

Re: Microsoft Hatred FAQ

2005-10-26 Thread Mike Schilling
"David Schwartz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >There is no different to Microsoft beween a bare computer and one > preloaded with Linux or FreeBSD. One can quickly be converted to other > with minimal cost of effort. In the market, bare PCs really do compete

Re: Microsoft Hatred FAQ

2005-10-26 Thread Paul Rubin
"David Schwartz" <[EMAIL PROTECTED]> writes: > > So, your observations about Burger King are irrelevant to Microsoft. > > Because the error I'm correcting is the belief that Microsoft's conduct > was extremely unusual (unlike anything any reputable company had ever done, > essentially). MS'

Re: Microsoft Hatred FAQ

2005-10-26 Thread David Schwartz
Mike Schilling wrote: > "David Schwartz" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >>There is no different to Microsoft beween a bare computer and one >> preloaded with Linux or FreeBSD. One can quickly be converted to >> other with minimal cost of effort. In the market, b

Re: Microsoft Hatred FAQ

2005-10-26 Thread David Schwartz
Paul Rubin wrote: > "David Schwartz" <[EMAIL PROTECTED]> writes: >>> So, your observations about Burger King are irrelevant to Microsoft. >> Because the error I'm correcting is the belief that Microsoft's >> conduct was extremely unusual (unlike anything any reputable company >> had ever don

Re: Hi All - Newby

2005-10-26 Thread Tim Roberts
"Ask" <[EMAIL PROTECTED]> wrote: > >I'm simply using the IDLE editor to hand code, then compiling and running. That doesn't help. wxPython, Tkinter, and pyQt are just a few of the packages that can be used to put windows on the screen from Python. Python has no built-in user interface stuff, so

Re: Microsoft Hatred FAQ

2005-10-26 Thread Roedy Green
On Thu, 27 Oct 2005 02:28:46 +0200, "Peter T. Breuer" <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone who said : >I'm a bit curious about this. If I were a business person, I would >simply have created two busineses (two accounts, etc.). One business >sells only machines with MS on

Re: Microsoft Hatred FAQ

2005-10-26 Thread Roedy Green
On Wed, 26 Oct 2005 19:50:07 -0700, "David Schwartz" <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone who said : >The Microsoft agreement is also up front. It's not "imposed" in any >sense except that it's one of the conditions for buying Windows wholesale. No it was not . It

Re: Microsoft Hatred FAQ

2005-10-26 Thread Roedy Green
On Wed, 26 Oct 2005 19:50:07 -0700, "David Schwartz" <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone who said : >There is no different to Microsoft beween a bare computer and one >preloaded with Linux or FreeBSD. One can quickly be converted to other with >minimal cost of effo

Re: strange problems with urllib2

2005-10-26 Thread Tim Roberts
"jdonnell" <[EMAIL PROTECTED]> wrote: > >When I run this code on windows it runs quickly (about a second per >image) but when I run it on linux it runs very very slowly (10+ seconds >per image). Is this a bug or am I missing something? On windows I tried >2.4.2 and 2.4.1 on linux i'm running 2.4.1

<    1   2   3