Re: [Python-Dev] Active Objects in Python

2005-10-01 Thread Michael Sparks
On Friday 30 September 2005 22:13, Michael Sparks (home address) wrote: I wrote a white paper based on my Python UK talk, which is here:     * http://www.bbc.co.uk/rd/pubs/whp/whp11.shtml Oops that URL isn't right. It should be: * http://www.bbc.co.uk/rd/pubs/whp/whp113.shtml Sorry! (Thanks

[Python-Dev] Tests and unicode

2005-10-01 Thread Reinhold Birkenfeld
Hi, I looked whether I could make the test suite pass again when compiled with --disable-unicode. One problem is that no Unicode escapes can be used since compiling the file raises ValueErrors for them. Such strings would have to be produced using unichr(). Is this the right way? Or is

Re: [Python-Dev] Pythonic concurrency - cooperative MT

2005-10-01 Thread Martin Blais
Hi. I hear a confusion that is annoying me a bit in some of the discussions on concurrency, and I thought I'd flush my thoughts here to help me clarify some of that stuff, because some people on the list appear to discuss generators as a concurrency scheme, and as far as I know (and please

Re: [Python-Dev] Pythonic concurrency - cooperative MT

2005-10-01 Thread Antoine
Hi Martin, [snip] The confusion stems from the fact that two issues are mixed up in this discussion thread: - improving concurrency schemes to make it easier to write well-behaving applications with independent parallel flows - improving concurrency schemes to improve performance when there are

Re: [Python-Dev] Pythonic concurrency - cooperative MT

2005-10-01 Thread Michael Sparks
On Saturday 01 October 2005 22:50, Martin Blais wrote: ... because some people on the list appear to discuss generators as a concurrency scheme, and as far as I know they really are not addressing that at all. Our project started in the context of dealing with the task of a naturally

[Python-Dev] Why does __getitem__ slot of builtin call sequence methods first?

2005-10-01 Thread Travis Oliphant
The new ndarray object of scipy core (successor to Numeric Python) is a C extension type that has a getitem defined in both the as_mapping and the as_sequence structure. The as_sequence mapping is just so PySequence_GetItem will work correctly. As exposed to Python the ndarray object as a

Re: [Python-Dev] Why does __getitem__ slot of builtin call sequence methods first?

2005-10-01 Thread Guido van Rossum
On 10/1/05, Travis Oliphant [EMAIL PROTECTED] wrote: The new ndarray object of scipy core (successor to Numeric Python) is a C extension type that has a getitem defined in both the as_mapping and the as_sequence structure. The as_sequence mapping is just so PySequence_GetItem will work

Re: [Python-Dev] Why does __getitem__ slot of builtin call sequence methods first?

2005-10-01 Thread Travis Oliphant
Guido van Rossum wrote: On 10/1/05, Travis Oliphant [EMAIL PROTECTED] wrote: The new ndarray object of scipy core (successor to Numeric Python) is a C extension type that has a getitem defined in both the as_mapping and the as_sequence structure. The as_sequence mapping is just so

Re: [Python-Dev] Why does __getitem__ slot of builtin call sequence methods first?

2005-10-01 Thread Nick Coghlan
Guido van Rossum wrote: Hmm... I'm sure the answer is in typeobject.c, but that is one of the more obfuscated parts of Python's guts. I wrote it four years ago and since then I've apparently lost enough brain cells (or migrated them from language implementation to to language design service :)

Re: [Python-Dev] Why does __getitem__ slot of builtin call sequence methods first?

2005-10-01 Thread Nick Coghlan
Nick Coghlan wrote: [A load of baloney] Scratch everything I said in my last message - init_slotdefs() sorts the slotdefs table correctly, so that the order it is written in the source is irrelevant. Travis found the real answer to his problem. Cheers, Nick. -- Nick Coghlan | [EMAIL

Re: [Python-Dev] IDLE development

2005-10-01 Thread Kurt B. Kaiser
Noam Raphael [EMAIL PROTECTED] writes: More than a year and a half ago, I posted a big patch to IDLE which adds support for completion and much better calltips, along with some other improvements. I have responded on idle-dev. -- KBK ___