Re: Unshelving the data?

2011-06-02 Thread Uncle Ben
On Jun 2, 6:46 am, Adam Tauno Williams awill...@whitemice.org 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 remove a shelved key once

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 et...@stoneleaf.us 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

Re: Puzzled by list-appending behavior

2011-05-26 Thread Uncle Ben
On May 26, 12:46 am, Uncle Ben bgr...@nycap.rr.com 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 the shortcut fails: list=[1,2,3] x

Puzzled by list-appending behavior

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

IDLE lost from Windows menu !

2011-04-28 Thread Uncle Ben
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 Ben -- http

Re: IDLE lost from Windows menu !

2011-04-28 Thread Uncle Ben
On Apr 28, 12:28 pm, Uncle Ben b...@greenba.com 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. It happened when I

Re: IDLE lost from Windows menu !

2011-04-28 Thread Uncle Ben
On Apr 28, 3:29 pm, MRAB pyt...@mrabarnett.plus.com wrote: On 28/04/2011 20:11, Uncle Ben wrote: On Apr 28, 12:28 pm, Uncle Benb...@greenba.com  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

Re: IDLE lost from Windows menu !

2011-04-28 Thread Uncle Ben
On Apr 28, 3:11 pm, Uncle Ben b...@greenba.com wrote: On Apr 28, 12:28 pm, Uncle Ben b...@greenba.com 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

Re: IDLE lost from Windows menu !

2011-04-28 Thread Uncle Ben
On Apr 28, 5:17 pm, Andrew Berg bahamutzero8...@gmail.com 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 and another called command python.exe %1

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 '::' does its magic? Uncle Ben -- http

Re: mystery string code - help!

2011-04-20 Thread Uncle Ben
On Apr 20, 1:01 pm, Dan M catd...@gmail.com 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.python.org/release/2.3.5/whatsnew/section-slices.html Dan Very