Re: Microsoft Hatred FAQ

2005-10-25 Thread David Schwartz
"John-Paul Stewart" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > David Schwartz wrote: >> If nobody wants these operating systems, then it doesn't hurt him not to >> be able to sell them. If people want them, then he could have shown

Re: Microsoft Hatred FAQ

2005-10-25 Thread David Schwartz
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The first two points are factually wrong, and the third is an opinion > based on the concept, as far as I can see, that Microsoft should be > allowed to do anything they like, even if those actions harm others.

Re: Microsoft Hatred FAQ

2005-10-25 Thread David Schwartz
"Martin P. Hellwig" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Not Bill Gates wrote: >> [EMAIL PROTECTED] wrote... >>> On Tue, 25 Oct 2005 15:35:47 +, Not Bill Gates wrote: >>> Heck, I dunno. Like you, I don't even really care all that much. >>> You don't care that

Re: Tricky import question.

2005-10-25 Thread David Poundall
All I was trying to do with my feeble code attempt, was to return a reference to the imported module so that I could do... result = instanceref.main() where main was a function within the import. Having glanced at the code in the import section of the help files all morning, when I actually sat

Re: Tricky import question.

2005-10-25 Thread David Poundall
repr() is a new one on me I am afraid, and I have yet to achieve any decent competance with global and local lists. As you probaly noticed earlier, I managed to bungle my way through this time. However, I will log this thread away for when I next get stuck with a bindings. Thank you Bengt :-)

Re: grep

