Re: array, a better shell

2006-12-20 Thread Neil Cerutti
On 2006-12-20, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > For array.array "B" means unsigned char, and such arrays accept to be > initialized from (str) strings too, this is quite useful: > from array import array a = array("B", "hello") > > But it seems such capability isn't shared w

Re: array, a better shell

2006-12-20 Thread Roland Puntaier
>I have also used the shell of Mathematica. It's quite powerful and it >can show graphics too inlined, but globally I don't like it fully >because it makes editing small programs a pain (for me)... I use Vim to edit python code and can execute any selection (F3) or single lines (F2) whenever I w

Re: array, a better shell

2006-12-20 Thread bearophileHUGS
Duncan Booth: > Later you can click on them and bring them back > to the bottom of the input buffer for further editing (so no confusing > output appearing out of order), I think that's worse, not better. You end with a messy final "document" (log), so finding things into it (during the editing to

Re: array, a better shell

2006-12-20 Thread Duncan Booth
[EMAIL PROTECTED] wrote: > This Mathematica shell allows you to edit small programs (like 1-15 > lines of code) as input blocks, and later you can click on them and > edit them. When you press shift-enter inside a block, that small > program runs and its output goes just below it (and not at the e

Re: array, a better shell

2006-12-20 Thread bearophileHUGS
Steven D'Aprano: > No you're not. You're describing a quite complicated shell. You're > describing a hypothetical shell with features other actual shells don't > have, so therefore it can't possibly be as simple as possible. You are right, it's not really simple, but: - It has just the basic funct

Re: array, a better shell

2006-12-20 Thread Steven D'Aprano
On Wed, 20 Dec 2006 03:44:25 -0800, bearophileHUGS wrote: > For array.array "B" means unsigned char, and such arrays accept to be > initialized from (str) strings too, this is quite useful: > from array import array a = array("B", "hello") > > But it seems such capability isn't shared

array, a better shell

2006-12-20 Thread bearophileHUGS
For array.array "B" means unsigned char, and such arrays accept to be initialized from (str) strings too, this is quite useful: >>> from array import array >>> a = array("B", "hello") But it seems such capability isn't shared with the append: >>> a.extend("hello") Traceback (most recent call las