Re: Microsoft Hatred FAQ

2005-10-17 Thread Roedy Green
On Mon, 17 Oct 2005 22:21:55 -0700, "David Schwartz" <[EMAIL PROTECTED]> wrote or quoted : >I don't think any of it bordered on force or fraud. However, their >obligation to their shareholders requires them to do anythign that borders >on force/fraud so long as it isn't force/fraud. I avoid

Re: Microsoft Hatred FAQ

2005-10-17 Thread Roedy Green
On 18 Oct 2005 06:20:56 GMT, John Bokma <[EMAIL PROTECTED]> wrote or quoted : > >That an HTML standard (ISO/IEC 15445:2000) and an HTML recommendation by >w3c (4.01 for example) are two different things, and mixing them up by >calling both standards is a bad thing. Because ... what are the cons

bug in os.system?

2005-10-17 Thread nicksjacobson
The following code fails (pythonbugtest.exe takes one parameter, a string): import os result = os.system('"pythonbugtest.exe" "test"') assert(result == 0) The error message is: 'pythonbugtest.exe" "test' is not recognized as an internal or external command, operable program or batch file. Traceb

Re: Microsoft Hatred FAQ

2005-10-17 Thread Mike Meyer
"Mike Schilling" <[EMAIL PROTECTED]> writes: > "Mike Meyer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> "Mike Schilling" <[EMAIL PROTECTED]> writes: >>> What matters in generating HTML is which browsers you want to support and >>> what they understand. Standards and recommend

Don't want to serialize a variable of object

2005-10-17 Thread Iyer, Prasad C
Hi, I got a class which I need to serialize, except for couple of variable. i.e. import cPickle as p class Color: def __init__(self): print "hello world" self.x=10 self.somechar="this are the characters" color=Color() f=file('poem.txt', 'w') p.dump(color, f) f.close()

Re: Microsoft Hatred FAQ

2005-10-17 Thread John Bokma
"Mike Schilling" <[EMAIL PROTECTED]> wrote: > "John Bokma" <[EMAIL PROTECTED]> wrote in message [ w3c "standard" v.s. ISO ] > You haven't said why you thinbk "standards" are more valuable than > "recommendations". We apparently both agree they're no more likely to be > observed, so what is th

www.liveboard.8my.com

2005-10-17 Thread thegreat_lover2003
Hello Friend You are invited to join www.liveboard.8my.com There you can discuss / post on various topics like Poems, Love, Romance, Flirting, Quotes, Shayris, Movies, Music, Personal Problem Discussions, Computers & Internet (Hacking at security end), Animations, Business, Employment and lots mo

Re: Microsoft Hatred FAQ

2005-10-17 Thread Mike Schilling
"John Bokma" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Mike Schilling" <[EMAIL PROTECTED]> wrote: > >> >> "John Bokma" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> Roedy Green <[EMAIL PROTECTED]> wrote: >>> On 16 Oct 2005 05:22:47 GMT, John Bokma <[

Re: Microsoft Hatred FAQ

2005-10-17 Thread Mike Schilling
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Mike Schilling" <[EMAIL PROTECTED]> writes: >> What matters in generating HTML is which browsers you want to support and >> what they understand. Standards and recommendations are both irrelevant. > > Unless, of course,

Re: Hygenic Macros

2005-10-17 Thread Robert Kern
David Pokorny wrote: > Hi, > > Just wondering if anyone has considered macros for Python. I have one > good use case. In "R", the statistical programming language, you can > multiply matrices with A %*% B (A*B corresponds to pointwise > multiplication). In Python, I have to type > > import Num

Re: Microsoft Hatred FAQ

2005-10-17 Thread Mike Schilling
"John Bokma" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Mike Schilling" <[EMAIL PROTECTED]> wrote: > >> >> "John Bokma" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> "Mike Schilling" <[EMAIL PROTECTED]> wrote: >>> "John Bokma" <[EMAIL PROTECTED]> wrot

Re: Comparing lists

2005-10-17 Thread Christian Stapfer
"Alex Martelli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Christian Stapfer <[EMAIL PROTECTED]> wrote: > >> "Alex Martelli" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> > Christian Stapfer <[EMAIL PROTECTED]> wrote: >> > >> >> This is why we would like to

Re: Question on class member in python