2005-10-25 Thread David Isaac
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote:: def grep(pattern, *files): search = re.compile(pattern).search for file in files: for index, line in enumerate(open(file)): if search(line): print ":".join((file, str(index+1), line[:-1])

How best to reference parameters.

2005-10-25 Thread David Poundall
the clean code Y.P4 = 1 Y.P3 = 0 That I would like to have. Can anyone suggets a technique for parameter storage that may be able to give me what I want here ? Thanks in advance. David -- http://mail.python.org/mailman/listinfo/python-list

Re: How best to reference parameters.

2005-10-25 Thread David Poundall
It looks like I am going to have to bite the bullet and use properties. The following should do what I want. class test: def __init__(self): self.__HB = 0 self.__VPG = 0 def _get_HB(self): return (self.__HB, 'MF1', 0) def _set_HB(self, x): self.__HB = x HB = prope

Re: Microsoft Hatred FAQ

2005-10-25 Thread David Schwartz
"Peter T. Breuer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> McDonald's won't sell a Burger King their burger patties. > McDonald's are not in the business of wholesale distribution of burger > patties so your statement is simply sited in the wrong universe of > discourse.

Re: Microsoft Hatred FAQ

2005-10-25 Thread David Schwartz
"Peter T. Breuer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In comp.os.linux.misc David Schwartz <[EMAIL PROTECTED]> wrote: >> "Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>

Re: Microsoft Hatred FAQ

2005-10-25 Thread David Schwartz
"Roedy Green" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Of course he cares. He is a shill. He licks that hand that feeds him. In an indirect sense. The company I work for does get a lot of sales because we are "anyone but Microsoft". So we actually profit from people's

Re: Microsoft Hatred FAQ

2005-10-26 Thread David Blomstrom
Time for my two cents regarding this "debate." I started working on an anti-Microsoft website at http://www.freedomware.us/ some time ago. I never really finished it, for several reasons. I was new to PHP, so it was kind of slow going to begin with. Then I made some big mistakes that I still haven

Re: Microsoft Hatred FAQ

2005-10-26 Thread David Blomstrom
A bit off topic, but it amazes me that people in the web design/Internet industry don't take a more active stance against Microsoft. Think about it: The health care industry has been privatized in the U.S. I spent sixteen years in education, another institution that has been privatized. (It has la

Re: How best to reference parameters.

2005-10-26 Thread David Poundall
Nice - I like that Tony. I had seen it around before but I didn't catch on. Thanks for the clear example.. -- http://mail.python.org/mailman/listinfo/python-list

How do I access the property info in this example ?

2005-10-26 Thread David Poundall
How do I access the property information in this example ? class C(object): def getx(self): return self.__x def setx(self, value): self.__x = value def delx(self): del self.__x x = property(getx, setx, delx, "I'm the 'x' property.") I would like to get at ... "I'm the 'x' propert

Re: How do I access the property info in this example ?

2005-10-26 Thread David Poundall
Thanks - I was trying to do c = C() print c.x.__doc__ my mistake. -- http://mail.python.org/mailman/listinfo/python-list

Re: How best to reference parameters.

2005-10-26 Thread David Poundall
Sadly Ron, c_y can only see index and showall in your example. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to processing multi redirect?

2005-10-26 Thread David Wahler
which sets a cookie; this cookie is required to view the original page, or else it'll get stuck in a loop. This fixes the problem: >>> thing = urllib2.HTTPRedirectHandler() >>> thing2 = urllib2.HTTPCookieProcessor() >>> opener = urllib2.build_opener(thing, thing2) >&

Re: Microsoft Hatred FAQ

2005-10-26 Thread David Schwartz
"Peter T. Breuer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In comp.os.linux.misc David Schwartz <[EMAIL PROTECTED]> wrote: >> "Peter T. Breuer" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>

Re: Microsoft Hatred FAQ

2005-10-26 Thread David Schwartz
"Eike Preuss" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> Right, except that's utterly absurd. If every vendor takes their tiny >> cut of the 95%, a huge cut of the 5% is starting to look *REALLY* good. > Sure, that would be true if the market would be / would have been r

Re: Microsoft Hatred FAQ

2005-10-26 Thread David Schwartz
"Tor Iver Wilhelmsen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > entropy <[EMAIL PROTECTED]> writes: >> 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 the w

Re: Microsoft Hatred FAQ

2005-10-26 Thread David Schwartz
"Peter T. Breuer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In comp.os.linux.misc David Schwartz <[EMAIL PROTECTED]> wrote: > No they aren't. A pc o/s is something you load on an IBM pc, and an IBM > pc is an open format. There is no &

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: 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 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, e

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 sys

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

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 wi

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

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Roedy Green wrote: > 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 >>

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Roedy Green wrote: > 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 excep

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Roedy Green wrote: > 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 Fre

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Paul Rubin wrote: > "David Schwartz" <[EMAIL PROTECTED]> writes: >> But there is no law against that type of conduct, *unless* you >> are a monopolist. So your conclusion hinges on the determination >> that Microsoft had a monopoly, and that hinge

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Roedy Green wrote: > On Thu, 27 Oct 2005 00:49:27 -0700, "David Schwartz" > <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone who > said : >>I guess I don't understand what you're saying. Are you saying that >> Microsoft demanded yo

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Roedy Green wrote: > The tactic Univac/Burroughs/Prime used, at least for big sales, was > for example invite the potential customer to view some installation to > talk to a satisfied client about how they were using their gear. There > might be a convenient client in say ... Las Vegas. Yep,

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Sibylle Koczian wrote: > David Schwartz schrieb: >> When you are not in the majority, you are going to face >> inconveniences. You'd face the same inconvenience if you wanted to >> buy a new car without seats. Most people wants cars with seats, so >>

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Roedy Green wrote: > On Sun, 16 Oct 2005 16:31:41 GMT, Roedy Green > <[EMAIL PROTECTED]> wrote, quoted or > indirectly quoted someone who said : >> I used to be a retailer of custom computers. MS used a dirty trick >> to compete with IBM's OS/2. They said to me as a retailer. You must >> buy a

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Peter T. Breuer wrote: > In comp.os.linux.misc David Schwartz <[EMAIL PROTECTED]> wrote: >>Microsoft was not going to let a business >> parasitically use Windows to build a business that touted the >> advantages of competing products. >

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Lasse Vågsæther Karlsen wrote: > David Schwartz wrote: >> Roedy Green wrote: > >> competing products. (Just as Burger King corporate will not you sell >> Big Macs in the same store in which you sell Whoppers.) > Rather odd comparison don't you think ?

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Paul Rubin wrote: > "David Schwartz" <[EMAIL PROTECTED]> writes: >> The appeals courts upheld that the trial court did not abuse its >> discretion. However, both a finding of "yes, Microsoft had a >> monopoly" and a finding of "no, Micros

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Roedy Green wrote: > On Thu, 27 Oct 2005 04:06:16 -0700, "David Schwartz" > <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone who > said : >>Right, they send gun-wielding thugs to use force against people. >> That's a lot like ref

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Roedy Green wrote: > On Thu, 27 Oct 2005 04:06:16 -0700, "David Schwartz" > <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone who > said : >>Well shit, how surprising that they wouldn't want to do business >> with you if you broke y

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Peter T. Breuer wrote: > That's UP TO THE FRIGGING STORE (in contrast to the MS situation). No, it's not up to the store. In all the cases I mentioned, it's the manufacturer of the product that imposes the restrictions and the manufacturer of the product is not the store owner. >> I don't

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Iain King wrote: > Don't you see how your metaphor doesn't work? No. > It would only be > fitting if Microsoft OWNED the outlet. Huh? > Places which sell Whoppers > are Burger King franchises, so of course they aren't going to sell > Big Mac's. Right. The Burger King corporate fra

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Iain King wrote: > David Schwartz wrote: >> Roedy Green wrote: >> >>> The particular way MS threatened to put me out of business was by >>> threatening to arm twist all wholesalers to refuse to sell MS >>> product to me, which any retailer needed to sur

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Roedy Green wrote: > 1. it was a threat to destroy a business -- e.g vandalise tens of > thousands of dollars of property. For all practical purpose they > threatened to steal my business. It would be roughly the same dollar > value as threatening to burn down a large house. No, it was a th

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
David Schwartz wrote: > Paul Rubin wrote: >> If the trial court >> determines a fact and it's upheld on appeal, it's an established >> legal fact regardless of whether you or Microsoft likes it. I just found this article: http://capmag.com/article.asp?ID=88

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Lasse Vågsæther Karlsen wrote: > I would think that if I set up a shop and wanted to have the word > "Microsoft" as part of the shop name, there would be some rules > dictating what products I could and could not sell, yes. Wether those > rules are set forth in a law somewhere or Microsoft set the

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Lasse Vågsæther Karlsen wrote: > David Schwartz wrote: >> Burger King won't let you sell Whoppers or buy their burger >> patties wholesale no matter what you want to call your store unless >> you take the whole franchise deal. It's an all-or-nothing p

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Paul Rubin wrote: > "David Schwartz" <[EMAIL PROTECTED]> writes: >> I defy you to find any court that has ruled this practice >> illegal for a company that does not have a monopoly. Because if they >> did, I'm going after Doctor's Associat

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Paul Rubin wrote: > "David Schwartz" <[EMAIL PROTECTED]> writes: >>> Of course it's legal for non-monopoly companies. You seem to think >>> Microsoft's illegal monopoly is an irrelevant detail. It is not. >> What is an "illegal m

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
Espen Myrland wrote: > "David Schwartz" <[EMAIL PROTECTED]> writes: >> What is an "illegal monopoly"? > The opposite of a "legal monopoly". For example, in Norway we have > "Vinmonopolet", a monopoly which are the only one allowe

Counting Threads

2005-10-27 Thread David Poundall
eter to do a count but I am having no luck I am afraid. Its 'GlobalThreadCount' I am trying to get to work. I may need to use the globals built in - or do I. Thanks in advance David # from threading import Thread, Event

Re: Counting Threads

2005-10-27 Thread David Poundall
Just sorted (its always the way when you post isn't it) But the count isn't doint what I expected. I was after a increment after every time the class was used ireespective of instance. Instead I get a count based on the instance usage. Idea's anyone? # -

Re: Counting Threads

2005-10-27 Thread David Poundall
Just sorted (its always the way when you post isn't it) But the count isn't doint what I expected. I was after a increment after every time the class was used ireespective of instance. Instead I get a count based on the instance usage. Idea's anyone? # -

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
"John Gordon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In <[EMAIL PROTECTED]> "David Schwartz" > <[EMAIL PROTECTED]> writes: >> What is an "illegal monopoly"? > A monopoly that acts in certain ways, ab

Re: Counting Threads

2005-10-27 Thread David Poundall
oo far into my app, as I would really like to be able to code in a Pythonesque fashion. David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
"Paul Rubin" <http://[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "David Schwartz" <[EMAIL PROTECTED]> writes: >> Sorry to be pedantic, but I think it's an important point that no >> court >> ever found that Micro

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
ty being "equated to that of > criminals with guns", and refuses to discuss the issue. Ironically, > while no one else has so much as compared MS to criminals with guns - > after all, they're white collar criminals - David Schwartz called the > DOJ official who were inve

Re: Counting Threads

2005-10-27 Thread David Poundall
First time I have used thread locking. This seems to work but is it correct? from threading import Thread, Event, Lock . . . def launch(self, ThreadTitle, SubToLaunch, SubsArgs=(), SubsKwargs={}, AsDaemon=True): my_lock = Lock() my_lock.acquire() try: # ---

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> "Ironically, while no one else has so much as compared MS to criminals >> with >> guns". I defy you to find *one* place where I complain that MS behavior >> is >> equated to the actual use of force where that is not in

Re: Microsoft Hatred FAQ

2005-10-27 Thread David Schwartz
"Mike Schilling" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >>> There's a huge difference to the non-techy consumer. One of the >>> buggest reasons Linux has had a reputation of being harder to use >>> than Windows was the fact that Linux had to be installed, while >>> Windows

Re: Counting Threads

2005-10-28 Thread David Poundall
Sorry Denis - but could you give me an example. I can't for the life of me see how the syntax for that would go. -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-28 Thread David Blomstrom
"Everytime someone compares MS's behavior with some less controversial criminal behavior, you act like they accused MS of holding people up at gunpoint." Screwing literally millions of consumers and taxpayers and holding entire schools hostage is far worse than holding up an individual at gunpoint

Re: popen2

2005-10-28 Thread David Wahler
;re asking for. Could you please clarify? -- David -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-28 Thread David Schwartz
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The quote about the mafia doesn't compare MS's actions to "actual use > of force". I'm sorry, that's just absurd. I won't speculate on what motivates you to engage in such crazy distortion. Of course the quote about

Re: Microsoft Hatred FAQ

2005-10-28 Thread David Schwartz
"Lasse Vågsæther Karlsen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ok, let me just make my opinion very clear on this and then I'll just > leave this thread altogether. > > I think you are comparing apples and oranges so whatever conclusion you > manage to draw from that i

Re: Microsoft Hatred FAQ

2005-10-28 Thread David Schwartz
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "David Schwartz" <[EMAIL PROTECTED]> writes: >> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> The quote

Re: Counting Threads

2005-10-29 Thread David Poundall
After much optimisation it turns out the following code does the job for me. In the end using count didn't give me the flexibility I needed. Instead I now name each thread and track them accordingly. It's arguable if I need the thread locking now though, however I have left it in to remind me of

Re: Scanning a file

2005-10-29 Thread David Rasmussen
ions presented in this thread is nearly as fast as the print file("filename", "rb").read().count("\x00\x00\x01\x00") /David -- http://mail.python.org/mailman/listinfo/python-list

Re: Scanning a file

2005-10-29 Thread David Rasmussen
one-liner actually counts the number of frames in an MPEG2 file. I want to know this number for a number of files for various reasons. I don't want it to take forever. > If you are planning to use this count to do something, perhaps there is a > more efficient way to combine the two steps into one -- especially > valuable if your files really are huge. > Of course, but I don't need to do anything else in this case. /David -- http://mail.python.org/mailman/listinfo/python-list

Re: dreaming in Python

2005-10-30 Thread David Poundall
Sounds like someone may have the kernal of an idea for a book here ;-) -- http://mail.python.org/mailman/listinfo/python-list

Problem With Insert with MySQLdb

2005-10-30 Thread David Mitchell
Hello, I am a complete beginner with Python. I've managed to get mod_python up and running with Apache2 and I'm trying to a simple insert into a table in a MySQL database. I'm using the MySQLdb library for connectivity. I can read from the database no problem, but when I do an insert, the value

Re: Scanning a file

2005-10-30 Thread David Rasmussen
No comments to this post? /David -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-31 Thread David Schwartz
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> Microsoft's behavior consisted of arguments, that is, did not >> involve force, the threat of force, fraud, or the threat of >> fraud. This is perhaps the most vital distinction that there is. > Wrong. Either your defin

Re: Microsoft Hatred FAQ

2005-10-31 Thread David Schwartz
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Of course, you've dropped the real point, which is your own inabillity > to distinguish between, as you put it, "guns and arguments." You > always act as if every mention of a crime committed by someone other > than micro

Re: Microsoft Hatred FAQ

2005-10-31 Thread David Schwartz
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Another straw man. I'm not trying to oblitarate that difference No matter how many times I quote to you where you specifically do exactly this, you insist you aren't. Yes, you are. You equate metaphorical force wit

Re: Microsoft Hatred FAQ

2005-10-31 Thread David Schwartz
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "David Schwartz" <[EMAIL PROTECTED]> writes: >>> I'm trying to find out why you regularly ignore that difference for >>> everyone but MS. >> To su

Re: Microsoft Hatred FAQ

2005-10-31 Thread David Schwartz
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "David Schwartz" <[EMAIL PROTECTED]> writes: >> You have not disproved that. The closest you've come to a disproof is >> one case where the word "theft&q

Where to save classes? How to access classes?

2005-10-31 Thread David Mitchell
Hi, I'm trying to get into the object oriented aspect of Python. If I create a custom class (in it's own file), how do I access that class in a function in a different file? In Java there's the notion of a CLASSPATH, where you can tell the compiler to look for classes. Is there something simil

Re: Where to save classes? How to access classes?

2005-10-31 Thread David Wahler
David Mitchell wrote: > Hi, > > I'm trying to get into the object oriented aspect of Python. If I create > a custom class (in it's own file), how do I access that class in a > function in a different file? In Java there's the notion of a CLASSPATH, > where you

