Re: CSV(???)

2007-02-24 Thread David C.Ullrich
On Fri, 23 Feb 2007 11:43:24 + (UTC), Philipp Pagel [EMAIL PROTECTED] wrote: David C. Ullrich [EMAIL PROTECTED] wrote: Is there a csvlib out there somewhere? How about csv in the standard library? (Um: Believe it or not I'm _still_ using python 1.5.7. I have no idea if csv was part of

Re: CSV(???)

2007-02-24 Thread David C.Ullrich
On 23 Feb 2007 11:51:57 GMT, nmp [EMAIL PROTECTED] wrote: Op Fri, 23 Feb 2007 11:45:54 +, schreef nmp: Op Fri, 23 Feb 2007 05:11:26 -0600, schreef David C. Ullrich: Is there a csvlib out there somewhere? Hey, cool! I am just beginning with Python but I may already be able to help you

Re: CSV(???)

2007-02-24 Thread David C.Ullrich
On 23 Feb 2007 19:13:10 +0100, Neil Cerutti [EMAIL PROTECTED] wrote: On 2007-02-23, David C Ullrich [EMAIL PROTECTED] wrote: Is there a csvlib out there somewhere? And/or does anyone see any problems with the code below? [...] (Um: Believe it or not I'm _still_ using python 1.5.7. So

Re: CSV(???)

2007-02-24 Thread David C.Ullrich
On 23 Feb 2007 07:31:35 -0800, John Machin [EMAIL PROTECTED] wrote: On Feb 23, 10:11 pm, David C. Ullrich [EMAIL PROTECTED] wrote: Is there a csvlib out there somewhere? I can make available the following which should be capable of running on 1.5.2 -- unless they've suffered bitrot :-) (a) a

CSV(???)

2007-02-23 Thread David C.Ullrich
Is there a csvlib out there somewhere? And/or does anyone see any problems with the code below? What csvline does is straightforward: fields is a list of strings. csvline(fields) returns the strings concatenated into one string separated by commas. Except that if a field contains a comma or a

Re: shuffling elements of a list

2006-06-02 Thread David C.Ullrich
On Thu, 01 Jun 2006 03:25:23 -0700, Erik Max Francis [EMAIL PROTECTED] wrote: David C. Ullrich wrote: Good example, because we know that EMF is not dumb. I've seen the same algorithm many times - the best example is ... Man, an error made _six years ago_ and people are still bringing it up

Re: shuffling elements of a list

2006-06-01 Thread David C.Ullrich
On Wed, 31 May 2006 23:05:14 +0200, Fredrik Lundh [EMAIL PROTECTED] wrote: Roger Miller wrote: DSU seems like a lot of trouble to go through in order to use an O(n log n) sorting algorithm to do what can be done in O(N) with a few lines of code. The core code of random.shuffle() shows how

Re: shuffling elements of a list

2006-05-31 Thread David C.Ullrich
On 30 May 2006 21:53:32 -0700, greenflame [EMAIL PROTECTED] wrote: Thank you all for all of your help. Also I got the shuffle function to work. Do not worry I will be back soon with more shuffling! However, I do not quite understand this DSU that you mention, although it looks useful. I didn't

Re: shuffling elements of a list

2006-05-31 Thread David C.Ullrich
On Wed, 31 May 2006 12:17:11 +0200, Sybren Stuvel [EMAIL PROTECTED] wrote: David C Ullrich enlightened us with: I thought that the fact that you could use the same trick for _shuffling_ a list was my idea, gonna make me rich and famous. I guess I'm not the only one who thought of it. Anyway,

Re: dynamic type changing

2006-05-28 Thread David C.Ullrich
On 28 May 2006 01:07:16 -0700, [EMAIL PROTECTED] wrote: I'm working on a TempFile class that stores the data in memory until it gets larger than a specified threshold (as per PEP 42). Whilst trying to implement it, I've come across some strange behaviour. Can anyone explain this? The test

Re: Multiple Version Install?

2006-05-24 Thread David C.Ullrich
On Fri, 05 May 2006 07:44:45 -0500, David C. Ullrich [EMAIL PROTECTED] wrote: [...] Just curious: How does pythonxx.dll determine things like where to find the standard library? That's the sort of thing I'd feared might cause confusion... Ok, it was a stupid question, cuz right there in the

Re: A critic of Guido's blog on Python's lambda

2006-05-10 Thread David C.Ullrich
On Tue, 09 May 2006 05:35:47 -0500, David C. Ullrich [EMAIL PROTECTED] wrote: On Mon, 08 May 2006 18:46:57 -0400, Ken Tilton [EMAIL PROTECTED] wrote: [...] If you, um, look at the code you see that cells.a = 42 triggers cells.__setattr__, which fires a's callback; the callback then reaches

Re: A critic of Guido's blog on Python's lambda

2006-05-09 Thread David C.Ullrich
On Mon, 08 May 2006 18:46:57 -0400, Ken Tilton [EMAIL PROTECTED] wrote: David C. Ullrich wrote: On 08 May 2006 12:53:09 -0700, [EMAIL PROTECTED] (Thomas F. Burdick) wrote: Ken Tilton [EMAIL PROTECTED] writes: No, you do not want on-change handlers propagating data to other slots, though

Re: A critic of Guido's blog on Python's lambda

2006-05-08 Thread David C.Ullrich
On Sun, 07 May 2006 10:36:00 -0400, Ken Tilton [EMAIL PROTECTED] wrote: [...] Your spreadsheet does not have slots ruled by functions, it has one slot for a dictionary where you store names and values/formulas. Go back to your example and arrange it so a and b are actual slots (data members?

Re: A critic of Guido's blog on Python's lambda

2006-05-08 Thread David C.Ullrich
On Mon, 08 May 2006 08:05:38 -0500, David C. Ullrich [EMAIL PROTECTED] wrote: [...] def acall(cell, value): cell.owner.slots['b'].value = value + 1 Needing to say that sort of thing every time you define a callback isn't very nice. New and improved version: PyCells.py class Cell: def

Re: A critic of Guido's blog on Python's lambda

2006-05-08 Thread David C.Ullrich
On 08 May 2006 12:53:09 -0700, [EMAIL PROTECTED] (Thomas F. Burdick) wrote: Ken Tilton [EMAIL PROTECTED] writes: No, you do not want on-change handlers propagating data to other slots, though that is a sound albeit primitive way of improving self-consistency of data in big apps. The

Re: Multiple Version Install?

2006-05-05 Thread David C.Ullrich
On Thu, 4 May 2006 13:19:46 -0400, Tim Peters [EMAIL PROTECTED] wrote: [David C.Ullrich] Would there be issues (registry settings, environment variables, whatever) if a person tried to install versions 1.x and 2.x simultaneously on one Windows system? Windows 98, if it matters. (I can

Multiple Version Install?

2006-05-04 Thread David C.Ullrich
Would there be issues (registry settings, environment variables, whatever) if a person tried to install versions 1.x and 2.x simultaneously on one Windows system? Windows 98, if it matters. (I can handle the file associations with no problem.) Thanks. ** If anyone feels

Re: Multiple Version Install?

2006-05-04 Thread David C.Ullrich
On Thu, 4 May 2006 16:17:57 +0200, Fredrik Lundh [EMAIL PROTECTED] wrote: David C.Ullrich wrote: Would there be issues (registry settings, environment variables, whatever) if a person tried to install versions 1.x and 2.x simultaneously on one Windows system? Windows 98, if it matters. (I