Re: Comparing lists

2005-10-15 Thread Christian Stapfer
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, 15 Oct 2005 18:17:36 +0200, Christian Stapfer wrote: > I'd prefer a (however) rough characterization of computational complexity in terms of Big-Oh (or Big-whatever) *anytime* to marketing-type >>

Re: Microsoft Hatred FAQ

2005-10-15 Thread John Bokma
"Matt Garrish" <[EMAIL PROTECTED]> wrote: > > "John Bokma" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> "Matt Garrish" <[EMAIL PROTECTED]> wrote: >> >>> Eventually the hope is that your OS and browser >>> will become the only means of accessing the internet. And if your OS >>

Re: Microsoft Hatred FAQ

2005-10-15 Thread Peter T. Breuer
In comp.os.linux.misc David Schwartz <[EMAIL PROTECTED]> wrote: > I guess I wasn't explicit enough. Most people who want cars also want an > engine. Some don't. Dealers could sell cars and engines separately. They > just (generally) don't. There is nothing illegal or immoral about this. Ther

Re: Microsoft Hatred FAQ

2005-10-15 Thread David Schwartz
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, 15 Oct 2005 15:48:18 -0700, David Schwartz wrote: >> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> What you call "clever marketing" the DOJ calls "monopolistic >>> practice

Re: Microsoft Hatred FAQ

2005-10-15 Thread John Bokma
Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Sun, 16 Oct 2005 00:47:09 +, John Bokma wrote: > >> Ok, let me spell it out for you: If all your applications are web >> based, and the OS shouldn't matter, why do Linux distributions >> matter? It doesn't matter which one you use to run, for ex

Re: Microsoft Hatred FAQ

2005-10-15 Thread David Schwartz
"John Bokma" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ok, let me spell it out for you: If all your applications are web based, > and the OS shouldn't matter, why do Linux distributions matter? It > doesn't matter which one you use to run, for example, OpenOffice. Yet > peopl

Re: Microsoft Hatred FAQ

2005-10-15 Thread David Schwartz
"Måns Rullgård" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "David Schwartz" <[EMAIL PROTECTED]> writes: >> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> What you call "clever marketing" the DOJ calls "monopolistic >>> practices". The courts

Re: Microsoft Hatred FAQ

2005-10-15 Thread John Bokma
"Mike Schilling" <[EMAIL PROTECTED]> wrote: > > "John Bokma" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >> Which standards? W3C doesn't make standards (they talk about working >> drafts and recommendations), so nothing to warp there for MS. > > Umm, a recommendation *is* a

Re: Jargons of Info Tech industry

2005-10-15 Thread John Bokma
[EMAIL PROTECTED] (Gordon Burditt) wrote: But HTML is not the problem! >>> Right, it's what the HTML-interpreting engines might do that is >>> the problem. >> >>You mean the same problem as for example using a very long header in >>your email to cause a buffer overflow? That is possible with

Re: How to get a raised exception from other thread

2005-10-15 Thread themightydoyle
Nevermind. I found a better solution. I used shared memory to create a keep-alive flag. I then use the select function with a specified timeout, and recheck the keep-alive flag after each timeout. Thanx for all the input. -- http://mail.python.org/mailman/listinfo/python-list

Weekly Python Patch/Bug Summary

2005-10-15 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 344 open ( +3) / 2955 closed ( +2) / 3299 total ( +5) Bugs: 883 open ( -1) / 5341 closed (+20) / 6224 total (+19) RFE : 201 open ( +5) / 187 closed ( +0) / 388 total ( +5) New / Reopened Patches __ Compiling

Re: List of strings to list of floats ?

2005-10-15 Thread skip
Madhusudan> Is it possible to convert a very long list of strings to a Madhusudan> list of floats in a single statement ? Madhusudan> I have tried float(x) and float(x[:]) but neither work. I Madhusudan> guess I would have to write a loop if there isn't a way. Try: >>> los =

Re: Microsoft Hatred FAQ

2005-10-15 Thread John Wingate
Peter T. Breuer <[EMAIL PROTECTED]> wrote: > In comp.os.linux.misc John Wingate <[EMAIL PROTECTED]> wrote: >> Peter T. Breuer <[EMAIL PROTECTED]> wrote: >>> In comp.os.linux.misc Jeroen Wenting >>> wrote: Without Microsoft 90% of us would never have seen a computer more powerful than a

List of strings to list of floats ?