Re: Reuse base-class implementation of classmethod?

2005-10-31 Thread David Wahler
be used like this: class B(A): @classmethod def foo(cls, a, b): super(B, cls).foo(a, b) This all assumes you want to modify the behavior of foo in a subclass. If not, of course, you don't need to override it at all. -- David -- http://mail.python.org/mailman/listinfo/python-list

Re: OfflineIMAP needs a good home

2005-11-01 Thread David Ascher
ritten 100% in Python.  You can get it with: If you switch to a license which is compatible with the PSF's license (i.e. BSD or MIT), then you're more likely to find adoptees (IMO).--david -- http://mail.python.org/mailman/listinfo/python-list

Re: Scanning a file

2005-11-01 Thread David Rasmussen
Lasse Vågsæther Karlsen wrote: > David Rasmussen wrote: > > >> If you must know, the above one-liner actually counts the number of >> frames in an MPEG2 file. I want to know this number for a number of >> files for various reasons. I don't want it to take fore

Re: Scanning a file

2005-11-01 Thread David Rasmussen
occur > in the data ;-) > Sure, but I wanted to ask the general question :) I am new to Python and I want to learn about the language. /David -- http://mail.python.org/mailman/listinfo/python-list

Re: Scanning a file

2005-11-01 Thread David Rasmussen
ones which align on word boundaries? > Nope, sorry. On the files I have tried this on, the pattern could occur on any byte boundary. /David -- http://mail.python.org/mailman/listinfo/python-list