2005-10-17 Thread Johnny Lee
Peter Otten 写道: > Johnny Lee wrote: > > > Class A: > >def __init__(self): > > self.member = 1 > > > >def getMember(self): > > return self.member > > > > a = A() > > > > So, is there any difference between a.member and a.getMember? thanks > > for your help. :) > > Yes. accessor

Hygenic Macros

2005-10-17 Thread David Pokorny
Hi, Just wondering if anyone has considered macros for Python. I have one good use case. In "R", the statistical programming language, you can multiply matrices with A %*% B (A*B corresponds to pointwise multiplication). In Python, I have to type import Numeric matrixmultiply(A,B) which makes

Re: Microsoft Hatred FAQ

2005-10-17 Thread David Schwartz
"Roedy Green" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mon, 17 Oct 2005 19:44:55 -0700, "David Schwartz" > <[EMAIL PROTECTED]> wrote or quoted : >>It is not Microsoft's obligation to be "fair". It is Microsoft's >>obligation to push their vision of the future of comp

PEP: Adding decorators for everything

2005-10-17 Thread tharaka
Hi Guys, This is an idea for a PEP. How would you guys feel about adding decorator support for "everything"? Currently, only functions and method are supported. For example: @GuardedClass class Foo: @Transient a = 'a transient field, ignored when serializing' @Const PI = 22.0 /

Re: Microsoft Hatred FAQ

2005-10-17 Thread Roedy Green
On Mon, 17 Oct 2005 19:44:55 -0700, "David Schwartz" <[EMAIL PROTECTED]> wrote or quoted : > >It is not Microsoft's obligation to be "fair". It is Microsoft's >obligation to push their vision of the future of computing, one with >Microsoft's products at the center, using anything short of fo

Re: Microsoft Hatred FAQ

2005-10-17 Thread Roedy Green
On Mon, 17 Oct 2005 19:43:16 -0700, "David Schwartz" <[EMAIL PROTECTED]> wrote or quoted : >I understand why the argument is invalid. I'm presenting it as an >example of a similar invalid argument. Not every post is meant to contradict or inform the OP. -- Canadian Mind Products, Roedy Gree

Re: Mutual module imports

2005-10-17 Thread George Sakkis
"Tony Nelson" <[EMAIL PROTECTED]> wrote: > [snipped] > > I have written a Python module that uses some C functions. I wrote the > module in two parts, one Python, one Pyrex (C). They need to share some > globals. > > [snipped] > > Now the Python module imports the Pyrex module and just shoves >

Re: Microsoft Hatred FAQ

2005-10-17 Thread Richard Steiner
Here in comp.os.linux.misc, John Wingate <[EMAIL PROTECTED]> spake unto us, saying: >Peter T. Breuer <[EMAIL PROTECTED]> wrote: >> It seems to me that I was using 3.x. Maybe it was 3.1? I seem to >> remember an earlier major ... was there a 2.8 or 2.9? > >Dunno. The first version I used was 3.4,

Re: Microsoft Hatred FAQ

2005-10-17 Thread Mike Meyer
"David Schwartz" <[EMAIL PROTECTED]> writes: > It is not Microsoft's obligation to be "fair". It is Microsoft's > obligation to push their vision of the future of computing, one with > Microsoft's products at the center, using anything short of force or fraud. Wrong. The only obligation Micr

Re: Vim capable IDE?

2005-10-17 Thread Dan Farina
Chris Lasher wrote: > Hello, > Is there a Python-sensitive, Linux compatible IDE out there with > standard bells and whistles (source browser, symbolic debugger, etc.) > but with the action-per-keystroke editing capabilities of Vim? I have > failed to turn up such an IDE in my Googling and IDE pr

Re: A Logging System for Python

2005-10-17 Thread Philippe C. Martin
Even better ! Thanks, Philippe Robert Kern wrote: > Philippe C. Martin wrote: >> Dear all, >> >> I have been looking for a logging system and have come across >> http://www.red-dove.com/python_logging.html. >> >> As the site refers to PEP 282, I assume this package is a potential >> contende

Re: Mutual module imports

2005-10-17 Thread Tuvas
The trick is via something called Extending. Pyrex just makes extending a bit easier, but, depending on the complexity of the function, it might be easier just to extend it yourself. Basically you make a function that translates python into C. There are some instructions on the Python website, http

Re: tuple versus list

2005-10-17 Thread Bryan
>> >>i always use the structure analogy. if you view (width, height) as a >>structure, >>use a tuple. if you view it a sequence, use a list. in this example, i view >>it >>as a stucture, so i would use (width, height) as a tuple. > > > Right, but there's an unfortunate ambiguity in the te