2005-10-15 Thread Madhusudan Singh
Is it possible to convert a very long list of strings to a list of floats in a single statement ? I have tried float(x) and float(x[:]) but neither work. I guess I would have to write a loop if there isn't a way. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why asci-only symbols?

2005-10-15 Thread Bengt Richter
On Wed, 12 Oct 2005 10:56:44 +0200, =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?= <[EMAIL PROTECTED]> wrote: >Mike Meyer wrote: >> Out of random curiosity, is there a PEP/thread/? that explains why >> Python symbols are restricted to 7-bit ascii? > >No PEP yet; I meant to write one for several years

Two python database questions

2005-10-15 Thread Dan Stromberg
Hi folks. I'm working on some file indexing software, in python of course. Over the course of working on it, I've come upon two python+database related questions: 1) Is there a reason for the gdbm module in python 2.4.1 not to have a get method? This makes it a touch less dictionary-like. 2)

Re: How to get a raised exception from other thread

2005-10-15 Thread themightydoyle
Here's a dumbed down version of what i'm doing: import time import threading class threader(threading.Thread): def __init__(self): threading.Thread.__init__(self) pass def run(self): try: while 1: time.sleep(5) except SystemExit

Re: How to get a raised exception from other thread

2005-10-15 Thread Peter Hansen
[EMAIL PROTECTED] wrote: > I also need an answer to this problem. What _is_ the problem? We're still waiting for a clear description from the OP as to what the problem really is. How would you describe what _your_ problem is? > I'm using windows. Throwing an > exception in thread B from t

Re: How to get a raised exception from other thread

2005-10-15 Thread themightydoyle
I also need an answer to this problem. I'm using windows. Throwing an exception in thread B from thread A using a callback function. The function runs, but the thread never actually catches the exception. The try/except block is in the run() method (over-riden from the Thread class) -- http:/

Re: Microsoft Hatred FAQ

2005-10-15 Thread John W. Kennedy
Tim Roberts wrote: > "Jeroen Wenting" wrote: > >>Microsoft isn't evil, they're not a monopoly either. >>If they were a monopoly they'd have 100% of the market and there'd be no >>other software manufacturers at all. > > > This is wrong. The dictionary definition of a monopoly is when a > manu

Re: Microsoft Hatred FAQ

2005-10-15 Thread Matt Garrish
"John Bokma" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Matt Garrish" <[EMAIL PROTECTED]> wrote: > >> Eventually the hope is that your OS and browser >> will become the only means of accessing the internet. And if your OS >> and browser are the only way to access the Internet,

Re: Microsoft Hatred FAQ

2005-10-15 Thread Gunnar Hjalmarsson
[ Followup-To set to the less inappropriate alt.religion ] Xah Lee wrote: > Microsoft Hatred, FAQ Once again you fools have been tricked by the XL troll to hold an endless off-topic discussion in several groups. -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- http://ma

Re: Microsoft Hatred FAQ

2005-10-15 Thread Steven D'Aprano
On Sun, 16 Oct 2005 00:47:09 +, John Bokma wrote: > Ok, let me spell it out for you: If all your applications are web based, > and the OS shouldn't matter, why do Linux distributions matter? It > doesn't matter which one you use to run, for example, OpenOffice. Yet > people pick a certain d

Re: Jargons of Info Tech industry

2005-10-15 Thread Gordon Burditt
>>>But HTML is not the problem! >> Right, it's what the HTML-interpreting engines might do that is >> the problem. > >You mean the same problem as for example using a very long header in >your email to cause a buffer overflow? That is possible with plain >ASCII, and has been done. Before worryin

Re: Microsoft Hatred FAQ

2005-10-15 Thread Mike Schilling
"John Bokma" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Which standards? W3C doesn't make standards (they talk about working > drafts and recommendations), so nothing to warp there for MS. Umm, a recommendation *is* a standard. And Microsoft must disagree with you. When the

Re: Microsoft Hatred FAQ

2005-10-15 Thread Steven D'Aprano
On Sat, 15 Oct 2005 15:48:18 -0700, David Schwartz wrote: > "Mike Meyer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >> What you call "clever marketing" the DOJ calls "monopolistic >> practices". The courts agreed with the DOJ. Having had several large >> PC manufacturers re

Newbie help

2005-10-15 Thread John Irby
Francis Girard:   Here is the code you are looking for if I read you right:   # Michael Dawson - 1/8/03     import random   print "\tWelcome to 'Guess My Number'!"print "\nI'm thinking of a number between

