Re: access dictionary with preferred order ?

2005-10-21 Thread James Stroud
This is an "ordered dict": http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/438823 On Friday 21 October 2005 21:18, [EMAIL PROTECTED] wrote: > Hi, > > I am wondering if there is a dictionary data type that allows me to > define the order of access when iterating it using items/keys etc.

Re: Microsoft Hatred FAQ

2005-10-21 Thread David Schwartz
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > That's basic economics. Something which can be allowed or ignored or even > encouraged when done by small businesses in a competitive market can > easily become harmful and bad for the economy when done by a monopoli

Re: Python vs Ruby

2005-10-21 Thread Ed Jensen
Bryan <[EMAIL PROTECTED]> wrote: > i would not say sion's ratio of 5:1 is dubious. for what it's worth, i've > written i pretty complex program in jython over the last year. jython > compiles > to java source code and the number of generated java lines to the jython > lines > is 4:1. Most c

Re: access dictionary with preferred order ?

2005-10-21 Thread [EMAIL PROTECTED]
thanks. But I do quite understand how to specific my order(which could be arbitary). It seems to have a move method so I need to first loop through my order list and match then move things around ? James Stroud wrote: > This is an "ordered dict": > >http://aspn.activestate.com/ASPN/Cookbook/Py

Re: best way to replace first word in string?

2005-10-21 Thread William Park
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I am looking for the best and efficient way to replace the first word > in a str, like this: > "aa to become" -> "/aa/ to become" > I know I can use spilt and than join them > but I can also use regular expressions > and I sure there is a lot ways, but

Re: Microsoft Hatred FAQ

2005-10-21 Thread Roedy Green
On Fri, 21 Oct 2005 21:47:27 -0700, "David Schwartz" <[EMAIL PROTECTED]> wrote or quoted : > There is no way Microsoft could have expected the >market to be defined in this way and no way to argue that Microsoft had any >reason to believe their conduct was illegal. If what they did to me in the

<    1   2   3