Re: subtyping a builtin type in a C extension

2005-10-17 Thread shawn
Thank you. I should have looked for this sort of example. That was exactly what I needed. I don't ask for help here very often, but when I have, I have ALWAYS gotten faster results than with any commercial support option I have used. We have a good developer community :-) -- http://mail.python.o

Re: How to delete yourself????

2005-10-17 Thread christian . siegl
Well, this might be the best way, but my special case is programming a GUI. And a (child) window receives a close event and wants to destroy itself. The main window (parent) will never notice that (or its lots of code and not very nice). So that is the case and there is no way that the parent d

Re: Stripping ASCII codes when parsing

2005-10-17 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, David Pratt <[EMAIL PROTECTED]> 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

Re: tuple versus list

2005-10-17 Thread Donn Cave
In article <[EMAIL PROTECTED]>, Bryan <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > In this particular case, it seems that (width,height) looks nicer. But > > I think otherwise, list constuct is easier to read, even though it is > > supposed to be slower. > > > > With list you can :

Re: List of strings to list of floats ?

2005-10-17 Thread Steve Holden
Madhusudan Singh wrote: > [EMAIL PROTECTED] wrote: > > >>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 wou

Re: Writing an immutable object in python

2005-10-17 Thread Donn Cave
In article <[EMAIL PROTECTED]>, "Mapisto" <[EMAIL PROTECTED]> wrote: > I've noticed that if I initialize list of integers in the next manner: > > >>> my_list = [0] * 30 > > It works just fine, even if I'll try to assign one element: > > >>> id( my_list[4] ) > 10900116 > >>> id( my_list[6] ) >

Re: Writing an immutable object in python

2005-10-17 Thread Magnus Lycka
Mapisto wrote: > Hi, > > I've noticed that if I initialize list of integers in the next manner: > > my_list = [0] * 30 > > > It works just fine, even if I'll try to assign one element: > > id( my_list[4] ) > > 10900116 > id( my_list[6] ) > > 10900116 > my_list[4] = 6

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

2005-10-17 Thread qwweeeit
Hi Claudio, I fully agree with you. I already used AutoIt 3 but when I moved to Linux I wasn't able to find anything similar. I moved also to Python for its power but also if it is called a scripting language it doesn't simply interact with graphical applications. As a last resort I tried DCOP (Des

Re: newbie regex

2005-10-17 Thread Leif K-Brooks
[EMAIL PROTECTED] wrote: > I want to filter some strings,but i don t know how to use compile > method. Why not? > first character must be [a-zA-z] group and others can only be digits or > letters. if re.search('^[a-zA-Z][a-zA-Z0-9]*$', foo): print "Valid string." else: print "Invalid str

Re: UI toolkits for Python

2005-10-17 Thread Kenneth McDonald
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 application3) Drag and drop4) Resizable windows (i.e. not the browser window) within the applicatio

Re: Microsoft Hatred FAQ

2005-10-17 Thread Kenneth McDonald
We all know all of the horrible things about Microsoft, and I suspect most of us agree they put out cruddy software. But why is this a topic for the Python list? Ken -- http://mail.python.org/mailman/listinfo/python-list

Re: List of strings to list of floats ?

2005-10-17 Thread Madhusudan Singh
Steve Holden wrote: > Madhusudan Singh wrote: >> [EMAIL PROTECTED] wrote: >> >> >>>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

Re: Installing Python at Work

2005-10-17 Thread Diez B. Roggisch
Nikola wrote: > I'm currently learning Python for my own use. > I'm considering installing it on a work laptop, knowing that it is > non-licensed, distributable software. Here comes a little bit nitpicking: Python is not "non-licensed" - it has a license, which makes it available for you free and

Re: newbie regex

2005-10-17 Thread Leif K-Brooks
Leif K-Brooks wrote: > [EMAIL PROTECTED] wrote: > >>I want to filter some strings,but i don t know how to use compile >>method. > > Why not? Sorry: I misread that as not _wanting_ to use the compile method. -- http://mail.python.org/mailman/listinfo/python-list

Re: Stripping ASCII codes when parsing

2005-10-17 Thread David Pratt
Hi Steve. My plan is to parse the data removing the control characters and validate to data as records are being added to a dictionary. I am going to Unicode after this step but before it gets into storage (in which case I think the translate method could work well). The encoding itself is

Re: Installing Python at Work

2005-10-17 Thread Matt Feinstein
On 17 Oct 2005 08:12:35 -0700, "Nikola" <[EMAIL PROTECTED]> wrote: >I'm currently learning Python for my own use. >I'm considering installing it on a work laptop, knowing that it is >non-licensed, distributable software. > >However, does it access communication ports? I know the company checks >t