Re: dis.dis question

2005-10-15 Thread skip
>> I'm still looking for info on how to use disassemble_string(). How about this? >>> import dis >>> def f(): ... print "hello world" ... >>> f.func_code.co_code 'd\x01\x00GHd\x00\x00S' >>> dis.disassemble_string(f.func_code.co_code) 0 LOAD_CONST

Re: Microsoft Hatred FAQ

2005-10-15 Thread Steve Sobol
Jeroen Wenting wrote: > no, they got their by clever marketing and generally having a product that > was easier to use for the average user than anything the competition made > and a lot more powerful than other products created for their main target > market. People forget that Bill Gates may

Re: Microsoft Hatred FAQ

2005-10-15 Thread Steve Sobol
Xah Lee wrote: > Answer: so did the German population thought Jews are morons by > heritage, to the point that Jews should be exterminated from earth. > Apparently, the entire German population cannot be morons, they must be > right. Y'know, I'm Jewish, I have friends who are Holocaust survivors,

Re: Microsoft Hatred FAQ

2005-10-15 Thread John W. Kennedy
Rhino wrote: > Everyone > else was still using typewriters - which was IBM's bread and butter in those > days - for their business needs. Oh dear, no. Not quite. There were, going back decades, machines that used punched cards, relays, stepper wheels, and punched cards. It was /that/ that was th

Re: Length of read in in python-gpib

2005-10-15 Thread Madhusudan Singh
Further, if I use 131072 (2^17) as the length, I get an error : Traceback (most recent call last): File "takedata.py", line 74, in ? x=sr.querytrca(srs,1,0,4000,131072) File "/home/labmonkey/code/oledpmt/sr830.py", line 62, in querytrca trca=sr.read(n) File "/usr/lib/python2.3/site-p

Re: dis.dis question

2005-10-15 Thread Bengt Richter
On Sun, 09 Oct 2005 12:10:46 GMT, Ron Adam <[EMAIL PROTECTED]> wrote: >Ron Adam wrote: >> >> Can anyone show me an example of of using dis() with a traceback? >> >> Examples of using disassemble_string() and distb() separately if >> possible would be nice also. > > [cliped] > >> But I still ne

Re: Return Text from popen

2005-10-15 Thread Micah Elliott
On Oct 15, Casey Bralla wrote: > How do I return text from a standard Linux command? > > For example: I want to read the stdout results of a typical linux > command (such as "df") into a Python variable. >>> from os import popen >>> p = popen("df") >>> p >>> df_out = p.read() >>> p.close() >>>

Length of read in in python-gpib

2005-10-15 Thread Madhusudan Singh
python-gpib provides Gpib.py (see end of post) for Linux. I am trying to use the method called read. I usually use it without arguments (the default length being 512). However, I am trying to read in a string with some 16,000 comma separated floating point numbers. So, I have to pass a length par

Re: Microsoft Hatred FAQ