Re: Stripping ASCII codes when parsing

2005-10-17 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, David Pratt <[EMAIL PROTECTED]> wrote: > This is very nice :-) Thank you Tony. I think this will be the way to > go. My concern ATM is where it will be best to unicode. The data after > this will go into dict and a few processes and into database. Because

Mutual module imports

2005-10-17 Thread Tony Nelson
How does one normally make a Python extension module that has some parts in Python and some functions in C share globals between the Python and C functions? Will that approach work with Pyrex? I have written a Python module that uses some C functions. I wrote the module in two parts, one Pyth

Re: ANN: Leo 4.4a1 released

2005-10-17 Thread Mahesh Padmanabhan
In article <[EMAIL PROTECTED]>, "Edward K. Ream" <[EMAIL PROTECTED]> wrote: [Edward's announcement] Thanks for adding Emacs functionality. I really like the idea of literate programming and have tried to get into Leo but believe it or not, I haven't been able to get into it due to my muscle me

Re: ordered keywords?

2005-10-17 Thread Ron Adam
Kent Johnson wrote: > Ron Adam wrote: > >> drawshapes( triangle=3, square=4, color=red, >> polygon(triangle, color), >> polygon(square, color) ) >> >> This comes close to the same pattern used in SVG and other formats >> where you have definitions before expressions. > >

Re: Microsoft Hatred FAQ

2005-10-17 Thread David Schwartz
"Roedy Green" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sun, 16 Oct 2005 22:36:53 -0700, "David Schwartz" > <[EMAIL PROTECTED]> wrote or quoted : >>As for it being illegal, it was illegal only because if was Microsoft >>doing it. There's nothing illegal about a car de

Vim capable IDE?

2005-10-17 Thread Chris Lasher
Hello, Is there a Python-sensitive, Linux compatible IDE out there with standard bells and whistles (source browser, symbolic debugger, etc.) but with the action-per-keystroke editing capabilities of Vim? I have failed to turn up such an IDE in my Googling and IDE project-page browsing. :-( Than

Re: Microsoft Hatred FAQ

2005-10-17 Thread David Schwartz
"Roedy Green" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mon, 17 Oct 2005 17:29:36 -0700, "David Schwartz" > <[EMAIL PROTECTED]> wrote or quoted : >>By the way, this is based on the same flawed premise that a lot of >>post-Y2K griping was based on. It went like this, "

Re: Why asci-only symbols?

2005-10-17 Thread Bengt Richter
On Tue, 18 Oct 2005 01:34:09 +0200, =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?= <[EMAIL PROTECTED]> wrote: >Bengt Richter wrote: >> Well, what will be assumed about name after the lines >> >> #-*- coding: latin1 -*- >> name = 'Martin Löwis' >> >> ? > >Are you asking what is assumed about the id

Re: A Logging System for Python

2005-10-17 Thread Robert Kern
Philippe C. Martin wrote: > Dear all, > > I have been looking for a logging system and have come across > http://www.red-dove.com/python_logging.html. > > As the site refers to PEP 282, I assume this package is a potential > contender for integration in the Python distribution. > > Am I correct

Re: Microsoft Hatred FAQ

2005-10-17 Thread John Bokma
Roedy Green <[EMAIL PROTECTED]> wrote: > On 17 Oct 2005 03:17:16 GMT, John Bokma <[EMAIL PROTECTED]> wrote > or quoted : > >>Which standards? Again: w3c is not an official standards organization. > > What does it take in your book for a standards organisation to be > "official" -- a Swiss head

Re: Microsoft Hatred FAQ

2005-10-17 Thread John Bokma
"Mike Schilling" <[EMAIL PROTECTED]> wrote: > > "John Bokma" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Roedy Green <[EMAIL PROTECTED]> wrote: >> >>> On 16 Oct 2005 05:22:47 GMT, John Bokma <[EMAIL PROTECTED]> wrote >>> or quoted : >>> No, it's a recommendation, an advi

Re: Microsoft Hatred FAQ

2005-10-17 Thread John Bokma
Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Mon, 17 Oct 2005 21:42:09 +, John Bokma wrote: > >>> When did Netscape executives perjure themselves in court? >>> >>> When did Netscape commit fraud? Astro-turfing? Patent infringement? >>> Theft of code? >> >> They got killed too soon. > >

A Logging System for Python

2005-10-17 Thread Philippe C. Martin
Dear all, I have been looking for a logging system and have come across http://www.red-dove.com/python_logging.html. As the site refers to PEP 282, I assume this package is a potential contender for integration in the Python distribution. Am I correct and if so is there any trend to include it i

Re: Microsoft Hatred FAQ

2005-10-17 Thread John Bokma
"Mike Schilling" <[EMAIL PROTECTED]> wrote: > > "John Bokma" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> "Mike Schilling" <[EMAIL PROTECTED]> wrote: >> >>> "John Bokma" <[EMAIL PROTECTED]> wrote in message >>> news:[EMAIL PROTECTED] >> Yup, but ISO C++ is a standard, an

How do I pass args using Python Windows

2005-10-17 Thread Ross Reyes
Hi -  I wonder if someone might be able to lend a quick answer to this.   I have a python script that I normally run from the command line on Solaris.    i.e.    %pythonscript >   I decided to try IDLE on Windows to do some debugging with the debugger (which I unfortunately dont' have o

Re: Microsoft Hatred FAQ

2005-10-17 Thread Roedy Green
On Mon, 17 Oct 2005 09:37:35 -0700, Alan Balmer <[EMAIL PROTECTED]> wrote or quoted : >You've been around long enough to learn to recognize this poster and >ignore him. Sounds like your plonk filter is on the fritz then. -- Canadian Mind Products, Roedy Green. http://mindprod.com Again taking ne

Re: Microsoft Hatred FAQ

2005-10-17 Thread Roedy Green
On Mon, 17 Oct 2005 02:25:18 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote or quoted : > >Actually, *any* company with a defacto monopoly pulling such a stunt >would be found in violation of the law. Such companies operate under >different legal rules than other companies. This was true when IBM was

Re: Microsoft Hatred FAQ

2005-10-17 Thread Roedy Green
On Sun, 16 Oct 2005 22:36:53 -0700, "David Schwartz" <[EMAIL PROTECTED]> wrote or quoted : >As for it being illegal, it was illegal only because if was Microsoft >doing it. There's nothing illegal about a car dealer not selling a car >without an engine. But that is not what was happening. I

Re: ordered keywords?

2005-10-17 Thread Kent Johnson
Ron Adam wrote: > drawshapes( triangle=3, square=4, color=red, > polygon(triangle, color), > polygon(square, color) ) > > This comes close to the same pattern used in SVG and other formats where > you have definitions before expressions. Why is this better than the obviou

Re: Microsoft Hatred FAQ

2005-10-17 Thread Roedy Green
On Mon, 17 Oct 2005 17:29:36 -0700, "David Schwartz" <[EMAIL PROTECTED]> wrote or quoted : >By the way, this is based on the same flawed premise that a lot of >post-Y2K griping was based on. It went like this, "wow, we get all concerned >and spent all this money on a problem that never even

Re: Microsoft Hatred FAQ

2005-10-17 Thread Roedy Green
On Mon, 17 Oct 2005 00:17:03 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote or quoted : > >Yup. When NS was the 800 lb gorilla on they acted like MS, I think you would need to give some examples. They gave away a free browser. What other evil thing did they do? -- Canadian Mind Products, Roedy Gre

Re: Microsoft Hatred FAQ

2005-10-17 Thread Roedy Green
On 17 Oct 2005 03:17:16 GMT, John Bokma <[EMAIL PROTECTED]> wrote or quoted : > >Which standards? Again: w3c is not an official standards organization. What does it take in your book for a standards organisation to be "official" -- a Swiss head office, a room at the UN, a branch on the US govern

Re: Microsoft Hatred FAQ

2005-10-17 Thread David Schwartz
"John Bokma" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > So you think that MS, based on something that might (or might not > happen) somewhere in a future, burned a lot of money? By the way, this is based on the same flawed premise that a lot of post-Y2K griping was based

Re: win32api.FindFiles Win2003, problem with Short Name

2005-10-17 Thread Neil Hodgson
Frank Borell: > My initial issue was trying to rename/move files on a SAN that were > written from Mac's. I've never used a SAN. It is possible that it has its own name system and what you are seeing is the result of different views of that. > While the easier messed up files names were e

Re: How to get a raised exception from other thread

2005-10-17 Thread Peter Hansen
dcrespo wrote: >>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 show where you would >>expect to catch this exception, given that when you start t

Re: Microsoft Hatred FAQ

2005-10-17 Thread Terry Hancock
On Monday 17 October 2005 05:27 pm, Roel Schroeven wrote: > John Bokma wrote: > > Or do you really consider the Linux desktop (any of them) quality? > > Actually yes. Are they better than MS's desktop? Depends on one's needs. > If I didn't need MS for my job, there's a very big chance I would onl

Re: Why asci-only symbols?

2005-10-17 Thread Martin v. Löwis
Bengt Richter wrote: > Well, what will be assumed about name after the lines > > #-*- coding: latin1 -*- > name = 'Martin Löwis' > > ? Are you asking what is assumed about the identifier 'name', or the value bound to that identifier? Currently, the identifier must be encoded in latin1 in this

Re: override a property

2005-10-17 Thread Bengt Richter
On 17 Oct 2005 11:13:32 -0700, "SPE - Stani's Python Editor" <[EMAIL PROTECTED]> wrote: >No, you can just do it on the fly. You can even create properties >(attributes) on the fly. > >class Dummy: > property = True > >d = Dummy() >d.property = False >d.new = True > a simple attribute is not a p

Re: ordered keywords?

2005-10-17 Thread Ron Adam
Ron Adam wrote: > > def lamb(args): > for v in args: print v > > def feedlamb(): > print locals() > y = 20 > lamb( (lambda x=10: (x,y,x+y))() ) > print locals() > > feedlamb() > > {} > 10 > 20 > 30 > {'y': 20} > > > Cool, this is the exact behavior I was thinking of, but

Re: override a property

2005-10-17 Thread Bengt Richter
On Mon, 17 Oct 2005 18:52:19 +0100, Robin Becker <[EMAIL PROTECTED]> wrote: >Is there a way to override a data property in the instance? Do I need to >create >another class with the property changed? How do you need to "override" it? Care to create a toy example with a "wish I could here" comme

Re: Comparing lists

2005-10-17 Thread Paul Rubin
[EMAIL PROTECTED] (Alex Martelli) writes: > implementation of the components one's considering! Rough ideas of > *EXPECTED* run-times (big-Theta) for various subcomponents one is > sketching are *MUCH* more interesting and important than "asymptotic > worst-case for amounts of input tending to in

Re: Microsoft Hatred FAQ

2005-10-17 Thread Steven D'Aprano
On Mon, 17 Oct 2005 21:42:09 +, John Bokma wrote: >> When did Netscape executives perjure themselves in court? >> >> When did Netscape commit fraud? Astro-turfing? Patent infringement? Theft >> of code? > > They got killed too soon. Neither the Netscape executives nor Netscape the company h

Dr. Dobb's Python-URL! - weekly Python news and links (Oct 17)

2005-10-17 Thread Cameron Laird
QOTW: "If you don't have the time to be paranoid, try taking the time to straighten out identity theft." -- K. G. Schneider "The best way to make classes on the fly is generally to call the metaclass with suitable parameters (just like, the best way to make instances of any type is generally to ca

Re: Jargons of Info Tech industry

2005-10-17 Thread John Bokma
[EMAIL PROTECTED] (Bengt Richter) wrote: > On 16 Oct 2005 00:31:38 GMT, John Bokma <[EMAIL PROTECTED]> wrote: > >>[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

Re: Microsoft Hatred FAQ

2005-10-17 Thread Mike Meyer
"Mike Schilling" <[EMAIL PROTECTED]> writes: > What matters in generating HTML is which browsers you want to support and > what they understand. Standards and recommendations are both irrelevant. Unless, of course, you want to support any compliant browser. In which case standards and recommend

Re: Microsoft Hatred FAQ

2005-10-17 Thread Roel Schroeven
John Bokma wrote: > Roel Schroeven <[EMAIL PROTECTED]> wrote: > > >>John Bokma wrote: >> >>>Roel Schroeven <[EMAIL PROTECTED]> wrote: >>> But that's not the point; the point is that they have the choice. If MS had it its way, they wouldn't have that choice. >>> >>> >>>I doubt that. But e

Re: bizarro world (was Re: Python Doc Problem Example: sort() (reprise))

2005-10-17 Thread Terry Hancock
print """\ On Monday 17 October 2005 02:59 am, Xah Lee wrote: > > Bryan wrote: > > mr. xah... would you be willing to give a lecture at pycon 2006? i'm sure > > you > > would draw a huge crowd and a lot of people would like to meet you in > > person... > > > > thanks. > > I'd be delight to. >

Re: Microsoft Hatred FAQ

2005-10-17 Thread Mike Schilling
"John Bokma" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Roedy Green <[EMAIL PROTECTED]> wrote: > >> On 16 Oct 2005 05:22:47 GMT, John Bokma <[EMAIL PROTECTED]> wrote >> or quoted : >> >>>No, it's a recommendation, an advise, nothing else. Otherwise they >>>would call it a stand

Re: [PIL]: Question On Changing Colour

2005-10-17 Thread Terry Hancock
On Thursday 13 October 2005 02:58 pm, Andrea Gavana wrote: > # that is the old colour --> GREY > rgb_old = (0.7, 0.7, 0.7) > > So, no matter what colour I choose as a "new" colour, the Hue part of the new colour doesn't change in RGB. In other words, leaving the old value for "Saturation" and "Va

Re: Microsoft Hatred FAQ

2005-10-17 Thread Mike Schilling
"John Bokma" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Mike Schilling" <[EMAIL PROTECTED]> wrote: > >> "John Bokma" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] > >>> Yup, but ISO C++ is a standard, and XML is a recommendation. >> >> And the practical differ

Re: Problem Pythoncard tutorial

2005-10-17 Thread Steve M
I'd say that the tutorial text (by Dan Shafer) and the file starter1.py are not in sync. The word 'self' doesn't appear in the source file, it isn't a keyword (just a convention) or a literal, and it isn't imported by wildcard or some other trickery. So just by inspection you can tell that the nam

How to get listed on planet.python.org

2005-10-17 Thread Shane Hathaway
I've been writing Python-related articles on my weblog, and I thought planet.python.org might be interested in including them. Does anyone know how to submit a feed to the aggregator? http://hathawaymix.org/Weblog/rss20.xml?categories:list=Python Shane -- http://mail.python.org/mailman/listin

Re: override a property

2005-10-17 Thread Bruno Desthuilliers
Robin Becker a écrit : > Is there a way to override a data property in the instance? Do I need to > create another class with the property changed? Do you mean attributes or properties ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Run process with timeout

2005-10-17 Thread Donn Cave
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Alex Martelli) wrote: > Micah Elliott <[EMAIL PROTECTED]> wrote: [... re problem killing children of shell script ...] > > Is there any way to enable Python's subprocess module to do (implicit?) > > group setup to ease killing of all children?

ANN: eGenix mxODBC Zope Database Adapter 1.0.9

2005-10-17 Thread M.-A. Lemburg
ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Availab

Re: List of strings to list of floats ?

2005-10-17 Thread bearophileHUGS
Erik Max Francis: >result = [sqrt(x**2 + y**2) for x, y in zip(xs, ys)] Another possibility: from math import hypot result = [hypot(*xy) for xy in zip(xs, ys)] Or better: from math import hypot result = map(hypot, xs, ys) bearophile -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-17 Thread David Schwartz
"John Bokma" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > So you think that MS, based on something that might (or might not > happen) somewhere in a future, burned a lot of money? Yep. Why do you think Microsoft tried to balkanize Java? >>> No: the historical fact is that

Re: Microsoft Hatred FAQ

2005-10-17 Thread John Bokma
Roedy Green <[EMAIL PROTECTED]> wrote: > On 16 Oct 2005 00:47:09 GMT, John Bokma <[EMAIL PROTECTED]> wrote > or quoted : > >>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? > > The point is you make your

Re: Microsoft Hatred FAQ

2005-10-17 Thread John Bokma
Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Mon, 17 Oct 2005 00:17:03 -0400, Mike Meyer wrote: > >> Yup. When NS was the 800 lb gorilla > > When was this? When did Netscape have a monopoly in any market? > > Netscape was never the 800 lb gorilla. > >> on they acted like MS, > > When did

Re: Microsoft Hatred FAQ

2005-10-17 Thread John Bokma
Roel Schroeven <[EMAIL PROTECTED]> wrote: > John Bokma wrote: >> Roel Schroeven <[EMAIL PROTECTED]> wrote: >>>But that's not the point; the point is that they have the choice. >>>If MS had it its way, they wouldn't have that choice. >> >> >> I doubt that. But even if you're right, do you really

Re: ordered keywords?

2005-10-17 Thread Ron Adam
Diez B. Roggisch wrote: > Ron Adam wrote: > >> >> Is there a way to preserve or capture the order which keywords are given? >> >> >>> def foo(**kwds): >> ...print kwds >> ... >> >>> foo(one=1, two=2, three=3) >> {'three': 3, 'two': 2, 'one': 1} >> >> >> I would love to reverse the *args, and

Re: Perl-Python-a-Day: split a file full path

2005-10-17 Thread Xah Lee
Xah Lee wrote: > > In Perl, spliting a full path into parts is done like this: Dr.Ruud wrote: > And then follows Perl-code that only works with an optional .html > "extension", Thanks for the note. I've corrected it here: http://xahlee.org/perl-python/split_fullpath.html namely: Note: the second

Re: Microsoft Hatred FAQ

2005-10-17 Thread John Bokma
"David Schwartz" <[EMAIL PROTECTED]> wrote: > > "John Bokma" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >> "David Schwartz" <[EMAIL PROTECTED]> wrote: > >>> You don't get it. The point is, you can pick any Linux >>> distribution and >>> still use the same applicati

Re: Microsoft Hatred FAQ

2005-10-17 Thread John Bokma
"Mike Schilling" <[EMAIL PROTECTED]> wrote: > "John Bokma" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Yup, but ISO C++ is a standard, and XML is a recommendation. > > And the practical difference between the two is > > That's right, nil. If you both read them as a co

Re: Microsoft Hatred FAQ

2005-10-17 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Mon, 17 Oct 2005 00:17:03 -0400, Mike Meyer wrote: >> Yup. When NS was the 800 lb gorilla > When was this? When did Netscape have a monopoly in any market? Starting with the release of Netscape 1.0, until MS decided to take it away from them. At on

Re: [newbie]Is there a module for print object in a readable format?

2005-10-17 Thread Larry Bates
What if a is a tuple of lists? What if b is a class? What if c is a file object? I can't even tell what [d e] means? IMHO the output isn't in "a readable format" at all (perhaps something got lost in the posting). pprint is as close are you are going to find for a general solution to this prob

Re: Queue question

2005-10-17 Thread Tim Peters
[Alex Martelli] > ... > not_empty and not_full are not methods but rather instances of the > threading.Condition class, which gets waited on and notified > appropriately. I'm not entirely sure exactly WHAT one is supposed to do > with the Condition instances in question (I'm sure there is some des

Re: Upgrading 2.4.1 to 2.4.2

2005-10-17 Thread Steve Holden
Sori Schwimmer wrote: > Hi, > > I have Python 2.4.1 and have downloaded 2.4.2. Is > there a way to avoid installing everything and, > instead, just upgrade? > Yes. Just uninstall 2.4.1 and install 2.4.2 - all your extensions and additional modules should remain (though it wouldn't hurt to do a b

Re: List of strings to list of floats ?

2005-10-17 Thread Madhusudan Singh
Erik Max Francis wrote: > Madhusudan Singh wrote: > >> Thanks. Now, a slightly more complicated question. >> >> Say I have two lists of floats. And I wish to generate a list of floats >> that is a user defined function of the two lists. > > result = [sqrt(x**2 + y**2) for x, y in zip(xs, ys)] >

Re: your mail

2005-10-17 Thread Gerrit Holl
Finn Waldrip wrote: > X-Spambayes-Classification: unsure; 0.242 > > > 404 Not Found > > Not Found > The requested URL was not found on this server. > > Apache/1.3.31 > How can my poor Spambayes ever make sense of this? Gerrit. -- Temperature in Luleå, Norrbotten, Sweden: | Current tempera

Re: Perl-Python-a-Day: split a file full path

2005-10-17 Thread matteo d'addio 81
Hello, I'm a cs student from Milano (Italy). I don't use scsh fequently but this should work: (open srfi-11 ;let-values srfi-28) ;format (define my-path "/Users/t/web/perl-python/I_Love_You.html") (let-values (((dir-name file-base-name file-extension) (parse-

Re: Upgrading 2.4.1 to 2.4.2

2005-10-17 Thread Scott David Daniels
Sori Schwimmer wrote: > I have Python 2.4.1 and have downloaded 2.4.2. Is > there a way to avoid installing everything and, > instead, just upgrade? Run the following code on your 2.4.1 installation and post the results: python -m platform Or, if you prefer: import platform platform.pl

Re: Run process with timeout

2005-10-17 Thread Alex Martelli
Micah Elliott <[EMAIL PROTECTED]> wrote: > Is there any way to enable Python's subprocess module to do (implicit?) > group setup to ease killing of all children? If not, is it a reasonable > RFE? Not as far as I know. It might be a reasonable request in suitable dialects of Unix-like OSes, thou

Re: Comparing lists

2005-10-17 Thread Alex Martelli
Christian Stapfer <[EMAIL PROTECTED]> wrote: > "Alex Martelli" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Christian Stapfer <[EMAIL PROTECTED]> wrote: > > > >> This is why we would like to have a way of (roughly) > >> estimating the reasonableness of the outlines of a > >>

Re: Stripping ASCII codes when parsing

2005-10-17 Thread Erik Max Francis
David Pratt wrote: > I am working with a text format that advises to strip any ascii control > characters (0 - 30) as part of parsing data and also the ascii pipe > character (124) from the data. I think many of these characters are > from a different time. Since I have never seen most of these

Xml document writing

2005-10-17 Thread Vinci
Hi, I have to append a child under a node of a Xml document: I tried to create both a text and a node element, but the child doesn't figure in the Xml document. Can anyone help me? Thank you very much! :) -- Vinci -- http://mail.python.org/mailman/listinfo/python-list

Re: List of strings to list of floats ?

2005-10-17 Thread Erik Max Francis
Madhusudan Singh wrote: > Thanks. Now, a slightly more complicated question. > > Say I have two lists of floats. And I wish to generate a list of floats that > is a user defined function of the two lists. result = [sqrt(x**2 + y**2) for x, y in zip(xs, ys)] -- Erik Max Francis && [EMAI

Re: UI toolkits for Python

2005-10-17 Thread Paul Rubin
Torsten Bronger <[EMAIL PROTECTED]> writes: > Because everybody is capable of running a JS engine, even on > computers on which you don't have rights to install something. I don't think using JS so heavily without a compelling reason is really in the WWW spirit. Lots of browsers don't have JS. A

Re: Repost: Text not showing up

2005-10-17 Thread Diez B. Roggisch
> The problem is that the changes take effect after gtk has reentered its > event-loop. Which won't happen until your programs terminate. With programs I mean of course the burning commandos. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: UI toolkits for Python

2005-10-17 Thread Torsten Bronger
Hallöchen! Paul Rubin writes: > Michael Ekstrand <[EMAIL PROTECTED]> writes: >> >>> 2) Keybindings in a web application >> >> Not sure here, but JavaScript may be able to do something to >> accomplish some of this. A web-delivered XUL app can definitely >> do this. But

Re: Repost: Text not showing up

2005-10-17 Thread Diez B. Roggisch
>> Hi all, I am new to python and trying to write a simple GUI that would >> call 2 growisofs processes (dvd burning) at the same time, and retrive >> the exit code to be printed on a text box (couldn't find any program >> that could use multiple dvd burners, not even k3b). Excuse me if this >>

Re: UI toolkits for Python

2005-10-17 Thread Paul Rubin
Michael Ekstrand <[EMAIL PROTECTED]> writes: > > 2) Keybindings in a web application > > Not sure here, but JavaScript may be able to do something to accomplish > some of this. A web-delivered XUL app can definitely do this. But > that's pushing the limits of what can be considered a web applica

Re: ordered keywords?

2005-10-17 Thread Diez B. Roggisch
Ron Adam wrote: > > Is there a way to preserve or capture the order which keywords are given? > > >>> def foo(**kwds): > ...print kwds > ... > >>> foo(one=1, two=2, three=3) > {'three': 3, 'two': 2, 'one': 1} > > > I would love to reverse the *args, and **kwds as well so I can use kwds

Re: UI toolkits for Python

2005-10-17 Thread Jason Stitt
On Oct 17, 2005, at 12:19 PM, Kenneth McDonald wrote: > Web interfaces are missing a lot more than this. Here are just a > few things that cannot be done with web-based interfaces (correct > me where I'm wrong): > > 1) A real word processor. > 2) Keybindings in a web application > 3) Drag and

Upgrading 2.4.1 to 2.4.2

2005-10-17 Thread Sori Schwimmer
Hi, I have Python 2.4.1 and have downloaded 2.4.2. Is there a way to avoid installing everything and, instead, just upgrade? Thanks, Sorin __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com -- http://mail.python.o

  1   2   3   >