Re: Stripping ASCII codes when parsing

2005-10-17 Thread David Pratt
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 input source if not explicit encoding, I will have to assume ISO-8859-1 I bel

ordered keywords?

2005-10-17 Thread Ron Adam
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 to set defaults and initiate values an

Re: How to get a raised exception from other thread

2005-10-17 Thread dcrespo
Hi Peter. Sorry for my delay. I wasn't in home the weekend. > 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 cat

override a property

2005-10-17 Thread Robin Becker
Is there a way to override a data property in the instance? Do I need to create another class with the property changed? -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Huge performance gain compared to perl while loading a text file in a list ...!?

2005-10-17 Thread Jon Stephens
I happened to stumble across this.  I’ll admit now that I’ve never touched python.  But I was curious of your example.  Does python maintain the file handle?  I don’t see any explicit handling of the file like in your perl script.  Since if you are opening and then maintaining a file handle

Re: override a property

2005-10-17 Thread SPE - Stani's Python Editor
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 Stani -- SPE - Stani's Python Editor http://pythonide.stani.be -- http://mail.python.org/mailman/listinfo/python-list

Re: Well written open source Python apps

2005-10-17 Thread dave . brueck
Steve M wrote: > Here is an article discussing the coding style of BitTorrent. > > http://www.onlamp.com/pub/a/python/2003/7/17/pythonnews.html > > Maybe that code is worth looking at. [didn't read this thread or that article until I saw the summary in Dr. Dobb's Python-URL] FWIW, the BitTorrent

Re: Installing Python at Work

2005-10-17 Thread SPE - Stani's Python Editor
You even don't have to install Python on your system. Michael Foord created Movable Python (http://www.voidspace.org.uk/python/movpy/), which allows you to carry a full python distribution and more to be carried around on a USB stick. You can copy it to a folder on your harddisk. Just delete the f

Re: ANN: Leo 4.4a1 released

2005-10-17 Thread Paul Rubin
"Edward K. Ream" <[EMAIL PROTECTED]> writes: > - Support for all frequently-used Emacs commands, including cursor and > screen movement, basic character, word and paragraph manipulation, and > commands to manipulate buffers, the kill ring, regions and rectangles. Do you support re-search-backwar

Re: How do you draw this layout with wxpython?

2005-10-17 Thread SPE - Stani's Python Editor
Ask this question on the very active wxPython-users mailing list (http://lists.sourceforge.net/lists/listinfo/wxpython-users). For sure someone will help you out. If you don't want to write the code yourself, but use a visual gui designer I strongly recommend using wxGlade (http://wxglade.sourcefor

Re: wierd threading behavior

2005-10-17 Thread Qun Cao
Thanks Neil, that's very useful to know. Qun -- http://mail.python.org/mailman/listinfo/python-list

gprof results

2005-10-17 Thread Dave
Hello All, I googled to find an answer for my question, but had no luck. I'm trying to profile a Python program using gprof, but I don't understand what _moncount and mcount are. I couldn't find their source code under Python source tree. moncount takes about 30% of my program... What are _moncoun

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

2005-10-17 Thread dave . benjamin
Jorgen Grahn wrote: > On Fri, 14 Oct 2005 12:37:25 +0200, Christophe <[EMAIL PROTECTED]> wrote: > > Kenneth McDonald a écrit : > >> For unfortunate reasons, I'm considering switching back to Win XP (from > >> OS X) as my "main" system. Windows has so many annoyances that I can > ... > >> Yes, I k

Re: UI toolkits for Python

2005-10-17 Thread Michael Ekstrand
On Monday 17 October 2005 12:19, Kenneth McDonald wrote: > 1) A real word processor. Difficult. Not necessarily impossible. Would require much cleverness. And it wouldn't be capable of everything Word can do. > 2) Keybindings in a web application Not sure here, but JavaScript may be able to do

Re: gprof results

2005-10-17 Thread Steve Holden
Dave wrote: > Hello All, > > I googled to find an answer for my question, but had > no luck. I'm trying to profile a Python program using > gprof, but I don't understand what _moncount and > mcount are. I couldn't find their source code under > Python source tree. moncount takes about 30% of my >

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

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

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

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

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: 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: 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: 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: 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: 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: 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: 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: [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: 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: 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 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: 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: 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: 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: 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
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 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: 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

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: 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?

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

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

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: [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] > 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: 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 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: 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: 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

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

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

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 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

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
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. > >

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

<    1   2   3   >