Re: Unshelving the data?

2011-06-02 Thread Uncle Ben
On Jun 2, 6:46 am, Adam Tauno Williams wrote: > On Wed, 2011-06-01 at 19:49 -0700, Uncle Ben wrote: > > Shelving is a wonderfully simple way to get keyed access to a store of > > items. I'd like to maintain this cache though. > > +1 > > > Is there any way to rem

Unshelving the data?

2011-06-01 Thread Uncle Ben
Shelving is a wonderfully simple way to get keyed access to a store of items. I'd like to maintain this cache though. Is there any way to remove a shelved key once it is hashed into the system? I could do it manually by removing the value and erasing the key in the directory list. But is there a

Re: Beginner needs advice

2011-05-28 Thread Uncle Ben
On May 27, 5:33 pm, Ethan Furman wrote: > Lew Schwartz wrote: > > So, if I read between the lines correctly, you recommend Python 3? Does > > the windows version install with a development environment? > > Dabo, last I checked, uses wxPython, which uses wxWidgets (sp?), which > is not yet ported t

Re: Puzzled by list-appending behavior

2011-05-26 Thread Uncle Ben
On May 26, 12:46 am, Uncle Ben wrote: > In playing with lists of lists, I found the following: > > (In 3.1, but the same happens also in 2.7) > > list = [1,2,3] > list.append ( [4,5,6] ) > x = list > x   -> >     [1,2,3,[4,5,6]] > as expected. > > But t

Puzzled by list-appending behavior

2011-05-25 Thread Uncle Ben
n this to me? Uncle Ben -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE lost from Windows menu !

2011-04-28 Thread Uncle Ben
On Apr 28, 5:17 pm, Andrew Berg wrote: > On 2011.04.28 02:11 PM, Uncle Ben wrote:> It was suggested to me privately > that I search for > > HKEY_CLASSES_ROOT\*\shell, > > right_click on "shell", > > create a new key called "EDIT with IDLE" > &g

Re: IDLE lost from Windows menu !

2011-04-28 Thread Uncle Ben
On Apr 28, 3:11 pm, Uncle Ben wrote: > On Apr 28, 12:28 pm, Uncle Ben wrote: > > > I have lost the convenient feature that to edit a .py file I could > > right-click on the file name and reach the menu item "Edit with IDLE". > > > The workaround is not ha

Re: IDLE lost from Windows menu !

2011-04-28 Thread Uncle Ben
On Apr 28, 3:29 pm, MRAB wrote: > On 28/04/2011 20:11, Uncle Ben wrote: > > > > > On Apr 28, 12:28 pm, Uncle Ben  wrote: > >> I have lost the convenient feature that to edit a .py file I could > >> right-click on the file name and reach the menu item "Edit

Re: IDLE lost from Windows menu !

2011-04-28 Thread Uncle Ben
On Apr 28, 12:28 pm, Uncle Ben wrote: > I have lost the convenient feature that to edit a .py file I could > right-click on the file name and reach the menu item "Edit with IDLE". > > The workaround is not hard, but it wouild be nice to get this feature > back. > >

IDLE lost from Windows menu !

2011-04-28 Thread Uncle Ben
ddition to Python 2.71, and got into trojuble uintil I discovered that I was involuntarily RUNNING the older version. So I cleaned it out, but still I have this aftermath. Is there a Windows guru out there who can tell be how to add to the right-click menu clicking on myfile.py? Uncle Be

Re: mystery string code - help!

2011-04-20 Thread Uncle Ben
On Apr 20, 1:01 pm, Dan M wrote: > > As a newbie Pythoner, I understand [] -1] but would some tell me how > > '::' does its magic? > > > Uncle Ben > > The -1 is the "stride" or "step" argument. It's described > athttp://docs.py

mystery string code - help!

2011-04-20 Thread Uncle Ben
I found this in one of the online cookbooks: #Raghunath Reddy Peesari 6 years, 3 months ago # | flag #There is more simple way. ### a = 'abcdefghi' a = a[::-1] print a >>> 'ihgfedcba' As a newbie Pythoner, I understand [] -1] but would some tell me how &#