2005-10-15 Thread John Bokma
[EMAIL PROTECTED] wrote: > John Bokma <[EMAIL PROTECTED]> writes: > >> [EMAIL PROTECTED] wrote: >> >> > John Bokma <[EMAIL PROTECTED]> writes: >> > >> >> "David Schwartz" <[EMAIL PROTECTED]> wrote: >> >> > >> >> > "Tim Roberts" <[EMAIL PROTECTED]> wrote in message >> >> > news:[EMAIL PROTECTE

Re: Microsoft Hatred FAQ

2005-10-15 Thread joe
John Bokma <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: > > > John Bokma <[EMAIL PROTECTED]> writes: > > > >> "David Schwartz" <[EMAIL PROTECTED]> wrote: > >> > > >> > "Tim Roberts" <[EMAIL PROTECTED]> wrote in message > >> > news:[EMAIL PROTECTED] > >> > > >> >> Part of their behav

Re: Jargons of Info Tech industry

2005-10-15 Thread John Bokma
[EMAIL PROTECTED] (Bengt Richter) wrote: > On Tue, 04 Oct 2005 17:14:45 GMT, Roedy Green > <[EMAIL PROTECTED]> wrote: > >>On Tue, 23 Aug 2005 08:32:09 -0500, l v <[EMAIL PROTECTED]> wrote or quoted : >> >>>I think e-mail should be text only. > I think that is a useful base standard, which allows

Re: Microsoft Hatred FAQ

2005-10-15 Thread John Bokma
"Matt Garrish" <[EMAIL PROTECTED]> wrote: > > "Tim Roberts" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> "Jeroen Wenting" wrote: >>> >>>Microsoft isn't evil, they're not a monopoly either. >>>If they were a monopoly they'd have 100% of the market and there'd be >>>no other s

Re: Microsoft Hatred FAQ

2005-10-15 Thread John Bokma
"David Schwartz" <[EMAIL PROTECTED]> wrote: > > "John Bokma" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >> "David Schwartz" <[EMAIL PROTECTED]> wrote: > >>> "Tim Roberts" <[EMAIL PROTECTED]> wrote in message >>> news:[EMAIL PROTECTED] > Part of their behavior really

Return Text from popen

2005-10-15 Thread Casey Bralla
I know this problem has a very simple answer, but I've checked the web and I don't understand the answers that I've found. How do I return text from a standard Linux command? For example: I want to read the stdout results of a typical linux command (such as "df") into a Python variable. I've tr

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

2005-10-15 Thread Bengt Richter
On Sat, 08 Oct 2005 07:55:59 GMT, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >On Fri, 07 Oct 2005 21:24:35 +1000, Steven D'Aprano ><[EMAIL PROTECTED]> declaimed the following in >comp.lang.python: > >> I think where the people are getting confused is that it is (arguably) >> acceptable to use "t

Re: Microsoft Hatred FAQ

2005-10-15 Thread John Bokma
[EMAIL PROTECTED] wrote: > John Bokma <[EMAIL PROTECTED]> writes: > >> "David Schwartz" <[EMAIL PROTECTED]> wrote: >> > >> > "Tim Roberts" <[EMAIL PROTECTED]> wrote in message >> > news:[EMAIL PROTECTED] >> > >> >> Part of their behavior really escape me. The whole thing about >> >> browser w

Re: Microsoft Hatred FAQ

2005-10-15 Thread Måns Rullgård
"David Schwartz" <[EMAIL PROTECTED]> writes: > "Mike Meyer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >> What you call "clever marketing" the DOJ calls "monopolistic >> practices". The courts agreed with the DOJ. Having had several large >> PC manufacturers refuse to sell me

Re: Microsoft Hatred FAQ

2005-10-15 Thread Greymaus
Mike Meyer wrote: > You clearly weren't paying attention to what the rest > of the microcomputer industry was doing while Gates was selling IBM > non-existent software. While IBM was introducing 16-bit processors and > DOS was doing a flat file system, Tandy was selliig systems - for a > fraction o

Re: Some set operators

2005-10-15 Thread Giovanni Bajo
Alex Martelli <[EMAIL PROTECTED]> wrote: > I still vaguely hope that in 3.0, where backwards incompatibilities > can be introduced, Python may shed some rarely used operators such as > these (for all types, of course). I hope there is no serious plan to drop them. There is nothing wrong in havin

Re: Microsoft Hatred FAQ

2005-10-15 Thread David Schwartz
"John Bokma" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "David Schwartz" <[EMAIL PROTECTED]> wrote: >> "Tim Roberts" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> Part of their behavior really escape me. The whole thing about >>> browser wars confuses m

Re: Force flushing buffers

2005-10-15 Thread Bengt Richter
On Wed, 12 Oct 2005 15:55:10 -0400, Madhusudan Singh <[EMAIL PROTECTED]> wrote: >Robert Wierschke wrote: > >> Madhusudan Singh schrieb: >>> Hi >>> >>> I have a python application that writes a lot of data to a bunch >>> of files >>> from inside a loop. Sometimes, the application h

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

2005-10-15 Thread Bengt Richter
On Fri, 7 Oct 2005 15:28:24 -0500, Terry Hancock <[EMAIL PROTECTED]> wrote: >On Friday 07 October 2005 03:01 am, Steve Holden wrote: >> OK, so how do you account for the execresence "That will give you a >> savings of 20%", which usage is common in America? > >In America, anyway, "savings" is a c

Re: Queue question

2005-10-15 Thread Steve M
According to my "Python in a Nutshell": q.get(block=True) is the signature, so, as you use it above, the call will hang until something is on the queue. If block is false and the queue is empty, q.get() will raise the exception Empty. q.get_nowait is apparently synonymous with q.get(block=False)

Re: Jargons of Info Tech industry

2005-10-15 Thread Bengt Richter
On Tue, 04 Oct 2005 17:14:45 GMT, Roedy Green <[EMAIL PROTECTED]> wrote: >On Tue, 23 Aug 2005 08:32:09 -0500, l v <[EMAIL PROTECTED]> wrote or quoted : > >>I think e-mail should be text only. I think that is a useful base standard, which allows easy creation of ad-hoc tools to search and extract d

Re: Microsoft Hatred FAQ

2005-10-15 Thread Matt Garrish
"Tim Roberts" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Jeroen Wenting" wrote: >> >>Microsoft isn't evil, they're not a monopoly either. >>If they were a monopoly they'd have 100% of the market and there'd be no >>other software manufacturers at all. > > This is wrong. The

Re: Microsoft Hatred FAQ

2005-10-15 Thread joe
John Bokma <[EMAIL PROTECTED]> writes: > "David Schwartz" <[EMAIL PROTECTED]> wrote: > > > > "Tim Roberts" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > >> Part of their behavior really escape me. The whole thing about > >> browser wars confuses me. Web browsers repres

Re: Microsoft Hatred FAQ

2005-10-15 Thread John Bokma
"David Schwartz" <[EMAIL PROTECTED]> wrote: > > "Tim Roberts" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >> Part of their behavior really escape me. The whole thing about >> browser wars confuses me. Web browsers represent a zero billion >> dollar a year market. Why woul

Re: Microsoft Hatred FAQ (TROLL DONT REPLY)

2005-10-15 Thread steve
TROLL -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-15 Thread David Schwartz
"Tim Roberts" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Part of their behavior really escape me. The whole thing about browser > wars confuses me. Web browsers represent a zero billion dollar a year > market. Why would you risk anything to own it? It really isn't that

Re: Microsoft Hatred FAQ

2005-10-15 Thread David Schwartz
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What you call "clever marketing" the DOJ calls "monopolistic > practices". The courts agreed with the DOJ. Having had several large > PC manufacturers refuse to sell me a system without some form of > Windows because MS m

Re: Microsoft Hatred FAQ

2005-10-15 Thread John Bokma
Tim Roberts <[EMAIL PROTECTED]> wrote: > Part of their behavior really escape me. The whole thing about > browser wars confuses me. Web browsers represent a zero billion > dollar a year market. Why would you risk anything to own it? Opera seems to be making money with it. Also, Firefox gets mo

Re: Python on the Power PC

2005-10-15 Thread mhykes
I'm using the same distribution (or at least that is what I started with). Try using the following sitecustomize.py file: ## sitecustomize.py ## import sys syspath = sys.path libpath = '\\Program Files\\Python\\Lib' syspath.append(libpath+'\\lib-tk') sys.path = none sys.path = syspath

Re: "no variable or argument declarations are necessary."

2005-10-15 Thread Bengt Richter
On Fri, 7 Oct 2005 21:56:12 -0700, [EMAIL PROTECTED] (Alex Martelli) wrote: >Antoon Pardon <[EMAIL PROTECTED]> wrote: > ... >> >> egold = 0: >> >> while egold < 10: >> >> if test(): >> >> ego1d = egold + 1 >> >> >> > >> > Oh come on. That is a completely contrived example, >> >>

Re: Microsoft Hatred FAQ

2005-10-15 Thread Tim Roberts
"Jeroen Wenting" wrote: > >Microsoft isn't evil, they're not a monopoly either. >If they were a monopoly they'd have 100% of the market and there'd be no >other software manufacturers at all. This is wrong. The dictionary definition of a monopoly is when a manufacturer has all or nearly all of

tkinter drawing

2005-10-15 Thread Ron Adam
I want to be able to easily create reusable shapes in Tkinter and be able to use them in mid level dialogs. So after some experimenting I've managed to get something to work. The following does pretty much what I need, but I think it can be improved on. So could anyone take a look and let me

Re: Microsoft Hatred FAQ

2005-10-15 Thread John Bokma
"Martin P. Hellwig" <[EMAIL PROTECTED]> wrote: > John Bokma wrote: > >> You mean like the lamp that keeps burning forever, like Philips has? > > No more like all the hydrogen technologies that shell has in their > possession for the last decades and only recently has begun to restart > those pr

Re: Microsoft Hatred FAQ

2005-10-15 Thread John Bokma
Michael Heiming <[EMAIL PROTECTED]> wrote: > PLONK So you think you can make points by PLONKing people? Grow up and get a life. You can learn from listening. You'll learn nothing from ploinking. Oh, and I am not amazed, since people who claim utter BS is right, plonk people who don't agree.

Queue question

2005-10-15 Thread spinner
- A two parter newbie question I am afraid. Am I right in thinking that using something like ... item = a_queue.get() print item will not print 'item' unless or until there is an item in the queue to retrieve. Effectively stalling the thread at the .

Re: Microsoft Hatred FAQ

2005-10-15 Thread Michael Heiming
In comp.os.linux.misc Matt Garrish <[EMAIL PROTECTED]>: > "Michael Heiming" <[EMAIL PROTECTED]> wrote in message [..] >> Dunno what's so BS about the possibility that the wintel mafia >> works hand in hand, M$ introduces a new OS and Intel faster CPU. > Your presumption that poor coding has anyt

Re: Microsoft Hatred FAQ

2005-10-15 Thread Matt Garrish
"Michael Heiming" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In comp.os.linux.misc John Bokma <[EMAIL PROTECTED]>: >> Michael Heiming <[EMAIL PROTECTED]> wrote: > >>> In comp.os.linux.misc John Bokma <[EMAIL PROTECTED]>: Michael Heiming <[EMAIL PROTECTED]> wrote: >>> >

Re: Some set operators

2005-10-15 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Sometimes I suggest to add things to the language (like adding some set > methods to dicts), but I've seen that I tend to forget the meaning of > six set/frozenset operators: > > s & t s &= t > s | t s |= t > s ^ t s ^= t > > My suggestion is to remove them, and keep

Re: Some set operators

2005-10-15 Thread Alex Martelli
<[EMAIL PROTECTED]> wrote: > Sometimes I suggest to add things to the language (like adding some set > methods to dicts), but I've seen that I tend to forget the meaning of > six set/frozenset operators: > > s & t s &= t > s | t s |= t > s ^ t s ^= t > > My suggestion is to remove them, and k

Some set operators

2005-10-15 Thread bearophileHUGS
Sometimes I suggest to add things to the language (like adding some set methods to dicts), but I've seen that I tend to forget the meaning of six set/frozenset operators: s & t s &= t s | t s |= t s ^ t s ^= t My suggestion is to remove them, and keep them only as explicit non-operator version

Re: how to improve simple python shell script (to compile list offiles)

2005-10-15 Thread Fredrik Lundh
Jari Aalto wrote: > Thanks, but that will not work. The files are gathered from discrete > places really? so what is that "find" command doing in your code ? compile $(find path/to -type f -name "*.py") seems to me as if python -mcompileall path/to would do exactly what your script d

Re: Microsoft Hatred FAQ

2005-10-15 Thread Martin P. Hellwig
John Bokma wrote: > You mean like the lamp that keeps burning forever, like Philips has? > No more like all the hydrogen technologies that shell has in their possession for the last decades and only recently has begun to restart those projects. >> Although Commodore where never serious compet

Re: Microsoft Hatred FAQ

2005-10-15 Thread Michael Heiming
In comp.os.linux.misc John Bokma <[EMAIL PROTECTED]>: > Michael Heiming <[EMAIL PROTECTED]> wrote: >> In comp.os.linux.misc John Bokma <[EMAIL PROTECTED]>: >>> Michael Heiming <[EMAIL PROTECTED]> wrote: >> The only thing positive about M$ entering the market, probably due to their ineff

Re: Comparing lists

2005-10-15 Thread Steven D'Aprano
On Sat, 15 Oct 2005 18:17:36 +0200, Christian Stapfer wrote: >>> I'd prefer a (however) rough characterization >>> of computational complexity in terms of Big-Oh >>> (or Big-whatever) *anytime* to marketing-type >>> characterizations like this one... >> >> Oh how naive. > > Why is it that even co

Re: how to improve simple python shell script (to compile list of files)

2005-10-15 Thread Robert Kern
Jari Aalto wrote: > Thanks, is there equivalent to this Perl statement in Python? > >@list = @ARGV[1 .. @ARGV]; > > or something similar so that I could avoid the 1 > 1 (sys.argv) check > altogether? for arg in sys.argv[1:]: ... -- Robert Kern [EMAIL PROTECTED] "In the fields of hell

Re: Microsoft Hatred FAQ

2005-10-15 Thread John Bokma
Michael Heiming <[EMAIL PROTECTED]> wrote: > In comp.os.linux.misc John Bokma <[EMAIL PROTECTED]>: >> Michael Heiming <[EMAIL PROTECTED]> wrote: > >>> The only thing positive about M$ entering the market, probably >>> due to their ineffective programming style they pushed Intel into >>> producing

Re: Microsoft Hatred FAQ

2005-10-15 Thread Michael Heiming
In comp.os.linux.misc Peter T. Breuer <[EMAIL PROTECTED]>: > In comp.os.linux.misc John Wingate <[EMAIL PROTECTED]> wrote: >> Peter T. Breuer <[EMAIL PROTECTED]> wrote: >>> In comp.os.linux.misc Jeroen Wenting >>> wrote: [..] >> Sun Microsystems was incorporated (with four employees) in February

Re: how to improve simple python shell script (to compile list of files)

2005-10-15 Thread Jari Aalto
"Chris F.A. Johnson" <[EMAIL PROTECTED]> writes: > On 2005-10-15, Jari Aalto wrote: >Don't indent: > > function compile () > { > python -c ' > import os, sys, py_compile; > i = 0; > for arg in sys.argv: > file = os.path.basename(arg); > dir = os.path.dirname(arg); >

Re: Microsoft Hatred FAQ

2005-10-15 Thread Michael Heiming
In comp.os.linux.misc John Bokma <[EMAIL PROTECTED]>: > Michael Heiming <[EMAIL PROTECTED]> wrote: >> The only thing positive about M$ entering the market, probably >> due to their ineffective programming style they pushed Intel into >> producing pretty fast while cheapo CPUs. > Amazing, I though

Re: [ANN] XPN 0.5.5 released

2005-10-15 Thread Nemesis
Mentre io pensavo ad una intro simpatica "Cousin Stanley" scriveva: >> I'd add also config.txt ;-) > > I did but failed to include it in the list I posted yes of course. > One small config problem that I haven't figured out > how to deal with > > I use a dark background wi

Re: Perl-Python-a-Day: Sorting

2005-10-15 Thread Fredrik Lundh
Tim Roberts wrote: > >This entry is obsolete: it should mention the 'key' option of the > >standard sort method. > > It should mention it, but not necessarily recommend it. > > I haven't run the numbers in Python, but in Perl, the undecorated sort is > so well-optimized that the Schwartzian transf

Re: Jargons of Info Tech industry

2005-10-15 Thread Branimir Maksimovic
"Roedy Green" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 11 Oct 2005 11:45:03 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : > >>Jeff Poskanzer, now *he* has a spam problem. He gets a few million >>spams a day: http://www.acme.com/mail_filtering/ >. > > It is

Re: how to improve simple python shell script (to compile list of files)

2005-10-15 Thread Chris F.A. Johnson
On 2005-10-15, Jari Aalto wrote: > > [Keep CC, thank you] > > Please suggest comments how can I make this script to work > from bash. Also how can I skip better the [0] argument from > command line without hte extra variable i? > > #!/bin/bash > > function compile () > { > pyth

Re: Microsoft Hatred FAQ

2005-10-15 Thread John Bokma
"Martin P. Hellwig" <[EMAIL PROTECTED]> wrote: > Jeroen Wenting wrote: > >> >> Without Microsoft 90% of us would never have seen a computer more >> powerful than a ZX-81 and 90% of the rest of us would never have used >> only dumb mainframe terminals. > > At the time you "PC" guys where hacking

Re: Microsoft Hatred FAQ

2005-10-15 Thread Peter T. Breuer
In comp.os.linux.misc John Wingate <[EMAIL PROTECTED]> wrote: > Peter T. Breuer <[EMAIL PROTECTED]> wrote: >> In comp.os.linux.misc Jeroen Wenting >> wrote: >>> Without Microsoft 90% of us would never have seen a computer more powerful >>> than a ZX-81 and 90% of the rest of us would never have

Re: UI toolkits for Python

2005-10-15 Thread Stefan Behnel
Kenneth McDonald wrote: > Is there any emerging consensus on the "best" UI for toolkit. Tk never > quite made it but from what I can see, both qt and wxWin are both doing > fairly well in general. I'm already aware of the licensing issues > surrounding qt (fwiw, I think their license fee for co

Re: UI toolkits for Python

2005-10-15 Thread Stefan Behnel
Kenneth McDonald schrieb: > Is there any emerging consensus on the "best" UI for toolkit. Tk never > quite made it but from what I can see, both qt and wxWin are both doing > fairly well in general. I'm already aware of the licensing issues > surrounding qt (fwiw, I think their license fee for

Re: Microsoft Hatred FAQ

2005-10-15 Thread John Bokma
Michael Heiming <[EMAIL PROTECTED]> wrote: > The only thing positive about M$ entering the market, probably > due to their ineffective programming style they pushed Intel into > producing pretty fast while cheapo CPUs. Amazing, I thought Xah Lee was the only one able to fit so much BS in one sen

Re: Perl-Python-a-Day: Sorting

2005-10-15 Thread Tim Roberts
Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> wrote: >Abdulaziz Ghuloum <[EMAIL PROTECTED]> writes: > >> Python FAQs contain an entry to the schwartzian transform. >> >> http://www.python.org/doc/faq/programming.html#i-want-to-do-a-complicated-sort-can-you-do-a-schwartzian-transform-in-python > >T

Re: Here I am again, same old arguments

2005-10-15 Thread Tim Roberts
Steven D'Aprano <[EMAIL PROTECTED]> wrote: > >Global variables aren't *entirely* bad. I use them myself, sometimes for >constants (well, pseudo-constants -- Python doesn't enforce constants) and >short, quick 'n' dirty throw away code. > >But in general, as your code gets bigger and more complicate

Re: Microsoft Hatred FAQ

2005-10-15 Thread Rhino
"Real Gagnon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I'd be VERY surprised if IBM predicted that there would be only 5 > > COMPUTERS in *2000* - perhaps you mean 5 *manufacturers* of computers? > > - unless the prediction was made a VERY long time ago. I think you are > >

Re: how to improve simple python shell script (to compile list of files)

2005-10-15 Thread Jari Aalto
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > Jari Aalto wrote: > | > Please suggest comments how can I make this script to work | > from bash. > > replace it with a call to the compileall module? > > $ python -mcompileall [directory...] Thanks, but that will not work. The files are gathered

Re: Microsoft Hatred FAQ

2005-10-15 Thread Real Gagnon
> I'd be VERY surprised if IBM predicted that there would be only 5 > COMPUTERS in *2000* - perhaps you mean 5 *manufacturers* of computers? > - unless the prediction was made a VERY long time ago. I think you are > giving a badly-mangled version of something I saw when I worked at > IBM. "I thin

Re: Comparing lists

2005-10-15 Thread Christian Stapfer
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, 15 Oct 2005 06:31:53 +0200, Christian Stapfer wrote: > >> "jon" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> >>> To take the heat out of the discussion: >>> >>> sets are blazingly fast. >>

Re: How to get a raised exception from other thread

2005-10-15 Thread Peter Hansen
dcrespo wrote: > How can I get a raised exception from other thread that is in an > imported module? Define what "get" means for your purposes. It appears that you mean you want to catch the exception, but in the thread which launched the other thread in the first place. If that's true, please

Re: Microsoft Hatred FAQ

2005-10-15 Thread John Wingate
Peter T. Breuer <[EMAIL PROTECTED]> wrote: > In comp.os.linux.misc Jeroen Wenting > wrote: >> Without Microsoft 90% of us would never have seen a computer more powerful >> than a ZX-81 and 90% of the rest of us would never have used only dumb >> mainframe terminals. > > Uh - when microsoft pro

Re: Accessing Parallel Port in Python Error : Priviledged Instruction

2005-10-15 Thread Peter Hansen
[EMAIL PROTECTED] wrote: > When I use Pyparallel to access the parallel port in WinXP with Python > I get an error saying that this is a priviledged instruction > > Any clue ? Here's a clue: please always cut and paste the *entire actual* traceback when you report a Python error. If it's not a

Re: XML dom question

2005-10-15 Thread George
Yes but I cannot get the if statement to work to compare the two or the replaceChild portion to work. Could someone help me with that. -- http://mail.python.org/mailman/listinfo/python-list

Re: Yes, this is a python question, and a serious one at that (moving to Win XP)

2005-10-15 Thread Ivan Shevanski
On 10/14/05, Peter Hansen <[EMAIL PROTECTED]> wrote: Christian Stapfer wrote:> 0.0. ... and add an item to your SendTo folder that allows> you to have Windows Explorer open a terminal window with its> current directory set to the currently displayed folder > (= "Open terminal here").Or install the

Re: [ANN] XPN 0.5.5 released

2005-10-15 Thread Cousin Stanley
> I'd add also config.txt ;-) I did but failed to include it in the list I posted One small config problem that I haven't figured out how to deal with I use a dark background with white foreground text When posting a reply in the compose/edit window th

  1   2   >