Re: callback for ctypes

2005-11-01 Thread David Wahler
the exact details of how your compiler translates C++ code--which is certainly a non-trivial task. Also, I can't find any references for this "QImage Camera". Could you post some additional information? -- David -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's website does a great disservice to the language

2005-11-01 Thread David Rasmussen
Steve Holden wrote: > > [Thinks: wonder if it's time to release a sneak preview]. > It is! It is! /David -- http://mail.python.org/mailman/listinfo/python-list

Re: Scanning a file

2005-11-02 Thread David Rasmussen
know I am in the cases I am interested in. > And heaven help you if you want to support MPEGs that are slightly > broken... > I don't. This tool is for use in house only. And on MPEGs that are generated in house too. /David -- http://mail.python.org/mailman/listinfo/python-list

Re: question about urllib and parsing a page

2005-11-02 Thread David Wahler
[EMAIL PROTECTED] wrote: > hey there, > i am using beautiful soup to parse a few pages (screen scraping) > easy stuff. > the issue i am having is with one particular web page that uses a > javascript to display some numbers in tables. > > now if i open the file in mozilla and "save as" i get the nu

Getting a function name from string

2005-11-02 Thread David Rasmussen
If I have a string that contains the name of a function, can I call it? As in: def someFunction(): print "Hello" s = "someFunction" s() # I know this is wrong, but you get the idea... /David -- http://mail.python.org/mailman/listinfo/python-list

Re: declaring Hex in python

2005-11-03 Thread David Wahler
C. >>> hex(0x1234 & 0xFF) '0x34' >>> hex(0x34 << 8) '0x3400' Hope this helps. -- David -- http://mail.python.org/mailman/listinfo/python-list

Re: Can Anyone Help me on this

2005-11-03 Thread David Wahler
>> list1 > ['1', '2', '3', '4', '5', '6', '7', '8', '9'] > >>> list2 > ['9', '8', '7', '6', '5', '4', '3', &

Re: Shareware in Python

2005-11-04 Thread David Wahler
wn license, not the GPL: see http://www.python.org/2.4.2/license.html for details. I've just skimmed it, and it looks like you're fine as long as you include the Python license agreement and copyright notice. -- David -- http://mail.python.org/mailman/listinfo/python-list

Re: Threading-> Stopping

2005-11-04 Thread David Wahler
condition that's causing it to block. If it's waiting for input from a Queue, you have to push a dummy value down it to wake up the thread and give it a chance to check the shutdown flag. If it's blocking to do I/O, you'll have to use select() and provide a timeout value to ch

Re: How can I do this in Python?

2005-11-04 Thread David Wahler
rer" header to determine the page the user was on. Then, just use an HTTP redirect to send them back to that page. Are you using a particular web application framework, or separate CGI scripts? -- David -- http://mail.python.org/mailman/listinfo/python-list

Re: python gc performance in large apps

2005-11-04 Thread David Rushby
Robby Dermody wrote: > I have not yet run the director with COUNT_ALLOCS yet, due to a > problem dynamically loading in the kinterbasdb (Firebird SQL > interface) module. What're the specifics of the loading problem with kinterbasdb? AFAIK, kinterbasdb itself runs fine in a debug build of Python.

Can't instantiate class

2005-11-06 Thread David Mitchell
Hello, Here is a very basic question, but it is frustrating me to no end nonetheless. I have one file called addLink.py. In a method in this file I am trying to instantiate a class and call a method from that class. Here is the code: def getCategories(): # instantiate the DataUtil clas

Re: Can't instantiate class

2005-11-06 Thread David Mitchell
: cannot import name DataUtil Could these errors have something to do with the fact that I am doing this through mod_python? Thanks again, Dave Michael P. Soulier wrote: > On 11/6/05, David Mitchell <[EMAIL PROTECTED]> wrote: > >>import DataUtil >> >> File &q

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